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

使用ee init 命令报错(使用旧版本的ee.exe同样失败) #43

Open
TheChinaTeapot opened this issue Apr 30, 2024 · 6 comments

Comments

@TheChinaTeapot
Copy link

请问这个缺少模块的问题如何解决
ee init
root-CRITICAL:未捕获异常
Traceback (most recent call last):
File "e:\python\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "e:\python\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "E:\python\Scripts\ee.exe_main
.py", line 4, in
from gd_excelexporter.cli import cli
File "e:\python\lib\site-packages\gd_excelexporter\cli.py", line 8, in
from gd_excelexporter.core.generator import Generator
File "e:\python\lib\site-packages\gd_excelexporter\core\generator.py", line 11, in
from gd_excelexporter.config import Configuration
File "e:\python\lib\site-packages\gd_excelexporter\config.py", line 3, in
from packaging.version import Version, parse
ModuleNotFoundError: No module named 'packaging'

@kaluluosi
Copy link
Owner

能给出python版本吗? python3.7以上 packing包是官方内置的包。不清楚你为什么回没有这个包。

@TheChinaTeapot
Copy link
Author

PS C:\Users\16145\Desktop> python
Python 3.9.0 (tags/v3.9.0:9cf6752, Oct 5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

@kaluluosi
Copy link
Owner

我用3.9.10试了下没有问题导出了,没出现你的错误。
建议用pip卸载了重新装。

pip uninstall gd_excelexporter
pip install gd_excelexporter
Uploading Screenshot_20240502_232005_com.aidlux.jpg…

@kaluluosi
Copy link
Owner

Screenshot_20240502_232005_com aidlux

@jinpxx
Copy link

jinpxx commented Jun 26, 2024

一样的问题。我的Python版本是:
C:\Users\Administrator\Documents\datable>Python
Python 3.12.4 (tags/v3.12.4:8e8a4ba, Jun 6 2024, 19:30:16) [MSC v.1940 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
出现的报错是:
C:\Users\Administrator\Documents\datable>ee init
root-CRITICAL:未捕获异常
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Program Files\Python312\Scripts\ee.exe_main
.py", line 4, in
from gd_excelexporter.cli import cli
File "C:\Program Files\Python312\Lib\site-packages\gd_excelexporter\cli.py", line 8, in
from gd_excelexporter.core.generator import Generator
File "C:\Program Files\Python312\Lib\site-packages\gd_excelexporter\core\generator.py", line 11, in
from gd_excelexporter.config import Configuration
File "C:\Program Files\Python312\Lib\site-packages\gd_excelexporter\config.py", line 3, in
from packaging.version import Version, parse
ModuleNotFoundError: No module named 'packaging'
尝试过卸载重装,没有什么变化

@kaluluosi
Copy link
Owner

kaluluosi commented Jun 28, 2024

试一下把这个packaging包装了吧。 3.12 怎么就没了这个内置包了呢。

pip install packaging

据我查到的信息 3.12 移除了很多内置包。建议用3.8~3.11 这个范围的python版本。

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