Skip to content
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

ModuleNotFoundError: No module named 'imp' #33

Open
kur1k0 opened this issue Oct 29, 2024 · 2 comments
Open

ModuleNotFoundError: No module named 'imp' #33

kur1k0 opened this issue Oct 29, 2024 · 2 comments

Comments

@kur1k0
Copy link

kur1k0 commented Oct 29, 2024

I'm using ESP-IDF 5.0 and Python 3.13

kurikos-MacBook-Pro :: esp/uiflow_micropython/m5stack ‹master*› % make flash_all

Traceback (most recent call last):
  File "/Users/kuriko/esp/uiflow_micropython/m5stack/./../tools/nvs_partition_gen.py", line 38, in <module>
    from future.moves.itertools import zip_longest
  File "/Users/kuriko/.espressif/python_env/idf5.0_py3.13_env/lib/python3.13/site-packages/future/moves/__init__.py", line 5, in <module>
    from future.standard_library import import_top_level_modules
  File "/Users/kuriko/.espressif/python_env/idf5.0_py3.13_env/lib/python3.13/site-packages/future/standard_library/__init__.py", line 65, in <module>
    import imp
ModuleNotFoundError: No module named 'imp'
make: *** [nvs] Error 1

I don't know if this is a compatible problem between versions of ESP-IDF and Python or something. But the error disappeared when I changed "import imp" into "import importlib".
What was the problem?

@Tinyu-Zhao
Copy link
Contributor

python removed imp after 3.12

@bh1rio
Copy link

bh1rio commented Dec 5, 2024

build it with docker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants