You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a virtual env,
installed translatepy, with pip, from git (today, 2023-12-18)
(and then pip from pypi)
get the same error: can't find "translatepy.utils" module
#From python prompt:
>>> from translatepy import Translator
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "D:\programs\myenv\lib\site-packages\translatepy\__init__.py", line 8, in <module>
from translatepy.language import Language
File "D:\programs\myenv\lib\site-packages\translatepy\language.py", line 2, in <module>
from translatepy.utils.sanitize import remove_spaces
ModuleNotFoundError: No module named 'translatepy.utils'
#From command line:
(translatepy) D:\translatepy>dir /s/ad/b |findstr.exe util
D:\myenv\Lib\site-packages\_distutils_hack
d:\myenv\Lib\site-packages\pip\_internal\utils
D:\myenv\Lib\site-packages\pip\_internal\utils\__pycache__
[...]
D:\myenv\Lib\site-packages\urllib3\util
D:\myenv\Lib\site-packages\urllib3\util\__pycache__
D:\myenv\Lib\site-packages\_distutils_hack\__pycache__
(myenv) D:\myenv>translatepy shell
Traceback (most recent call last):
File "D:\myenv\Scripts\translatepy-script.py", line 33, in <module>
sys.exit(load_entry_point('translatepy==2.4', 'console_scripts', 'translatepy')())
File "d:\myenv\Scripts\translatepy-script.py", line 25, in importlib_load_entry_point
return next(matches).load()
File "C:\python\lib\importlib\metadata\__init__.py", line 171, in load
module = import_module(match.group('module'))
File "C:\python\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
[...]
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "d:\myenv\lib\site-packages\translatepy\__init__.py", line 8, in <module>
from translatepy.language import Language
File "D:\myenv\lib\site-packages\translatepy\language.py", line 2, in <module>
from translatepy.utils.sanitize import remove_spaces
ModuleNotFoundError: No module named 'translatepy.utils'
(myenv) D:\myenv>
what am I doing wrong?
The text was updated successfully, but these errors were encountered:
I created a virtual env,
installed translatepy, with pip, from git (today, 2023-12-18)
(and then pip from pypi)
get the same error: can't find "translatepy.utils" module
#From python prompt:
#From command line:
what am I doing wrong?
The text was updated successfully, but these errors were encountered: