Have been trying to install prodigy and it refuses to run.
Running this:
python3 -m prodigy
Gets:
Traceback (most recent call last):
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 188, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 147, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/local/Cellar/python@3.9/3.9.5/Frameworks/Python.framework/Versions/3.9/lib/python3.9/runpy.py", line 111, in _get_module_details
__import__(pkg_name)
File "/Users/tars/Library/Python/3.9/lib/python/site-packages/prodigy/__init__.py", line 1, in <module>
from .util import init_package
ModuleNotFoundError: No module named 'prodigy.util'
Also installing and running it using conda returns the following error:
Traceback (most recent call last):
File "/usr/local/anaconda3/envs/prodigy/lib/python3.8/runpy.py", line 185, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/local/anaconda3/envs/prodigy/lib/python3.8/runpy.py", line 144, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/local/anaconda3/envs/prodigy/lib/python3.8/runpy.py", line 111, in _get_module_details
__import__(pkg_name)
File "/usr/local/anaconda3/envs/prodigy/lib/python3.8/site-packages/prodigy/__init__.py", line 1, in <module>
from .util import init_package
ModuleNotFoundError: No module named 'prodigy.util'
Hi! It looks like the problem is that you're running Python 3.9 – the current wheels for Prodigy support 3.6, 3.7 and 3.8 (wheels for 3.9 are coming for the next version). The easiest solution would be to just create a new virtual environment using 3.8 (I recommend pyenv btw if you're not already using it!).
Thanks so much for the help. Unfortunately it still didn't work using 3.8:
Traceback (most recent call last):
File "/usr/local/anaconda3/envs/p38/lib/python3.8/runpy.py", line 183, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/local/anaconda3/envs/p38/lib/python3.8/runpy.py", line 142, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/local/anaconda3/envs/p38/lib/python3.8/runpy.py", line 109, in _get_module_details
__import__(pkg_name)
File "/usr/local/anaconda3/envs/p38/lib/python3.8/site-packages/prodigy/__init__.py", line 1, in <module>
from .util import init_package
ModuleNotFoundError: No module named 'prodigy.util'
That's strange but it indicates that the package didn't install correctly into the environment and that the files it expects to be there aren't found How did you install the Prodigy wheel? And did you start with a fresh environment again? Maybe you ended up with weird state?