cannot import cherrypy on a linux system #1912
Answered
by
Wissperwind
Wissperwind
asked this question in
Q&A
-
Hi, I have a problem using cherrypy in linux. The same code with the same shipped depenency folder works on windows. Traceback (most recent call last):
File "/opt/test/psbp/resource/3rdpty/jaraco/text/__init__.py", line 7, in <module>
from importlib import resources # type: ignore
ImportError: cannot import name 'resources'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/globalx/psbp/resource/server/bpServer3/bpServer3.py", line 12, in <module>
server.run()
File "/opt/test/psbp/resource/server/bpServer3/BpServer3Launcher.py", line 46, in run
import cherrypy
File "/opt/test/psbp/resource/3rdpty/cherrypy/__init__.py", line 66, in <module>
from ._cperror import (
File "/opt/test/psbp/resource/3rdpty/cherrypy/_cperror.py", line 135, in <module>
from cherrypy.lib import httputil as _httputil
File "/opt/test/psbp/resource/3rdpty/cherrypy/lib/httputil.py", line 20, in <module>
import jaraco.collections
File "/opt/test/psbp/resource/3rdpty/jaraco/collections.py", line 9, in <module>
import jaraco.text
File "/opt/test/psbp/resource/3rdpty/jaraco/text/__init__.py", line 9, in <module>
import importlib_resources as resources # type: ignore
ModuleNotFoundError: No module named 'importlib_resources' Can someone help me? |
Beta Was this translation helpful? Give feedback.
Answered by
Wissperwind
May 4, 2021
Replies: 1 comment 1 reply
-
well, install it with pip and to prevent further customers having this issue just include it in your distribution. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
webknjaz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
well, install it with pip and to prevent further customers having this issue just include it in your distribution.