Installation on Ubuntu 22.04 with Python 3.10.9 breaks with asciitree
Summary
{Summarize the bug encountered concisely}
I confirm that I have (if relevant):
- Read the troubleshooting guide: https://gitlab.com/aliby/aliby/-/wikis/Troubleshooting-(basic)
- Updated aliby and aliby-baby.
- NA Tried the unit test.
- NA Tried a scaled-down version of my experiment (distributed=0, filter=0, tps=10)
- NA Tried re-postprocessing.
Steps to reproduce
- Clone
$ pyenv virtualenv 3.10 alibylite
$ pyenv activate alibylite
$ cd /path/to/alibylite/
$ poetry install
- alibylite version: NA, or if development/unreleased version, commit SHA: 3152bb29
- platform(s):
- Jura
- Other Linux, please specify distribution and version: Ubuntu 22.04
- MacOS, please specify version: {...}
- Windows, please specify version: {...}
- experiment ID: NA
- Any special things you need to know about this experiment: {...}
What is the current bug behavior?
Poetry install fails.
What is the expected correct behavior?
Poetry install succeeds.
Logs/Traceback
(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code, as it's very hard to read otherwise.)
(wela) ➜ alibylite git:(devlite) poetry install
Installing dependencies from lock file
Package operations: 47 installs, 4 updates, 1 removal
• Removing appdirs (1.4.4)
• Installing pyasn1 (0.6.0)
• Updating urllib3 (2.2.1 -> 1.26.18)
• Installing cachetools (5.3.3)
• Installing oauthlib (3.2.2)
• Installing pyasn1-modules (0.4.0)
• Installing rsa (4.9)
• Installing google-auth (2.29.0)
• Updating numpy (1.24.4 -> 1.24.3)
• Installing requests-oauthlib (2.0.0)
• Installing absl-py (2.1.0)
• Installing frozenlist (1.4.1)
• Installing google-auth-oauthlib (1.0.0)
• Installing grpcio (1.62.2)
• Installing markdown (3.6)
• Installing multidict (6.0.5)
• Installing protobuf (4.25.3)
• Updating setuptools (65.5.0 -> 69.5.1)
• Installing tensorboard-data-server (0.7.2)
• Installing werkzeug (3.0.2)
• Installing wheel (0.43.0)
• Installing aiosignal (1.3.1)
• Installing astunparse (1.6.3)
• Installing async-timeout (4.0.3)
• Installing flatbuffers (24.3.25)
• Installing gast (0.4.0)
• Installing google-pasta (0.2.0)
• Installing joblib (1.4.2)
• Installing keras (2.13.1)
• Installing libclang (18.1.1)
• Installing opt-einsum (3.3.0)
• Installing tensorboard (2.13.0)
• Installing tensorflow-estimator (2.13.0)
• Installing tensorflow-io-gcs-filesystem (0.34.0)
• Installing termcolor (2.4.0)
• Installing threadpoolctl (3.5.0)
• Updating typing-extensions (4.11.0 -> 4.5.0)
• Installing yarl (1.9.4)
• Installing aiohttp (3.9.5)
• Installing asciitree (0.3.3): Failed
RuntimeError
failed to query /home/arin/.pyenv/versions/3.10/envs/wela/bin/python with code 1 err: 'Traceback (most recent call last):\n File "/home/arin/.local/share/pypoetry/venv/lib/python3.7/site-packages/virtualenv/discovery/py_info.py", line 573, in <module>\n info = PythonInfo()._to_json()\n File "/home/arin/.local/share/pypoetry/venv/lib/python3.7/site-packages/virtualenv/discovery/py_info.py", line 103, in __init__\n self.distutils_install = {u(k): u(v) for k, v in self._distutils_install().items()}\n File "/home/arin/.local/share/pypoetry/venv/lib/python3.7/site-packages/virtualenv/discovery/py_info.py", line 186, in _distutils_install\n d = dist.Distribution({"script_args": "--no-user-cfg"}) # conf files not parsed so they do not hijack paths\n File "/home/arin/.pyenv/versions/3.10/envs/wela/lib/python3.10/site-packages/setuptools/dist.py", line 307, in __init__\n _Distribution.__init__(self, dist_attrs)\n File "/home/arin/.pyenv/versions/3.10/envs/wela/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 284, in __init__\n self.finalize_options()\n File "/home/arin/.pyenv/versions/3.10/envs/wela/lib/python3.10/site-packages/setuptools/dist.py", line 657, in finalize_options\n for ep in sorted(loaded, key=by_order):\n File "/home/arin/.pyenv/versions/3.10/envs/wela/lib/python3.10/site-packages/setuptools/dist.py", line 656, in <lambda>\n loaded = map(lambda e: e.load(), filtered)\n File "/home/arin/.pyenv/versions/3.10.9/lib/python3.10/importlib/metadata/__init__.py", line 171, in load\n module = import_module(match.group(\'module\'))\n File "/home/arin/.pyenv/versions/3.10.9/lib/python3.10/importlib/__init__.py", line 126, in import_module\n return _bootstrap._gcd_import(name[level:], package, level)\n File "<frozen importlib._bootstrap>", line 1050, in _gcd_import\n File "<frozen importlib._bootstrap>", line 1027, in _find_and_load\n File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked\n File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed\n File "<frozen importlib._bootstrap>", line 1050, in _gcd_import\n File "<frozen importlib._bootstrap>", line 1027, in _find_and_load\n File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked\n File "<frozen importlib._bootstrap>", line 688, in _load_unlocked\n File "<frozen importlib._bootstrap_external>", line 883, in exec_module\n File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed\n File "/home/arin/.pyenv/versions/3.10/envs/wela/lib/python3.10/site-packages/npe2/__init__.py", line 11, in <module>\n from ._dynamic_plugin import DynamicPlugin\n File "/home/arin/.pyenv/versions/3.10/envs/wela/lib/python3.10/site-packages/npe2/_dynamic_plugin.py", line 19, in <module>\n from ._plugin_manager import PluginManager\n File "/home/arin/.pyenv/versions/3.10/envs/wela/lib/python3.10/site-packages/npe2/_plugin_manager.py", line 34, in <module>\n from .manifest._npe1_adapter import NPE1Adapter\n File "/home/arin/.pyenv/versions/3.10/envs/wela/lib/python3.10/site-packages/npe2/manifest/_npe1_adapter.py", line 11, in <module>\n from appdirs import user_cache_dir\nModuleNotFoundError: No module named \'appdirs\'\n'
at ~/.local/share/pypoetry/venv/lib/python3.7/site-packages/virtualenv/discovery/cached_py_info.py:31 in from_exe
27│ env = os.environ if env is None else env
28│ result = _get_from_cache(cls, app_data, exe, env, ignore_cache=ignore_cache)
29│ if isinstance(result, Exception):
30│ if raise_on_error:
→ 31│ raise result
32│ else:
33│ logging.info("%s", result)
34│ result = None
35│ return result
• Installing fasteners (0.19)
• Installing numcodecs (0.12.1)
• Installing scikit-learn (1.2.2)
• Installing tensorflow (2.13.1)
(wela) ➜ alibylite git:(devlite) poetry install
Possible fixes
Add appdirs as dependency.