Skip to content

.mbedignore - add venv folder#86

Open
JanneKiiskila wants to merge 1 commit intoPelionIoT:masterfrom
JanneKiiskila:patch-1
Open

.mbedignore - add venv folder#86
JanneKiiskila wants to merge 1 commit intoPelionIoT:masterfrom
JanneKiiskila:patch-1

Conversation

@JanneKiiskila
Copy link

@JanneKiiskila JanneKiiskila commented Feb 7, 2022

This will create some nasty surprises in case you do a "proper clean installation of Python 2" for mbed cli (in case you want to run Mbed OS 5.15.x).
I.e.

virtualenv venv -p /usr/bin/python2.7
pip install mbed-cli
pip install mbed-os/requirements.txt

It will try to compile EVERYTHING - as per usual and then fails when it does not find various Python compilation things.

Compile [ 97.3%]: _speedups.c
[Error] pyconfig.h@122,3: #error unknown multiarch location for pyconfig.h
[Error] pyconfig.h@122,3: #error unknown multiarch location for pyconfig.h
[Error] pyconfig.h@122,3: #error unknown multiarch location for pyconfig.h
[Error] _speedups.c@18,8: unknown type name 'Py_UNICODE'
1:32

Took a good while for me to figure it out... :-(

[x] I confirm this contribution is my own and I agree to license it with Apache 2.0.
[] I confirm the moderators may change the PR before merging it in.
[x] I understand the release model prohibits detailed Git history and my contribution will be recorded to the list at the bottom of CONTRIBUTING.md.

This will create some nasty surprises in case you do a "proper clean installation of Python 2" for mbed cli (in case you want to run Mbed OS 5.15.x).
I.e. 

``
virtualenv venv -p /usr/bin/python2.7
pip install mbed-cli
pip install mbed-os/requirements.txt
``` 

It will try to compile EVERYTHING - as per usual and then fails when it does not find various Python compilation things.

```
Compile [ 97.3%]: _speedups.c
[Error] pyconfig.h@122,3: #error unknown multiarch location for pyconfig.h
[Error] pyconfig.h@122,3: #error unknown multiarch location for pyconfig.h
[Error] pyconfig.h@122,3: #error unknown multiarch location for pyconfig.h
[Error] _speedups.c@18,8: unknown type name 'Py_UNICODE'
1:32
```

Took a good while for me to figure it out...  :-(
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant