- ImportError: No module named serial.tools.list_ports (ESPTOOL-249) #350
- Comments
- eliyastein commented Aug 24, 2018
- nixmeer commented Sep 3, 2018
- projectgus commented Sep 20, 2018
- jssilva25 commented Sep 25, 2018 •
- vinayprydotinfotech commented Mar 9, 2019
- Same error
- projectgus commented Mar 11, 2019
- projectgus commented Mar 13, 2019
- mshavandi commented Mar 27, 2019
- mangelozzi commented Apr 12, 2019
- NEEHITGOYAL commented Mar 4, 2020
- khataei commented Jul 25, 2020
- henkiejan1 commented Oct 7, 2020
- projectgus commented Oct 8, 2020 •
- danteruizv8 commented Jun 7, 2021
- Как исправить ошибку «ImportError: no module named . » в Python?
- 6 ответов:
- How To Ubuntu Importerror No Module Named Serial
- arduino IDE import serial ImportError: No module named …
- ubuntu — Python ImportError: No module named serial
- ImportError: No module named serial — iZZiSwift
- ImportError: No module named serial — GitHub Pages
- Ubuntu no module pyserial · Issue #3295 · espressif
- [SOLVED] Arduino IDE on Linux Mint 20 — «No serial module
- Ubuntu ImportError: No module named serial_nuc606的博客 …
- ROS Q&A How to solve the error “ImportError : No module
- rosserial «ImportError: No module named serial» — ROS
- ImportError: No module named serial.tools.list_ports
- ImportError: No module named serial · Issue #1
- «No module named serial» error when trying to flash
- ARDUINO IDE — ‘No module named serial’ — Linux Mint Forums
- No «Serial» Module · Issue #13 · espressif/arduino-esp32
- apt — Ubuntu 16.04 -ImportError: No module named
- When I «import serial» I get the error message:»no module
- pi 3 — python serial.Serial() module not found error
- How To Solve ModuleNotFoundError: No module named in Python
- ImportError: No module named _io in ubuntu 14.04 — iZZiSwift
- Fix Python ImportError:No module named Python Modules
- Solved: ImportError: No module named requests — Lynxbee
- pyserial: No module named tools
- Почему я не могу импортировать модуль pynacl? (discord.py — ModuleNotFoundError: No module named ‘pynacl’)?
ImportError: No module named serial.tools.list_ports (ESPTOOL-249) #350
Comments
eliyastein commented Aug 24, 2018
Any help would be much appreciated:
Python version: Python 2.7.10
ESP hardware in use: ESP8266
The text was updated successfully, but these errors were encountered:
nixmeer commented Sep 3, 2018
I got the same issue. I am running on macOS 10.13.6. Esptool installed with the esp32 core and works fine when flashing the esp32 through Arduino IDE. When trying to flash tasmota firmware to an esp8266, I get the same error.
Python 2.7 and 3.7 installed.
projectgus commented Sep 20, 2018
Thanks for being patient while someone got back to you.
I think in both cases the version of pyserial which is installed is too old, and doesn’t have serial.tools.list_ports module.
You should be able to fix this by running pip install pyserial , or re-installing esptool with pip install esptool .
I’ll add a version check in the top of esptool.py, so the error is clearer.
jssilva25 commented Sep 25, 2018 •
I’m getting the exact same error as the OP, same OS and py27.
I already did pip install pyserial and pip install esptool and I don’t think they are outdated:
EDIT: It works on the command line:
EDIT2: Never mind, I had installed esptool by git clone. Solved it by:
And now I have to call esptool using full path, otherwise esp-open-sdk gets in the way:
$ /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/esptool.py
Could you please help?
TIA
jss
vinayprydotinfotech commented Mar 9, 2019
Same error
Traceback (most recent call last):
File «../tools/esptool.py», line 26, in
import serial
ImportError: No module named serial
../Makefile:202: recipe for target ‘.output/eagle/debug/bin/eagle.app.v6.bin’ failed
make[1]: *** [.output/eagle/debug/bin/eagle.app.v6.bin] Error 1
make[1]: Leaving directory ‘/home/rydot/Downloads/nodemcu-firmware-2.2.1-master_20181207/app’
Makefile:292: recipe for target ‘.subdirs’ failed
make: *** [.subdirs] Error 2
platform pyhton 3.6 ,Ubuntu 16.04 LTS, 64bit
installed
—pip3 install pyserial —user
—pip3 install serial —user
—pip3 install esptool —user
still not working
Any more advice ?
projectgus commented Mar 11, 2019
(For the record: NodeMCU ships quite an old version of esptool (v1.2-dev) plus some custom modifications.)
If you run /usr/bin/env python (which is the Python interpreter used by the esptool.py script in NodeMCU), is it version 3.6? (Use control-d to exit.)
As it’s ubuntu, installing the native PySerial with sudo apt-get install python3-serial may help.
/Downloads/nodemcu-firmware-2.2.1-master_20181207$ /usr/bin/env python Python 3.6.0 |Anaconda 4.3.0 (64-bit)| (default, Dec 23 2016, 12:22:00) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux Type «help», «copyright», «credits» or «license» for more information.
projectgus commented Mar 13, 2019
You seem to have Python installed via «Anaconda» in addition to (or instead of) the system Python. This is why ‘pip’ and system Python packages aren’t working. You can try something like this to install pyserial under the «conda» package manager for Anaconda:
https://pyserial.readthedocs.io/en/latest/pyserial.html#from-conda
mshavandi commented Mar 27, 2019
I used
pip install pyserial
and this issue solved.
mangelozzi commented Apr 12, 2019
What solved it for me is not calling the script I was testing it with «serial.py», rename to something else.
NEEHITGOYAL commented Mar 4, 2020
I used
pip install pyserial
and this issue solved.
working fine thanks
khataei commented Jul 25, 2020
I had the same problem. installing the pyserial didn’t work. Then I realized that I don’t have pip for Python2.7 and pyserial was installed on Python3.8.
So make sure you have pip for Python2.7 by running
pip —version
And then go for
pip install pyserial
henkiejan1 commented Oct 7, 2020
After upgrade yesterday is esptool not working anymore. I thought that python-pip is not available anymore. Only python3-pip alias pip3
My system:
Linux Inspiron-5370 5.8.12-050812-generic #202009261732 SMP Sat Sep 26 17:35:23 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux Linux Mint 20 with one of the latest kernels
Python3 version:
Python 3.8.5
When i try to install python-pip:
Pakketlijsten worden ingelezen. Klaar Boom van vereisten wordt opgebouwd De statusinformatie wordt gelezen. Klaar E: Kan pakket python-pip niet vinden
Dutch but the translation is: can´t find python-pip package
But after a short research you can get pip for python2 on this site of Python. https://pip.pypa.io/en/stable/installing/ after that you can install esptool and pyserial as berfore.
But there is a warning that python2 stops at januari 2021. So maybe a good idea that esptool runs on python3?
projectgus commented Oct 8, 2020 •
But there is a warning that python2 stops at januari 2021. So maybe a good idea that esptool runs on python3?
@henkiejan1 esptool.py supports Python 3 since esptool release 1.3 (January 2017).
In most Debian/Ubuntu based Linux distros (I think including Mint), the pip binary is still the Python 2 Pip but you should be able to do pip3 install esptool . There is also a Debian/Ubuntu package python3-serial that can be installed first ( apt install python3-serial ) if you’d rather have the Distro’s version of pyserial than the Pip version.
danteruizv8 commented Jun 7, 2021
ESP8266_RTOS_SDK/components/esptool_py/esptool/esptool.py
«»
esptool.py depends on pyserial, but there is a conflict with a currently installed package named ‘serial’.
You may be able to work around this by ‘pip uninstall serial; pip install pyserial’
but this may break other installed Python software that depends on ‘serial’.
There is no good fix for this right now, apart from configuring virtualenvs.
See #269 (comment) for discussion of the underlying issue(s).»»
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Источник
Как исправить ошибку «ImportError: no module named . » в Python?
Как правильно исправить эту ошибку ImportError?
у меня есть следующая структура каталогов:
а я в директории
теперь, если я типа
Я мгновенно получаете
The ./programs/my_python_program.py содержит следующую строку:
Я не могу понять, почему python не найдет ./foo/tasks.py — это есть.
если я делаю это из оболочки Python, то это работает:
это только не работает, если я вызываю его через python ./programs/my_python_program.py сценарий.
6 ответов:
Python не добавляет текущий каталог в sys.path , но скорее каталог, в котором находится скрипт. Добавить /home/bodacydo/work/project или sys.path или $PYTHONPATH .
у вас есть файл с названием __init__.py в каталоге foo? Если нет, то python не распознает foo как пакет python.
посмотреть пакетов в учебнике python для получения дополнительной информации.
добавить скрипт под названием run.py in /home/bodacydo/work/project и редактировать его так:
(вместо main() с эквивалентным методом в my_python_program .)
объяснение: Поскольку python добавляет к PYTHONPATH путь скрипт, из которого он запускается, работает run.py будет добавлять /home/bodacydo/work/project . И вуаля, import foo.tasks будут найдены.
пример решения для добавления библиотеки в PYTHONPATH.
добавьте следующую строку в ваш
/.bashrc или просто запустить его напрямую:
затем свяжите необходимую библиотеку с вашим
Источник
How To Ubuntu Importerror No Module Named Serial
arduino IDE import serial ImportError: No module named …
› Verified Just Now
ubuntu — Python ImportError: No module named serial
› Verified 6 days ago
ImportError: No module named serial — iZZiSwift
› Verified 7 days ago
ImportError: No module named serial — GitHub Pages
› Verified 8 days ago
Ubuntu no module pyserial · Issue #3295 · espressif
› Verified 4 days ago
[SOLVED] Arduino IDE on Linux Mint 20 — «No serial module
› Verified 6 days ago
Ubuntu ImportError: No module named serial_nuc606的博客 …
› Verified 9 days ago
ROS Q&A How to solve the error “ImportError : No module
/catkin_ws/src. $ catkin_create_pkg my_folder_msgs. The user had a problem with the custom messages, we can create it with the following steps.
› Verified 3 days ago
rosserial «ImportError: No module named serial» — ROS
› Verified 5 days ago
ImportError: No module named serial.tools.list_ports
› Verified 7 days ago
ImportError: No module named serial · Issue #1
› Verified 1 days ago
«No module named serial» error when trying to flash
› Verified Just Now
ARDUINO IDE — ‘No module named serial’ — Linux Mint Forums
› Verified 1 days ago
No «Serial» Module · Issue #13 · espressif/arduino-esp32
› Verified 2 days ago
apt — Ubuntu 16.04 -ImportError: No module named
› Verified 3 days ago
When I «import serial» I get the error message:»no module
› Verified 5 days ago
pi 3 — python serial.Serial() module not found error
› Verified 3 days ago
How To Solve ModuleNotFoundError: No module named in Python
› Verified 1 days ago
ImportError: No module named _io in ubuntu 14.04 — iZZiSwift
› Verified Just Now
Fix Python ImportError:No module named Python Modules
› Verified 3 days ago
Solved: ImportError: No module named requests — Lynxbee
› Verified 4 days ago
pyserial: No module named tools
«, line 1, in import serial.tools ImportError: No module named tools. and when I: >>> serial.VERSION ‘2.5’. which is the latest version according to Source Forge.
Источник
Почему я не могу импортировать модуль pynacl? (discord.py — ModuleNotFoundError: No module named ‘pynacl’)?
После запуска программы появляется ошибка ModuleNotFoundError: No module named ‘pynacl’. Важно отметить, что pynacl уже есть в списке модулей.
Когда я устанавливаю модуль повторно pip install PyNaCl/pip3 install PyNaCl, консоль выводит, что модуль уже загружен.
Пробовал:
Перезагружать IDLE, компьютер, [ . ] пробовал import nacl [ . ](ModuleNotFoundError: No module named ‘nacl’), а не import pynacl, переустанавливал модуль, а также использовал import discrod.py[voice]. Если модуль не импортировать, то выводит следующую ошибку: RuntimeError: PyNaCl library needed in order to use voice.
Пользуюсь IDLE Python 3.7.1
- Вопрос задан 16 февр.
- 255 просмотров
Короче говоря, я разобрался. Проблема была в том, что консоль Windows была «привязана» к версии Python 3.6.7, и все модули устанавливались на неё, а я работал в 3.7.1, соответственно, отсюда и ошибка.
Как исправил:
1. Проверил python3 —version и обнаружил, что консоль привязана к ней.
2. Удалил версию Python 3.6.7.
3. Столкнулся с проблемой «Fatal error in launcher».
4. Удалил из AppData\Local\Programs\Python папку Python 3.6.
5. Обновил pip и скачал pynacl.
Готово! 😀
Данная библиотека вызывается не pynacl а:
Источник