python-computer-craft icon indicating copy to clipboard operation
python-computer-craft copied to clipboard

ImportError: DLL load failed while importing _greenlet: module was not found.

Open antowkas opened this issue 2 years ago • 1 comments
trafficstars

How do I correct this error?

C:\home>python -m computercraft.server
Traceback (most recent call last):
  File "C:\Users\toxal\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\toxal\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Users\toxal\AppData\Local\Programs\Python\Python310\lib\site-packages\computercraft\server.py", line 8, in <module>
    from .sess import CCSession
  File "C:\Users\toxal\AppData\Local\Programs\Python\Python310\lib\site-packages\computercraft\sess.py", line 15, in <module>
    from greenlet import greenlet, getcurrent as get_current_greenlet
  File "C:\Users\toxal\AppData\Local\Programs\Python\Python310\lib\site-packages\greenlet\__init__.py", line 29, in <module>
    from ._greenlet import _C_API # pylint:disable=no-name-in-module
ImportError: DLL load failed while importing _greenlet: module was not found.

antowkas avatar Jan 31 '23 14:01 antowkas

I've seen this error appear when someone uses a library that has compiled code built for one version of Python and you attempt to use it on different Python version.

Not sure thats whats happening here but might help. Try using Python version 3.8

Garulf avatar Feb 15 '23 19:02 Garulf