Skip to content

esptool not found on MacOS using Python 3Β #39

@r-goebel

Description

@r-goebel

I used the Connector on my MacBook where Python 3.8 was installed. Each time i tried to flash a program I got the error message "esptool not found" although it was installed.
This error resulted from the fact that I use python 3.8 and the connector expects python 2.7 with MacOS, since the path for Python is hard coded in the file connector/tree/master/src/main/java/de/fhg/iais/roberta/util/PythonRequireHelper.java. This is really hard to find.

I did not want to change back to python 2. Hence did the following steps to overcome the problem:

  • I created the dummy-folder, which the connector expects to find: /Users/$myname/Library/Python/2.7/bin/
  • In this folder, I created a link to the esptool.py in my python3.8 folder

It should either be mention in the README that the connector expects python 2.7 on MacOS or the way the connector identifies the python path should be changed to a more flexible way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions