Micropython plugin (MQTT) installation fails

Hello,

I was using PyCharm 2022 with the micropython plugin to work with an ESP8266 - all worked fine.

With PyCharm 2025 I switched to the “Micropython Tools” and now I'm not able to install certain Micropython plugins, like “micropython-umqtt-robust”. 

I'm getting:

ERROR: Invalid member in the tar file 
..\Temp\pip-unpack-7vnwtgob\micropython-umqtt.robust-1.0.tar.gz: 'umqtt/simple.py' would link to '..\\Temp\\pip-install-ajfwrhz2\\umqtt.simple\\umqtt\\simple.py', which is outside the destination

I've no idea how to deal with this. But first starting the installation of “simple.py”, leads to an error, as well:
ERROR: micropython-umqtt-simple from ../micropython-umqtt.simple-1.3.4.tar.gz does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.

I also tried to manually install directly to the ESP using "mip.install", which ended with "OSerror: -2" - whatever that means…

I'm running out of ideas. Any suggestions?

Many thanks.

0
3 comments

T Electronics, have you tried installing the package from the system terminal (outside the IDE) using the same virtual environment?

  • If it fails with the same error in the terminal, then the issue is most likely not related to PyCharm
  • If it works in the terminal but fails only inside PyCharm, please create a YouTrack issue here: https://youtrack.jetbrains.com/issues/PY

When submitting the report, please attach any relevant details (error output, your PyCharm version, interpreter information, and ideally IDE logs from Help | Collect Logs and Diagnostic Data right after reproducing the issue). This will help us investigate more efficiently.

0

Hi, 
many thanks for your answer. I'm not sure what your are referring to exactly with “installing the package from the system terminal (outside the IDE)”.
I did try mip.install via the terminal of PyCharm (received OSerror: -2). So, not 100% outside PyCharm, but via terminal. Shall I use another terminal or rather submit a ticket right away?

Thank you!

0

T Electronics, does the same behavior occur when you run it from a system terminal (Windows Terminal / PowerShell / xterm / macOS Terminal, depending on your system) using the same virtual environment, with PyCharm completely closed? If so, could you please share the full error message/output you see there?

0

Please sign in to leave a comment.