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

缺乏nb_log_config --- python 3.12.8/3.13.1 #147

Closed
chd1998 opened this issue Jan 12, 2025 · 3 comments
Closed

缺乏nb_log_config --- python 3.12.8/3.13.1 #147

chd1998 opened this issue Jan 12, 2025 · 3 comments

Comments

@chd1998
Copy link

chd1998 commented Jan 12, 2025

python test_funboost_001.py
11:10:24 "/home/chd1998/anaconda3/lib/python3.12/site-packages/nb_log/set_nb_log_config.py:23" - - 当前项目的根目录是:
/home/chd1998/anaconda3/lib/python312.zip
Traceback (most recent call last):
File "/home/chd1998/anaconda3/lib/python3.12/site-packages/nb_log/set_nb_log_config.py", line 40, in use_config_form_nb_log_config_module
m = importlib.import_module('nb_log_config')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/chd1998/anaconda3/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

@chd1998
Copy link
Author

chd1998 commented Jan 12, 2025

add export PYTHONPATH后,上述问题解决,但是新的错误出现: File "/home/chd1998/anaconda3/lib/python3.12/site-packages/invoke/loader.py", line 3, in
import imp
ModuleNotFoundError: No module named 'imp'

@chd1998
Copy link
Author

chd1998 commented Jan 12, 2025

Open the file and replace imp -> importlib there. Restart your working environment and it should resolve the ModuleNotFoundError.

@ydf0509
Copy link
Owner

ydf0509 commented Jan 21, 2025

先降级,不要用怎么新的python

@ydf0509 ydf0509 closed this as completed Feb 7, 2025
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

2 participants