Hi,
For a Mac M1 with Monterey OS:
- what version of python does CCS expect?
- does CCS expect python in a specific location or does it use $PATH to locate it?
Kind regards,
AC
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi,
For a Mac M1 with Monterey OS:
Kind regards,
AC
AC,
In general CCS does not need python. The one exception I can think of is that the ImageCreator tool for flashing cc32xx devices uses Python and the currently released version uses Python 2.7 which will no longer run on the latest Monterey patches.
Are you using a CC32xx device?
Regards,
John
I do believe that the cc13xx/26xx SDK includes a number of python scripts. These could be called by pre or post build steps in projects. As far as how CCS would be finding python would really depend on how the command is setup in the build step. Those steps are just shell commands. So if no path was specified then python would be found using $PATH. It is also possible that those scripts are only compatible with python 2.x and if your mac has the latest monterey patch then you would have python 3.
Anyway if you can let me know what device and SDK you are using I can try to assist.
Regards,
John
Hi John,
Thanks for your replies. This question relates to the CC2640R2F device, specifically the LaunchPad.
It relates to a customer who is having difficulty getting CCS to build Project Zero (app and stack projects) on a Mac M1 Monterey. CCS is v11.1, SDK is v5.30.
Customer has already resolved a gmake issue with the M1 but still is unable to build the projects. A sample error message when building (customer gets 500+ error messages) is:
Error loading Python lib '/var/folders/mh/pfslgmns46v1l7hw8h071k000000gn/T/_MEITjUVqq/Python': dlopen(/var/folders/mh/pfslgmns46v1l7hw8h071k000000gn/T/_MEITjUVqq/Python, 0x000A): tried: '/var/folders/mh/pfslgmns46v1l7hw8h071k000000gn/T/_MEITjUVqq/Python' (code signature invalid (errno=1) sliceOffset=0x00001000, codeBlobOffset=0x00145650, codeBlobSize=0x00004D20 for '/private/var/folders/mh/pfslgmns46v1l7hw8h071k000000gn/T/_MEITjUVqq/Python'), '/private/var/folders/mh/pfslgmns46v1l7hw8h071k000000gn/T/_MEITjUVqq/Python' (code signature invalid (errno=1) sliceOffset=0x00001000, codeBlobOffset=0x00145650, codeBlobSize=0x00004D20 for '/private/var/folders/mh/pfslgmns46v1l7hw8h071k000000gn/T/_MEITjUVqq/Python')
Does this look CCS installation directories that have gone awry?
Kind regards,
AC
AC,
I will loop in the team that supports CC2640R2. CCS does not use python. This is not an issue with CCS installation directories (CCS does not ship python). However some of the SDK example projects have a pre-build step that invokes a python script. I suspect that this is an issue of compatibility between python versions. The scripts may be written for python 2.x and the customer's Monterey machine only has python 3.x.
Oddly I am not able to reproduce this on my macOS M1 monterey machine. For me the pre-build step is calling the lib_search executable and not the python script.
Anyway I will loop in the CC2640R2 team to provide further assistance.
Regards,
John
Hey AC,
I am supporting a very similar thread outlined here: https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1088842/launchxl-cc2640r2-imported-the-project-zero-from-the-resources-pane-in-ccs-but-it-won-t-compile/4047291#4047291
Is this the same issue?
I will ping some colleagues internally to try this on their end, unfortunately I don't have a mac to try this out myself.
Hi Ammar,
Thanks for your response. That thread you pointed to certainly looks like the same. I don't recognise the name of the author but it is talking about the same problem so let me mark this thread as closed and I'll follow the other thread.
Regards,
AC
Hello everyone. I have a similar trouble here with CC2640R2F and simple_peripheral_oad_off_chip based project.
I unable to build the project because the lib_search.py, frontier.py and oad_image_tool.py scripts depends on Python 2.7 and mac Monterrey has not this version of Python. And theirs executable scripts does not run here.
As workaround I tried install python 2.7.18 with pyenv but with no success.
Hey Mariano,
Please create a new thread if this issue persists after applying the workaround mentioned in : https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/1088842/launchxl-cc2640r2-imported-the-project-zero-from-the-resources-pane-in-ccs-but-it-won-t-compile/4047291#4047291 .
Hello Ammar. The workaround worked like a charm but I need the same workaround for FRONTIER file. Could you help me??
I opened a new thread about that : e2e.ti.com/.../ccs-and-python-on-mac-m1-monterey