Skip to content

Serious Ubuntu 20.04 issues #4017

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

Closed
phaleas opened this issue May 20, 2020 · 4 comments
Closed

Serious Ubuntu 20.04 issues #4017

phaleas opened this issue May 20, 2020 · 4 comments
Labels
Status: Stale Issue is stale stage (outdated/stuck)

Comments

@phaleas
Copy link

phaleas commented May 20, 2020

New PC, fresh install of Ubuntu 20.04 LTS Desktop (Release), Arduino IDE 1.8.12

Error: "exec: "python": executable file not found in $PATH

Reason: python2 is obsolete, so there is no /usr/bin/python by default any more

Workaround:
sudo apt install python-is-python3 (just sets missing symlink)
sudo apt install python3-pip

Prevent python(2) to be installed via dependencies:
sudo apt-mark hold python2 python2-minimal python2.7 python2.7-minimal libpython2-stdlib

After this compiling works – but upload fails (A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header)

Upload works after pressing the „boot“ button on an NODEMCU 32S (on my 2nd system. Ubuntu 16.04 LTS, the upload works without pressing any button)

Ubuntu 20.04 is a major OS and should be supported without any (bleeding) workarounds

@lbernstone
Copy link
Contributor

lbernstone commented May 21, 2020

While good as a reference issue, this is ubuntu's issue, not arduino (or esptool). python3 got hammered in too quickly. Do you think it is acceptable for a *ix system to not have a python in $PATH in 2020?

@phaleas
Copy link
Author

phaleas commented May 21, 2020

I agree with you that the radical change to python3 came as a surprise to many (including me). But python3 is already available since December 2008. Since it is still possible to install python2 additionally, a standard symlink to python3 under /usr/bin/python would be dangerous. Instead, there is one under /usr/bin/python3.

If you search the web for "arduino esp32 ubuntu 20.04" you will find countless posts about exactly this problem. In addition, there are many fixes that differ from mine - and some of which will lead to serious problems elsewhere.

We are talking about the NIX version with 50% market share, which is still quite fresh at the moment. In the future more and more users will migrate there - and start directly with a bad user experience at Espressif.

Since "arduino-esp32" works (to a large extent) with python3, a query to the python version should be a simple solution.

@stale
Copy link

stale bot commented Jul 20, 2020

[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Status: Stale Issue is stale stage (outdated/stuck) label Jul 20, 2020
@stale
Copy link

stale bot commented Aug 3, 2020

[STALE_DEL] This stale issue has been automatically closed. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Stale Issue is stale stage (outdated/stuck)
Projects
None yet
Development

No branches or pull requests

2 participants