-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Executing cc2538-bsl require pyserial which I already have installed #124
Comments
could you try See if that works? |
Experiencing the same issue.. I've tried on two different linux computers and even tried using a python virtual environment. It's odd as if I start a python environment from the command line I can manually import serial. |
Actually found the issue... I started with:
So I added sudo to get permission to /dev/ttyUSB0:
This issue as I understand it is that running sudo python filename.py is not using the same python environment as running python filename.py and the pip install commands were installing to the latter. I resolved by pip installing as root, i.e.
Although, I don't believe it good practice to pip install as root. |
I execute:
python cc2538-bsl.py -p COM20 -evw --bootloader-sonoff-usb CC1352P2_CC2652P_launchpad_coordinator_20211217.hex
and it says:
cc2538-bsl.py requires the Python serial library
Please install it with:
pip3 install pyserial
Already done:
PS E:\mydownloads\cc2538-bsl-master> pip3 install pyserial
Requirement already satisfied: pyserial in c:\users\shane.platformio\penv\lib\site-packages (3.5)
I am on windows 10 with Python 3.10.4
Any suggestion?
The text was updated successfully, but these errors were encountered: