Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stable-baselines3 installation fails ONLY inside venv #7324

Closed
4 tasks done
PierreMardon opened this issue Jan 9, 2023 · 3 comments
Closed
4 tasks done

stable-baselines3 installation fails ONLY inside venv #7324

PierreMardon opened this issue Jan 9, 2023 · 3 comments
Labels
status/duplicate Duplicate issues

Comments

@PierreMardon
Copy link

  • Poetry version: 1.3.1
  • Python version: 3.10.0
  • OS version and name: macOS 13.1 (mac M1 arm64)
  • pyproject.toml:
[tool.poetry]
name = "project"
version = "0.1.0"
description = ""
authors = ["Me <me@me.com>"]
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.10"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
  • I am on the latest stable Poetry version, installed using a recommended method.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have consulted the FAQ and blog for any relevant entries or release notes.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below.

Issue

I can't install stable-baselines3 in my poetry venv:

  • using poetry add -vvv 'stable-baselines3[extra]==1.6.2'
  • using pip install 'stable-baselines3[extra]==1.6.2'

But I can install it with pip (same command) using the same binary (my global python 3.10.0 bin).

It seems libtorrent@2.0.7 is needed in the venv, but not in the global env.

There's certainly a flaw in the deps of stable-baselines but I would expect the same behavior inside the venv and in my global env (maybe I souldn't?).

Trace for poetry add -vvv 'stable-baselines3[extra]==1.6.2'

poetry add -vvv 'stable-baselines3[extra]==1.6.2'

[trace was too long to post, keeping only the relevant part (end)]

Package operations: 55 installs, 0 updates, 0 removals, 4 skipped

  • Installing certifi (2022.12.7): Pending...
  • Installing charset-normalizer (2.1.1): Pending...
  • Installing idna (3.4): Pending...
  • Installing pyasn1 (0.4.8): Pending...
  • Installing urllib3 (1.26.13): Pending...
[urllib3.connectionpool] Starting new HTTPS connection (2): pypi.org:443
[urllib3.connectionpool] Starting new HTTPS connection (3): pypi.org:443
[urllib3.connectionpool] Starting new HTTPS connection (4): pypi.org:443
[urllib3.connectionpool] Starting new HTTPS connection (5): pypi.org:443
[urllib3.connectionpool] https://pypi.org:443 "GET /pypi/idna/3.4/json HTTP/1.1" 304 0
[filelock] Attempting to acquire lock 4389601728 on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/f/c/4/2/b/fc42bb0e016a3d14341082e4bfb2d5df5bc02a92eb01e5782b9d16fd.lock
[filelock] Lock 4389601728 acquired on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/f/c/4/2/b/fc42bb0e016a3d14341082e4bfb2d5df5bc02a92eb01e5782b9d16fd.lock
  • Installing idna (3.4): Installing...
  • Installing pyasn1 (0.4.8): Pending...
  • Installing urllib3 (1.26.13): Pending...
[urllib3.connectionpool] https://pypi.org:443 "GET /pypi/pyasn1/0.4.8/json HTTP/1.1" 304 0
[filelock] Attempting to acquire lock 4389601824 on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/4/5/c/6/c/45c6c135fb2716f122570737520bc471e489cc027d27d4045f844f2b.lock
[filelock] Lock 4389601824 acquired on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/4/5/c/6/c/45c6c135fb2716f122570737520bc471e489cc027d27d4045f844f2b.lock
[filelock] Attempting to release lock 4389601824 on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/4/5/c/6/c/45c6c135fb2716f122570737520bc471e489cc027d27d4045f844f2b.lock
  • Installing pyasn1 (0.4.8): Installing...
  • Installing urllib3 (1.26.13): Pending...
[urllib3.connectionpool] https://pypi.org:443 "GET /pypi/urllib3/1.26.13/json HTTP/1.1" 304 0
[urllib3.connectionpool] https://pypi.org:443 "GET /pypi/certifi/2022.12.7/json HTTP/1.1" 304 0
[filelock] Attempting to acquire lock 4389610512 on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/0/3/e/2/8/03e28977859bf2432b167071c5bb85617f9fe803c33ab9772ad6ac68.lock
[filelock] Attempting to acquire lock 4389608256 on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/5/2/1/f/a/521fa3b1f91db447b8178f95ed9d95a9f183a59cab2e816b328eccd2.lock
[filelock] Lock 4389610512 acquired on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/0/3/e/2/8/03e28977859bf2432b167071c5bb85617f9fe803c33ab9772ad6ac68.lock
  • Installing certifi (2022.12.7): Installing...
[filelock] Attempting to acquire lock 4368539392 on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/c/5/3/5/1/c53517e40b4157089e6d481d7ff49c3f232d135f5f4d479ce888ebc2.lock
  • Installing charset-normalizer (2.1.1): Pending...
  • Installing idna (3.4): Pending...
  • Installing idna (3.4): Installing...
  • Installing certifi (2022.12.7)
  • Installing charset-normalizer (2.1.1): Pending...
  • Installing charset-normalizer (2.1.1): Installing...
  • Installing charset-normalizer (2.1.1)
  • Installing idna (3.4): Pending...
  • Installing idna (3.4): Installing...
  • Installing idna (3.4)
  • Installing pyasn1 (0.4.8): Pending...
  • Installing pyasn1 (0.4.8): Installing...
  • Installing pyasn1 (0.4.8)
  • Installing urllib3 (1.26.13): Pending...
  • Installing urllib3 (1.26.13): Installing...
  • Installing urllib3 (1.26.13)
  • Installing cachetools (5.2.1): Pending...
  • Installing oauthlib (3.2.2): Pending...
  • Installing pyasn1-modules (0.2.8): Pending...
  • Installing requests (2.28.1): Pending...
  • Installing rsa (4.9): Pending...
  • Installing six (1.16.0): Pending...
[urllib3.connectionpool] Starting new HTTPS connection (6): pypi.org:443
[urllib3.connectionpool] https://pypi.org:443 "GET /pypi/cachetools/5.2.1/json HTTP/1.1" 304 0
[filelock] Attempting to acquire lock 4407684656 on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/7/8/0/7/a/7807a654290f63d25f51fb98606847c3f9b07cbfe2702a10dac2b002.lock
[filelock] Lock 4407684656 acquired on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/7/8/0/7/a/7807a654290f63d25f51fb98606847c3f9b07cbfe2702a10dac2b002.lock
[filelock] Attempting to release lock 4407684656 on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/7/8/0/7/a/7807a654290f63d25f51fb98606847c3f9b07cbfe2702a10dac2b002.lock
[filelock] Lock 4407684656 released on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/7/8/0/7/a/7807a654290f63d25f51fb98606847c3f9b07cbfe2702a10dac2b002.lock
[urllib3.connectionpool] https://pypi.org:443 "GET /pypi/six/1.16.0/json HTTP/1.1" 304 0
[urllib3.connectionpool] https://pypi.org:443 "GET /pypi/oauthlib/3.2.2/json HTTP/1.1" 304 0
[urllib3.connectionpool] https://pypi.org:443 "GET /pypi/rsa/4.9/json HTTP/1.1" 304 0
[filelock] Attempting to acquire lock 4368532096 on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/5/2/f/2/2/52f22450478a4e493e93696343f73629efa1e95cefcca04c94251c50.lock
[filelock] Lock 4368532096 acquired on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/5/2/f/2/2/52f22450478a4e493e93696343f73629efa1e95cefcca04c94251c50.lock
[filelock] Attempting to acquire lock 4407681056 on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/0/a/3/d/2/0a3d25d87fafdf016ee0ce5af0b8840c4088c048fdaea00685df55b3.lock
[filelock] Attempting to acquire lock 4407687248 on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/b/a/8/2/0/ba8204f94d4ae4c80398589db52aebaabce537e4626cce27f4ce4e84.lock
[filelock] Lock 4407681056 acquired on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/0/a/3/d/2/0a3d25d87fafdf016ee0ce5af0b8840c4088c048fdaea00685df55b3.lock
[filelock] Lock 4407687248 acquired on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/b/a/8/2/0/ba8204f94d4ae4c80398589db52aebaabce537e4626cce27f4ce4e84.lock
[filelock] Lock 4407681056 released on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/0/a/3/d/2/0a3d25d87fafdf016ee0ce5af0b8840c4088c048fdaea00685df55b3.lock94251c50.lock
[filelock] Lock 4407687248 released on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/b/a/8/2/0/ba8204f94d4ae4c80398589db52aebaabce537e4626cce27f4ce4e84.lock
  • Installing cachetools (5.2.1): Installing...
  • Installing oauthlib (3.2.2): Pending...
  • Installing pyasn1-modules (0.2.8): Pending...
  • Installing requests (2.28.1): Pending...
  • Installing rsa (4.9): Pending...
  • Installing six (1.16.0): Pending...
  • Installing oauthlib (3.2.2): Installing...
  • Installing pyasn1-modules (0.2.8): Pending...
  • Installing pyasn1-modules (0.2.8): Installing...
  • Installing requests (2.28.1): Pending...
  • Installing cachetools (5.2.1)
  • Installing oauthlib (3.2.2): Pending...
  • Installing oauthlib (3.2.2): Installing...
  • Installing oauthlib (3.2.2)
  • Installing pyasn1-modules (0.2.8): Pending...
  • Installing pyasn1-modules (0.2.8): Installing...
  • Installing pyasn1-modules (0.2.8)
  • Installing requests (2.28.1): Pending...
  • Installing requests (2.28.1): Installing...
  • Installing requests (2.28.1)
  • Installing rsa (4.9): Pending...
  • Installing rsa (4.9): Installing...
  • Installing rsa (4.9)
  • Installing six (1.16.0): Pending...
  • Installing six (1.16.0): Installing...
  • Installing six (1.16.0)
  • Installing click (8.1.3): Pending...
  • Installing google-auth (2.15.0): Pending...
  • Installing libtorrent (2.0.7): Pending...
  • Installing markupsafe (2.1.1): Pending...
  • Installing numpy (1.24.1): Pending...
  • Installing packaging (23.0): Pending...
  • Installing requests-oauthlib (1.3.1): Pending...
  • Installing tqdm (4.64.1): Pending...
  • Installing typing-extensions (4.4.0): Pending...
  • Installing click (8.1.3): Installing...
  • Installing google-auth (2.15.0): Pending...
  • Installing libtorrent (2.0.7): Pending...
  • Installing markupsafe (2.1.1): Pending...
  • Installing numpy (1.24.1): Pending...
  • Installing packaging (23.0): Pending...
  • Installing requests-oauthlib (1.3.1): Pending...
  • Installing tqdm (4.64.1): Pending...
  • Installing typing-extensions (4.4.0): Pending...
[urllib3.connectionpool] https://pypi.org:443 "GET /pypi/google-auth/2.15.0/json HTTP/1.1" 304 0
[urllib3.connectionpool] https://pypi.org:443 "GET /pypi/libtorrent/2.0.7/json HTTP/1.1" 304 0
[urllib3.connectionpool] https://pypi.org:443 "GET /pypi/requests-oauthlib/1.3.1/json HTTP/1.1" 304 0
[urllib3.connectionpool] https://pypi.org:443 "GET /pypi/markupsafe/2.1.1/json HTTP/1.1" 304 0
[urllib3.connectionpool] https://pypi.org:443 "GET /pypi/packaging/23.0/json HTTP/1.1" 304 0
[filelock] Attempting to acquire lock 4371585952 on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/5/4/6/f/8/546f83d72ecb8077721f6d89394374bd582513eddb20ccc9adf00a23.lock
[filelock] Attempting to acquire lock 4371603056 on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/e/0/7/9/6/e0796ab726c9d5d42d1f863a351a1d78a363cd822efc1ea0701bc845.lock
[filelock] Attempting to acquire lock 4409762736 on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/8/3/6/d/8/836d8fffcbcb68246194667d85c8af78863c89d418ac8291f22114bc.lock
[filelock] Lock 4371585952 acquired on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/5/4/6/f/8/546f83d72ecb8077721f6d89394374bd582513eddb20ccc9adf00a23.lock
[filelock] Lock 4371603056 acquired on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/e/0/7/9/6/e0796ab726c9d5d42d1f863a351a1d78a363cd822efc1ea0701bc845.lock
[filelock] Attempting to acquire lock 4409767296 on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/f/6/e/c/6/f6ec6db445baa39eb1c6b1acfdff687335786b84f7a7f000041eebe7.lock
[filelock] Attempting to acquire lock 4409769168 on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/6/4/4/b/9/644b9fc6f801aec7a5b93103298e35234ddda97c4a2a5f1fb74ffaf0.lock
[filelock] Lock 4409762736 acquired on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/8/3/6/d/8/836d8fffcbcb68246194667d85c8af78863c89d418ac8291f22114bc.lock
[filelock] Attempting to release lock 4371585952 on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/5/4/6/f/8/546f83d72ecb8077721f6d89394374bd582513eddb20ccc9adf00a23.lock
[filelock] Lock 4371585952 released on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/5/4/6/f/8/546f83d72ecb8077721f6d89394374bd582513eddb20ccc9adf00a23.lock
[filelock] Lock 4409767296 acquired on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/f/6/e/c/6/f6ec6db445baa39eb1c6b1acfdff687335786b84f7a7f000041eebe7.lock
[filelock] Lock 4409769168 acquired on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/6/4/4/b/9/644b9fc6f801aec7a5b93103298e35234ddda97c4a2a5f1fb74ffaf0.lock
[filelock] Attempting to release lock 4371603056 on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/e/0/7/9/6/e0796ab726c9d5d42d1f863a351a1d78a363cd822efc1ea0701bc845.lock
[filelock] Attempting to release lock 4409767296 on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/f/6/e/c/6/f6ec6db445baa39eb1c6b1acfdff687335786b84f7a7f000041eebe7.lock
[filelock] Attempting to release lock 4409762736 on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/8/3/6/d/8/836d8fffcbcb68246194667d85c8af78863c89d418ac8291f22114bc.lock
[filelock] Lock 4371603056 released on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/e/0/7/9/6/e0796ab726c9d5d42d1f863a351a1d78a363cd822efc1ea0701bc845.lock
[filelock] Lock 4409762736 released on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/8/3/6/d/8/836d8fffcbcb68246194667d85c8af78863c89d418ac8291f22114bc.lock
[filelock] Attempting to release lock 4409769168 on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/6/4/4/b/9/644b9fc6f801aec7a5b93103298e35234ddda97c4a2a5f1fb74ffaf0.lock
[filelock] Lock 4409767296 released on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/f/6/e/c/6/f6ec6db445baa39eb1c6b1acfdff687335786b84f7a7f000041eebe7.lock
Skipping wheel libtorrent-2.0.7-cp310-cp310-macosx_10_9_x86_64.whl as this is not supported by the current environment
[filelock] Lock 4409769168 released on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/6/4/4/b/9/644b9fc6f801aec7a5b93103298e35234ddda97c4a2a5f1fb74ffaf0.lock
Skipping wheel libtorrent-2.0.7-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.1-cp310-cp310-macosx_10_9_x86_64.whl as this is not supported by the current environment
Skipping wheel libtorrent-2.0.7-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl as this is not supported by the current environment
Skipping wheel libtorrent-2.0.7-cp310-cp310-musllinux_1_1_aarch64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl as this is not supported by the current environment
Skipping wheel libtorrent-2.0.7-cp310-cp310-musllinux_1_1_x86_64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl as this is not supported by the current environment
Skipping wheel libtorrent-2.0.7-cp310-cp310-win32.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.1-cp310-cp310-musllinux_1_1_aarch64.whl as this is not supported by the current environment
Skipping wheel libtorrent-2.0.7-cp310-cp310-win_amd64.whl as this is not supported by the current environment
Skipping wheel libtorrent-2.0.7-cp37-cp37m-musllinux_1_1_aarch64.whl as this is not supported by the current environment
  • Installing google-auth (2.15.0): Installing...
  • Installing libtorrent (2.0.7): Pending...
  • Installing markupsafe (2.1.1): Pending...
  • Installing numpy (1.24.1): Pending...
  • Installing packaging (23.0): Pending...
  • Installing packaging (23.0): Installing...
  • Installing requests-oauthlib (1.3.1): Pending...
  • Installing requests-oauthlib (1.3.1): Installing...
  • Installing tqdm (4.64.1): Pending...
  • Installing typing-extensions (4.4.0): Pending...
Skipping wheel MarkupSafe-2.1.1-cp37-cp37m-macosx_10_9_x86_64.whl as this is not supported by the current environment
Skipping wheel libtorrent-2.0.7-cp37-cp37m-musllinux_1_1_x86_64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl as this is not supported by the current environment
Skipping wheel libtorrent-2.0.7-cp37-cp37m-win32.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl as this is not supported by the current environment
Skipping wheel libtorrent-2.0.7-cp37-cp37m-win_amd64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl as this is not supported by the current environment
Skipping wheel libtorrent-2.0.7-cp38-cp38-macosx_10_9_x86_64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.1-cp37-cp37m-musllinux_1_1_aarch64.whl as this is not supported by the current environment
Skipping wheel libtorrent-2.0.7-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.1-cp37-cp37m-musllinux_1_1_i686.whl as this is not supported by the current environment
Skipping wheel libtorrent-2.0.7-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.1-cp37-cp37m-musllinux_1_1_x86_64.whl as this is not supported by the current environment
Skipping wheel libtorrent-2.0.7-cp38-cp38-musllinux_1_1_aarch64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.1-cp37-cp37m-win32.whl as this is not supported by the current environment
Skipping wheel libtorrent-2.0.7-cp38-cp38-musllinux_1_1_x86_64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.1-cp37-cp37m-win_amd64.whl as this is not supported by the current environment
Skipping wheel libtorrent-2.0.7-cp38-cp38-win32.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.1-cp38-cp38-macosx_10_9_universal2.whl as this is not supported by the current environment
Skipping wheel libtorrent-2.0.7-cp38-cp38-win_amd64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.1-cp38-cp38-macosx_10_9_x86_64.whl as this is not supported by the current environment
Skipping wheel libtorrent-2.0.7-cp39-cp39-macosx_10_9_x86_64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl as this is not supported by the current environment
Skipping wheel libtorrent-2.0.7-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl as this is not supported by the current environment
Skipping wheel libtorrent-2.0.7-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl as this is not supported by the current environment
Skipping wheel libtorrent-2.0.7-cp39-cp39-musllinux_1_1_aarch64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.1-cp38-cp38-musllinux_1_1_aarch64.whl as this is not supported by the current environment
Skipping wheel libtorrent-2.0.7-cp39-cp39-musllinux_1_1_x86_64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.1-cp38-cp38-musllinux_1_1_i686.whl as this is not supported by the current environment
Skipping wheel libtorrent-2.0.7-cp39-cp39-win32.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.1-cp38-cp38-musllinux_1_1_x86_64.whl as this is not supported by the current environment
Skipping wheel libtorrent-2.0.7-cp39-cp39-win_amd64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.1-cp38-cp38-win32.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.1-cp38-cp38-win_amd64.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.1-cp39-cp39-macosx_10_9_universal2.whl as this is not supported by the current environment
Skipping wheel MarkupSafe-2.1.1-cp39-cp39-macosx_10_9_x86_64.whl as this is not supported by the current environment
  • Installing libtorrent (2.0.7): Failed
  • Installing markupsafe (2.1.1): Pending...
  • Installing markupsafe (2.1.1): Installing...
  • Installing numpy (1.24.1): Pending...
  • Installing packaging (23.0): Pending...
  • Installing packaging (23.0): Installing...
  • Installing requests-oauthlib (1.3.1): Pending...
  • Installing requests-oauthlib (1.3.1): Installing...
  • Installing tqdm (4.64.1): Pending...
  • Installing typing-extensions (4.4.0): Pending...
[urllib3.connectionpool] https://pypi.org:443 "GET /pypi/tqdm/4.64.1/json HTTP/1.1" 304 0
[filelock] Attempting to acquire lock 4371589648 on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/5/7/d/f/e/57dfeca7b83100c24ddec8b4c7c2959d5400131c942c57e7fd2048c9.lock
[filelock] Lock 4371589648 acquired on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/5/7/d/f/e/57dfeca7b83100c24ddec8b4c7c2959d5400131c942c57e7fd2048c9.lock
[filelock] Attempting to release lock 4371589648 on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/5/7/d/f/e/57dfeca7b83100c24ddec8b4c7c2959d5400131c942c57e7fd2048c9.lock
[filelock] Lock 4371589648 released on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/5/7/d/f/e/57dfeca7b83100c24ddec8b4c7c2959d5400131c942c57e7fd2048c9.lock
[urllib3.connectionpool] https://pypi.org:443 "GET /pypi/numpy/1.24.1/json HTTP/1.1" 304 0
[urllib3.connectionpool] https://pypi.org:443 "GET /pypi/typing-extensions/4.4.0/json HTTP/1.1" 304 0
[filelock] Attempting to acquire lock 4371580240 on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/1/f/6/9/4/1f694433501b9636ade96ef4c27a5884d5a3dd7eb9bcda451ab4008b.lock
[filelock] Lock 4371580240 acquired on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/1/f/6/9/4/1f694433501b9636ade96ef4c27a5884d5a3dd7eb9bcda451ab4008b.lock
[filelock] Attempting to acquire lock 4371587056 on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/9/9/a/e/e/99aeec95151dac5c7ec08f058791dd395e316ad4932d3ae2b3d859a9.lock
[filelock] Lock 4371587056 acquired on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/9/9/a/e/e/99aeec95151dac5c7ec08f058791dd395e316ad4932d3ae2b3d859a9.lock
[filelock] Attempting to release lock 4371587056 on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/9/9/a/e/e/99aeec95151dac5c7ec08f058791dd395e316ad4932d3ae2b3d859a9.lock
[filelock] Attempting to release lock 4371580240 on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/1/f/6/9/4/1f694433501b9636ade96ef4c27a5884d5a3dd7eb9bcda451ab4008b.lock
[filelock] Lock 4371580240 released on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/1/f/6/9/4/1f694433501b9636ade96ef4c27a5884d5a3dd7eb9bcda451ab4008b.lock
[filelock] Lock 4371587056 released on /Users/pierremardon/Library/Caches/pypoetry/cache/repositories/PyPI/_http/9/9/a/e/e/99aeec95151dac5c7ec08f058791dd395e316ad4932d3ae2b3d859a9.lock
Skipping wheel numpy-1.24.1-cp310-cp310-macosx_10_9_x86_64.whl as this is not supported by the current environment
Skipping wheel numpy-1.24.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl as this is not supported by the current environment
Skipping wheel numpy-1.24.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl as this is not supported by the current environment
Skipping wheel numpy-1.24.1-cp310-cp310-win32.whl as this is not supported by the current environment
Skipping wheel numpy-1.24.1-cp310-cp310-win_amd64.whl as this is not supported by the current environment
Skipping wheel numpy-1.24.1-cp311-cp311-macosx_10_9_x86_64.whl as this is not supported by the current environment
Skipping wheel numpy-1.24.1-cp311-cp311-macosx_11_0_arm64.whl as this is not supported by the current environment
Skipping wheel numpy-1.24.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl as this is not supported by the current environment
Skipping wheel numpy-1.24.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl as this is not supported by the current environment
Skipping wheel numpy-1.24.1-cp311-cp311-win32.whl as this is not supported by the current environment
Skipping wheel numpy-1.24.1-cp311-cp311-win_amd64.whl as this is not supported by the current environment
Skipping wheel numpy-1.24.1-cp38-cp38-macosx_10_9_x86_64.whl as this is not supported by the current environment
Skipping wheel numpy-1.24.1-cp38-cp38-macosx_11_0_arm64.whl as this is not supported by the current environment
Skipping wheel numpy-1.24.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl as this is not supported by the current environment
Skipping wheel numpy-1.24.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl as this is not supported by the current environment
Skipping wheel numpy-1.24.1-cp38-cp38-win32.whl as this is not supported by the current environment
Skipping wheel numpy-1.24.1-cp38-cp38-win_amd64.whl as this is not supported by the current environment

  Stack trace:

  5  ~/Library/Application Support/pypoetry/venv/lib/python3.10/site-packages/poetry/installation/executor.py:263 in _execute_operation
      261│
      262│             try:
    → 263│                 result = self._do_execute_operation(operation)
      264│             except EnvCommandError as e:
      265│                 if e.e.returncode == -2:

  • Installing click (8.1.3)
  • Installing google-auth (2.15.0): Pending...
  • Installing google-auth (2.15.0): Installing...
  • Installing libtorrent (2.0.7): Pending...
  • Installing libtorrent (2.0.7): Failed

  Stack trace:

  5  ~/Library/Application Support/pypoetry/venv/lib/python3.10/site-packages/poetry/installation/executor.py:263 in _execute_operation
      261│
      262│             try:
    → 263│                 result = self._do_execute_operation(operation)
      264│             except EnvCommandError as e:
      265│                 if e.e.returncode == -2:

  4  ~/Library/Application Support/pypoetry/venv/lib/python3.10/site-packages/poetry/installation/executor.py:334 in _do_execute_operation
  • Installing google-auth (2.15.0)
  • Installing libtorrent (2.0.7): Pending...
  • Installing libtorrent (2.0.7): Failed

  Stack trace:

  5  ~/Library/Application Support/pypoetry/venv/lib/python3.10/site-packages/poetry/installation/executor.py:263 in _execute_operation
      261│
      262│             try:
    → 263│                 result = self._do_execute_operation(operation)
      264│             except EnvCommandError as e:
      265│                 if e.e.returncode == -2:

  4  ~/Library/Application Support/pypoetry/venv/lib/python3.10/site-packages/poetry/installation/executor.py:334 in _do_execute_operation
      332│             return 0
      333│
    → 334│         result: int = getattr(self, f"_execute_{method}")(operation)
      335│
      336│         if result != 0:

  3  ~/Library/Application Support/pypoetry/venv/lib/python3.10/site-packages/poetry/installation/executor.py:454 in _execute_install
      452│
      453│     def _execute_install(self, operation: Install | Update) -> int:
    → 454│         status_code = self._install(operation)
      455│
      456│         self._save_url_reference(operation)

  2  ~/Library/Application Support/pypoetry/venv/lib/python3.10/site-packages/poetry/installation/executor.py:488 in _install
      486│             archive = self._download_link(operation, Link(package.source_url))
      487│         else:
    → 488│             archive = self._download(operation)
      489│
      490│         operation_message = self.get_operation_message(operation)

  1  ~/Library/Application Support/pypoetry/venv/lib/python3.10/site-packages/poetry/installation/executor.py:626 in _download
      624│
      625│     def _download(self, operation: Install | Update) -> Path:
    → 626│         link = self._chooser.choose_for(operation.package)
      627│
      628│         if link.yanked:

  RuntimeError

  Unable to find installation candidates for libtorrent (2.0.7)

  at ~/Library/Application Support/pypoetry/venv/lib/python3.10/site-packages/poetry/installation/chooser.py:105 in choose_for
      101│
      102│             links.append(link)
      103│
      104│         if not links:
    → 105│             raise RuntimeError(f"Unable to find installation candidates for {package}")
      106│
      107│         # Get the best link
      108│         chosen = max(links, key=lambda link: self._sort_key(package, link))
      109│

  • Installing markupsafe (2.1.1): Pending...
  • Installing markupsafe (2.1.1): Installing...
  • Installing markupsafe (2.1.1)
  • Installing numpy (1.24.1): Pending...
  • Installing numpy (1.24.1): Installing...
  • Installing numpy (1.24.1)
  • Installing packaging (23.0): Pending...
  • Installing packaging (23.0): Installing...
  • Installing packaging (23.0)
  • Installing requests-oauthlib (1.3.1): Pending...
  • Installing requests-oauthlib (1.3.1): Installing...
  • Installing requests-oauthlib (1.3.1)
  • Installing tqdm (4.64.1): Pending...
  • Installing tqdm (4.64.1): Installing...
  • Installing tqdm (4.64.1)
  • Installing typing-extensions (4.4.0): Pending...
  • Installing typing-extensions (4.4.0): Installing...
  • Installing typing-extensions (4.4.0)

Trace for pip install inside venv

ERROR: Could not find a version that satisfies the requirement libtorrent (from versions: none)
  ERROR: No matching distribution found for libtorrent
  error: subprocess-exited-with-error

  × pip subprocess to install build dependencies did not run successfully.
  │ exit code: 1
  ╰─> See above for output.

  note: This error originates from a subprocess, and is likely not a problem with pip.
  full command: /Users/pierremardon/Workspaces/PittsCraft/antique/.venv/bin/python /Users/pierremardon/Workspaces/PittsCraft/antique/.venv/lib/python3.10/site-packages/pip/__pip-runner__.py install --ignore-installed --no-user --prefix /private/var/folders/fc/m89bvpn97dd9z00yhy71bvb80000gn/T/pip-build-env-zsbzn1tm/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel requests tqdm libtorrent click 'importlib-resources; python_version < '"'"'3.9'"'"''
  cwd: [inherit]
  Installing build dependencies ... error
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

Outside of venv using pip

Successfully installed cloudpickle-2.2.0 contourpy-1.0.6 cycler-0.11.0 fonttools-4.38.0 gym-0.21.0 importlib-metadata-4.13.0 kiwisolver-1.4.4 matplotlib-3.6.2 packaging-23.0 pandas-1.5.2 pillow-9.4.0 pyparsing-3.0.9 python-dateutil-2.8.2 pytz-2022.7 stable-baselines3-1.6.2 torch-1.13.1 typing-extensions-4.4.0 zipp-3.11.0

No libtorrent involved.

@PierreMardon PierreMardon added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Jan 9, 2023
@dimbleby
Copy link
Contributor

dimbleby commented Jan 9, 2023

probably duplicates #7161

@neersighted
Copy link
Member

This indeed appears to be a duplicate. Hopefully pip releases soon, or I can finish the ARCHFLAGS workaround for this (macOS/Apple Silicon-specific) manifestation.

@neersighted neersighted closed this as not planned Won't fix, can't repro, duplicate, stale Jan 10, 2023
@neersighted neersighted added status/duplicate Duplicate issues and removed kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Jan 10, 2023
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status/duplicate Duplicate issues
Projects
None yet
Development

No branches or pull requests

3 participants