Poetry installation failure on master
Closed this issue · 4 comments
smorad commented
Problem Description
Checklist
- I have installed dependencies via
poetry install
(see CleanRL's installation guideline. - I have checked that there is no similar issue in the repo.
- I have checked the documentation site and found not relevant information in GitHub issues.
Current Behavior
...
• Installing moviepy (1.0.3): Failed
ImportError
cannot import name 'Python2Supports' from 'virtualenv.create.describe' (/Users/smorad/miniforge3/envs/cleanrl-poetry/lib/python3.10/site-packages/virtualenv/create/describe.py)
at ~/miniforge3/envs/cleanrl-poetry/lib/python3.10/site-packages/virtualenv/create/via_global_ref/builtin/python2/python2.py:6 in <module>
2│ import json
3│ import os
4│ from pathlib import Path
5│
→ 6│ from virtualenv.create.describe import Python2Supports
7│ from virtualenv.create.via_global_ref.builtin.ref import PathRefToDest
8│ from virtualenv.info import IS_ZIPAPP
9│ from virtualenv.util.zipapp import read as read_from_zipapp
Expected Behavior
Cleanrl should install without crashing.
Possible Solution
Steps to Reproduce
On MacOS ARM64:
conda create -n cleanrl-poetry python=3.10 poetry
conda activate cleanrl-poetry
poetry install
vwxyzjn commented
i wonder if I this is a arm64 issue. Can you try with Rosetta?
smorad commented
Last time I tried installing rosetta conda it broke my arm64 conda so I'm hesitant to try unless necessary. Is it currently building for you on a different arch/OS?
vwxyzjn commented
On my macos Arm64
➜ cleanrl git:(master) ✗ arch
arm64
➜ cleanrl git:(master) ✗ poetry -V
Configuration file exists at /Users/costahuang/Library/Preferences/pypoetry, reusing this directory.
Consider moving TOML configuration files to /Users/costahuang/Library/Application Support/pypoetry, as support for the legacy directory will be removed in an upcoming release.
Poetry (version 1.5.0)
➜ cleanrl git:(master) ✗ poetry install
Configuration file exists at /Users/costahuang/Library/Preferences/pypoetry, reusing this directory.
Consider moving TOML configuration files to /Users/costahuang/Library/Application Support/pypoetry, as support for the legacy directory will be removed in an upcoming release.
Installing dependencies from lock file
Package operations: 4 installs, 41 updates, 29 removals
• Removing pip (22.3.1)
• Removing ale-py (0.7.4)
• Removing autorom (0.4.2)
• Removing autorom-accept-rom-license (0.6.1)
• Removing chex (0.1.5)
• Removing commonmark (0.9.1)
• Removing dataclasses (0.6)
• Removing dill (0.3.6)
• Removing dm-env (1.6)
• Removing dm-tree (0.1.8)
• Removing etils (0.9.0)
• Removing expt (0.4.1)
• Removing flax (0.6.4)
• Removing iniconfig (2.0.0)
• Removing jax (0.3.25)
• Removing jaxlib (0.3.25)
• Removing multiprocess (0.70.14)
• Removing opencv-python (4.7.0.72)
• Removing opt-einsum (3.3.0)
• Removing optax (0.1.4)
• Removing pluggy (1.0.0)
• Removing pygments (2.15.1)
• Removing pytest (7.3.1)
• Removing rich (11.2.0)
• Removing seaborn (0.12.2)
• Removing tomli (2.0.1)
• Removing toolz (0.12.0)
• Removing typeguard (2.13.3)
• Removing types-protobuf (4.23.0.1)
• Updating certifi (2022.6.15.1 -> 2023.5.7)
• Updating charset-normalizer (2.1.1 -> 3.1.0)
• Updating idna (3.3 -> 3.4)
• Updating markupsafe (2.1.1 -> 2.1.2)
• Updating pyasn1 (0.4.8 -> 0.5.0)
• Updating typing-extensions (4.3.0 -> 4.5.0)
• Updating urllib3 (1.26.12 -> 1.26.15)
• Updating zipp (3.8.1 -> 3.15.0)
• Updating absl-py (1.2.0 -> 1.4.0)
• Updating cachetools (5.2.0 -> 5.3.0)
• Updating cloudpickle (2.2.0 -> 2.2.1)
• Updating fonttools (4.37.1 -> 4.38.0)
• Updating gitdb (4.0.9 -> 4.0.10)
• Updating importlib-metadata (4.12.0 -> 5.2.0)
• Updating oauthlib (3.2.1 -> 3.2.2)
• Updating packaging (21.3 -> 23.1)
• Updating pillow (9.2.0 -> 9.5.0)
• Updating pyasn1-modules (0.2.8 -> 0.3.0)
• Updating pyparsing (2.4.7 -> 3.0.9)
• Updating pytz (2022.2.1 -> 2023.3)
• Updating requests (2.28.1 -> 2.30.0)
• Updating setuptools (65.3.0 -> 67.7.2)
• Installing appdirs (1.4.4)
• Installing farama-notifications (0.0.4)
• Updating filelock (3.8.0 -> 3.12.0)
• Updating gitpython (3.1.27 -> 3.1.31)
• Updating google-auth (2.11.0 -> 2.18.0)
• Updating imageio (2.21.2 -> 2.28.1)
• Installing jax-jumpy (1.0.0)
• Updating markdown (3.4.1 -> 3.3.7)
• Updating platformdirs (2.5.2 -> 3.5.0)
• Updating protobuf (3.19.4 -> 3.20.3)
• Updating psutil (5.9.2 -> 5.9.5)
• Updating sentry-sdk (1.9.8 -> 1.22.2)
• Updating tqdm (4.64.1 -> 4.65.0)
• Updating grpcio (1.48.1 -> 1.54.0)
• Updating gymnasium (0.26.3 -> 0.28.1)
• Updating identify (2.5.5 -> 2.5.24)
• Updating virtualenv (20.16.5 -> 20.21.0)
• Updating wandb (0.13.6 -> 0.13.11)
• Updating werkzeug (2.2.2 -> 2.2.3)
• Updating wheel (0.37.1 -> 0.40.0)
• Installing huggingface-hub (0.11.1)
• Updating pre-commit (2.20.0 -> 2.21.0)
• Updating tensorboard (2.10.0 -> 2.11.2)
Installing the current project: cleanrl (1.1.0)
vwxyzjn commented
This is using rosetta. I used pyenv to manage virtual envs. I did not use conda.