python-poetry / poetry

Python packaging and dependency management made easy
https://python-poetry.org
MIT License
31.71k stars 2.27k forks source link

`poetry install`: `invalid literal for int() with base 10: b''` #6861

Closed pcroland closed 2 years ago

pcroland commented 2 years ago

poetry: 1.2.2 python: 3.10.8 OS: Windows 10, WSL1

In any Python project poetry install does this on my computer:

poetry install
Creating virtualenv --- in ---
Updating dependencies
Resolving dependencies... (1.4s)

invalid literal for int() with base 10: b''

I updated Python with pyenv, set it to global, reinstalled poetry, but the error persists.

Secrus commented 2 years ago

Could you post info you get when running poetry install -vvv?

pcroland commented 2 years ago
poetry install -vvv

  Stack trace:

  12  .local/share/pypoetry/venv/lib/python3.10/site-packages/cleo/application.py:329 in run
       327│
       328│             try:
     → 329│                 exit_code = self._run(io)
       330│             except Exception as e:
       331│                 if not self._catch_exceptions:

  11  .local/share/pypoetry/venv/lib/python3.10/site-packages/poetry/console/application.py:185 in _run
       183│         self._load_plugins(io)
       184│
     → 185│         exit_code: int = super()._run(io)
       186│         return exit_code
       187│

  10  .local/share/pypoetry/venv/lib/python3.10/site-packages/cleo/application.py:423 in _run
       421│             io.input.set_stream(stream)
       422│
     → 423│         exit_code = self._run_command(command, io)
       424│         self._running_command = None
       425│

   9  .local/share/pypoetry/venv/lib/python3.10/site-packages/cleo/application.py:465 in _run_command
       463│
       464│         if error is not None:
     → 465│             raise error
       466│
       467│         return event.exit_code

   8  .local/share/pypoetry/venv/lib/python3.10/site-packages/cleo/application.py:446 in _run_command
       444│
       445│         try:
     → 446│             self._event_dispatcher.dispatch(event, COMMAND)
       447│
       448│             if event.command_should_run():

   7  .local/share/pypoetry/venv/lib/python3.10/site-packages/cleo/events/event_dispatcher.py:23 in dispatch
        21│
        22│         if listeners:
     →  23│             self._do_dispatch(listeners, event_name, event)
        24│
        25│         return event

   6  .local/share/pypoetry/venv/lib/python3.10/site-packages/cleo/events/event_dispatcher.py:84 in _do_dispatch

        82│                 break
        83│
     →  84│             listener(event, event_name, self)
        85│
        86│     def _sort_listeners(self, event_name: str) -> None:

   5  .local/share/pypoetry/venv/lib/python3.10/site-packages/poetry/console/application.py:291 in configure_env
       289│
       290│         io = event.io
     → 291│         poetry = command.poetry
       292│
       293│         env_manager = EnvManager(poetry)

   4  .local/share/pypoetry/venv/lib/python3.10/site-packages/poetry/console/commands/command.py:23 in poetry
        21│     def poetry(self) -> Poetry:
        22│         if self._poetry is None:
     →  23│             return self.get_application().poetry
        24│
        25│         return self._poetry

   3  .local/share/pypoetry/venv/lib/python3.10/site-packages/poetry/console/application.py:124 in poetry
       122│             return self._poetry
       123│
     → 124│         self._poetry = Factory().create_poetry(
       125│             Path.cwd(),
       126│             io=self._io,

   2  .local/share/pypoetry/venv/lib/python3.10/site-packages/poetry/factory.py:56 in create_poetry
        54│             io = NullIO()
        55│
     →  56│         base_poetry = super().create_poetry(cwd=cwd, with_groups=with_groups)
        57│
        58│         locker = Locker(

   1  .local/share/pypoetry/venv/lib/python3.10/site-packages/poetry/core/factory.py:48 in create_poetry
        46│         from poetry.core.pyproject.toml import PyProjectTOML
        47│
     →  48│         poetry_file = self.locate(cwd)
        49│         local_config = PyProjectTOML(path=poetry_file).poetry_config
        50│

  RuntimeError

  Poetry could not find a pyproject.toml file in /home/roland or its parents

  at .local/share/pypoetry/venv/lib/python3.10/site-packages/poetry/core/factory.py:452 in locate
      448│             if poetry_file.exists():
      449│                 return poetry_file
      450│
      451│         else:
    → 452│             raise RuntimeError(
      453│                 f"Poetry could not find a pyproject.toml file in {cwd} or its parents"
      454│             )
      455│
Secrus commented 2 years ago

This is a different error than what you posted in your original issue. Could you reproduce the original error running it with -vvv flag?

pcroland commented 2 years ago
Loading configuration file /home/roland/.config/pypoetry/config.toml
Using virtualenv: /mnt/x/code/hasto-bot/.venv
Project environment contains an empty path in sys_path, ignoring.
Updating dependencies
Resolving dependencies...
   1: fact: hasto-bot is 0.1.0
   1: derived: hasto-bot
   1: fact: hasto-bot depends on requests (^2.28.1)
   1: fact: hasto-bot depends on toml (^0.10.2)
   1: fact: hasto-bot depends on python-telegram-bot (^13.14)
   1: fact: hasto-bot depends on rich (^12.6.0)
   1: selecting hasto-bot (0.1.0)
   1: derived: rich (>=12.6.0,<13.0.0)
   1: derived: python-telegram-bot (>=13.14,<14.0)
   1: derived: toml (>=0.10.2,<0.11.0)
   1: derived: requests (>=2.28.1,<3.0.0)
[keyring.backend] Loading KWallet
[keyring.backend] Loading SecretService
[keyring.backend] Loading Windows
[keyring.backend] Loading chainer
[keyring.backend] Loading libsecret
[keyring.backend] Loading macOS
No suitable keyring backend found
No suitable keyring backends were found
Keyring is not available, credentials will be stored and retrieved from configuration files as plaintext.
Creating new session for pypi.org
[urllib3.connectionpool] Starting new HTTPS connection (1): pypi.org:443
[urllib3.connectionpool] https://pypi.org:443 "GET /simple/rich/ HTTP/1.1" 304 0
Source (PyPI): 1 packages found for rich >=12.6.0,<13.0.0
[urllib3.connectionpool] https://pypi.org:443 "GET /simple/python-telegram-bot/ HTTP/1.1" 304 0
Source (PyPI): 1 packages found for python-telegram-bot >=13.14,<14.0
[urllib3.connectionpool] https://pypi.org:443 "GET /simple/toml/ HTTP/1.1" 304 0
Source (PyPI): 1 packages found for toml >=0.10.2,<0.11.0
[urllib3.connectionpool] https://pypi.org:443 "GET /simple/requests/ HTTP/1.1" 304 0
Source (PyPI): 1 packages found for requests >=2.28.1,<3.0.0
   1: fact: rich (12.6.0) depends on pygments (>=2.6.0,<3.0.0)
   1: fact: rich (12.6.0) depends on commonmark (>=0.9.0,<0.10.0)
   1: selecting rich (12.6.0)
   1: derived: commonmark (>=0.9.0,<0.10.0)
   1: derived: pygments (>=2.6.0,<3.0.0)
[urllib3.connectionpool] https://pypi.org:443 "GET /simple/commonmark/ HTTP/1.1" 304 0
Source (PyPI): 2 packages found for commonmark >=0.9.0,<0.10.0
[urllib3.connectionpool] https://pypi.org:443 "GET /simple/pygments/ HTTP/1.1" 304 0
Source (PyPI): 16 packages found for pygments >=2.6.0,<3.0.0
   1: fact: python-telegram-bot (13.14) depends on certifi (*)
   1: fact: python-telegram-bot (13.14) depends on tornado (6.1)
   1: fact: python-telegram-bot (13.14) depends on APScheduler (3.6.3)
   1: fact: python-telegram-bot (13.14) depends on pytz (>=2018.6)
   1: fact: python-telegram-bot (13.14) depends on cachetools (4.2.2)
   1: selecting python-telegram-bot (13.14)
   1: derived: cachetools (==4.2.2)
   1: derived: pytz (>=2018.6)
   1: derived: APScheduler (==3.6.3)
   1: derived: tornado (==6.1)
   1: derived: certifi
[urllib3.connectionpool] https://pypi.org:443 "GET /simple/cachetools/ HTTP/1.1" 304 0
Source (PyPI): 1 packages found for cachetools 4.2.2
[urllib3.connectionpool] https://pypi.org:443 "GET /simple/pytz/ HTTP/1.1" 304 0
Skipping url (https://files.pythonhosted.org/packages/3a/e5/368c20bbf58a616682027db3ffa21f90a43d82c5517fdbd4e819e621cbec/pytz-2004d.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/65/97/f74315be3ae53c4fa27a53cb1d63360898b27fb6547c9346ab02e1e1eba9/pytz-2005e.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/a9/69/fc96febe8356af8f7d6ccd8b92535222bf39d3e4f315fa725774a3762077/pytz-2005i.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/5a/d8/4d75d1e4287ad9d051aab793c68f902c9c55c4397636b5ee540ebd15aedf/pytz-2005k.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/73/b2/12575d53aa86b02dfb6d8ac808e2b0a866afaa598139aac4423795d1f150/pytz-2005k.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/33/13/7a8b55b12ca8ff7ef760c6ec24f369766e3c5d9eda99d5e127cde18d2684/pytz-2005k.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/64/10/4953545bfb7a1ff6856ccd4964ee2fabef046ddf539fdd2788f369801a20/pytz-2005m.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/85/3e/781c31f3df5090145b9a490d9870dc94356312af042465b5dd30739c1ba5/pytz-2005m.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/58/32/b1b04917e45f3cb21d73c8d6fc50cbfbd0c8842508e4f0778ee40fb62562/pytz-2005m.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/56/03/af156356856b4fef1aaf50165a1be86b0f619c6019ee4519bbdc3348b50e/pytz-2006g.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/21/e0/82ed2864abd138b90be57ab7d7f3b603537b700b0aa8dfd916e1de793b62/pytz-2006g.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/57/ad/791fd78561fd3da59f79f18e9d31a9f7f62013a61df996fe7c27682c999b/pytz-2006g.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/47/75/5a1756c84ac51d83901d03fed58378bef6f06326335516126ba80bfce920/pytz-2006j.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/5f/b9/0efede0c43692c24c4670d5cc6917226af1da232f965dc4b35b2ff243114/pytz-2006j.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/fb/49/318a913286569b566c6cb18ad253bf3a827db66916528ae437f4b2269241/pytz-2006j.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/28/ff/14eeb3ee899b7f01f5d81a7585ca87b725765694f21d7200cf4e4f3cea36/pytz-2006p.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/03/be/abbddc124be14e7f74b7915ea5e3fea3ebb133ce1fe41ad82db781ecdb14/pytz-2006p.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/a2/73/7a40861ff5aa0e6e11861e91350488343d98d9d26fc94b238c365e5a105d/pytz-2006p.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/b9/de/49f4e7c8a4cbb0c1adbfa9e1ac4c155bda807d2834b2cbbbbfd3b304cb26/pytz-2007d.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/4d/80/44e945c0983ef844be6b43d3dad72691d67315e748a9999d0d959eb5ab04/pytz-2007d.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/04/87/6b3ce220b1d8e5398abd1eb230ab0eb5a45d84db824ff994772e273a8551/pytz-2007d.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/9c/ee/ce8dc89913f8b03e3088d129051dc02e1b80e1ad4ac2052e82b9d23121b2/pytz-2007f.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/d5/ec/e69a32096e6f6b796152e5f023e8fce929f7e6560946e453d3d7b7e1586e/pytz-2007f.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/3b/37/2aa23ce0e75dc5a0a15e77f2a2fe12855ac7906411d85c8b4a7fdb1cb853/pytz-2007f.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/a0/cc/c205090cb9f6f56873f011a103f95169d6a0c2f0abbda0495bfe25bc3b2f/pytz-2007g.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/82/ee/a85ee2be28d2aedbf6aa7bfee8284e9f200617b48f2ea5b354d266326f9f/pytz-2007g.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/2e/75/4b5d8d79fca5a7423c668b3b517f1efe3458a80245ea216b10fbfc3d61d8/pytz-2007g.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/9b/57/ac5b5096de848c05bba3f268066cf3dbd4a63f580ab6506403a663168765/pytz-2007i.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/ad/f6/4b101e61edf991d38a4ccb80a40b0ad998ecbc90b0f07b3dcb850e408b99/pytz-2007i.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/52/0a/e322be630089f5bd566f9b40a47b1266ba3f93348572832d4798cb6d6ae0/pytz-2007i.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/df/76/1d3ac1abada8806e822ca1795e3d59015576991062ef5d62cc0091d957ce/pytz-2007k.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/22/d0/0388b67ae2c118e6de8b07c4ac9a7f59cd916d56af4af79aec1492d2c291/pytz-2007k.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/e5/0e/88e83701c01bbf8bff0829d66643d941a6b76b4cadc062ecef2bc682a382/pytz-2007k.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/51/5c/0e5db5f8c032be47f54c7d143d42ca19513970731b2e82de108a586288da/pytz-2008g.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/64/26/b74326c8002f913647d50a63fa56a15cab4f5e95677f238d8f3abd65dc91/pytz-2008g.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/d9/b4/d1c73810911df636e1bddda8a0c604d6663e8cf9ffa20258d786a6fb2827/pytz-2008g.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/06/f7/266b26bb23143c7acf6cb3ad19b7824cdd9517c26368256250a7cb5efa62/pytz-2008h.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/24/e0/f33f94ed0b565b0182a47773d3411d6547071ff68718c3668c67302ad5c9/pytz-2008h.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/39/e3/f34605f5d71b81856f6a7bafcb52d1063c2086f66f630ec119090e73068f/pytz-2008h.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/a9/35/d0a8617d22ae87699d31a2ea5b18de15c63e07b05689161b58111645abf4/pytz-2008i.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/f5/1a/d103f26e848591bd3fdc56f18aafdef69c0e9b95e82c750fe4b14b1654c6/pytz-2008i.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/e4/51/00e1b38980da33d493519d1c0ac504f0bdf63617ddd9672eee043b25b8c8/pytz-2008i.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/18/23/e6118915c5b3c46626d0205149dd4cf0b2ec608e7e3a7568fba3af9ca188/pytz-2009d.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/9d/2c/7eea25f6b84bb02931002f51ca737b818acaac51d9e9924c91cddf5c4dcc/pytz-2009d.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/c1/73/0b1a568ebce568b3a4fcebb5afd9bd030d6a95f5705521b84c8781d9b04d/pytz-2009d.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/9e/fc/c8b089fbfd590deeb11748d471a20e05bf80bebef4e00bd8e378e986b53d/pytz-2009e.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/75/1b/cab44fcd506b65780211b3a1ec15c0bef60b1a0cc114a87f3108a44a16af/pytz-2009e.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/88/ab/6931879ab795e659c25fe86c4592096cb4d2588ac9c0abbfc7d431e4a86d/pytz-2009e.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/46/1d/875875884b152e2ffc3ef5a6d8ff4df152618b30dfec8f3ca84c5f8e41ae/pytz-2009f.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/ef/0a/71c08c0a51a2cbe727bb367ed8cc90d081aa7ec5fbaf1822c082769921e0/pytz-2009f.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/e0/09/cbf72ef237142744304371fc6a9ec9342f654eebaee69bb666059803f494/pytz-2009f.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/7d/ce/28b8c291004257812fa5307d399bdd62b5047481824d527585f8935a3c01/pytz-2009g.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/3d/f7/31b96b1be66829f5286376cf9b65ccbdc6afa3ed6088e4d357cca48bc15c/pytz-2009g.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/4c/de/d68df17b4c9c3bd4634e62e900c76836900de9dd766c5057b6f9c0cd497c/pytz-2009g.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/b7/a9/180b96568ef36c3c78fb9c6390110a9c8357715980d50687f3736becafed/pytz-2009i.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/11/9c/e33f8790c465b951621bbfa73d3bd44ffba8366180aaa0f73660ddf1094d/pytz-2009i.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/f6/d6/8fe883b1a63e92f639fca8596665db067cdfb9db491b92e67b89aae80f5a/pytz-2009i.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/52/87/6e0649d0a259f2d2527f2f09419a92430e8c4435085fa2bbeca41eee5615/pytz-2009j.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/ab/ff/9c14978cffcc911ea84ba0ceacedcad78e7722fdafbcde8ce52ce04fa0db/pytz-2009j.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/14/10/d960c57fef8b6f8a11e7138ce1c391f26cd568c0885f089bc68d323a8100/pytz-2009j.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/95/d6/fb2b44e234c637b052dbf65d140c7f2665d11894cdbafeefbbb79aa320d1/pytz-2009l.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/5c/8c/67aedaf217c47cee1974a70059c7a9d1ea77c4bff8d908da1feeeab58c14/pytz-2009l.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/b1/6c/8aef50d26df9326a0c868c87e67254517cec3c8b447cf0ebb7895ca34ded/pytz-2009l.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/82/9c/ccd2197555563134ea5d52f3a6a7a3d9cc34eaeaff283037cbe1d7f56947/pytz-2009n.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/2a/38/ec91abc41768cef990534fb687f80f88a826eab6e3866926bd77d23d2bfc/pytz-2009n.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/f8/92/9d191a76a87d2608cb5dc6c496cf9739dfd49048a63fd3a6d39051b6f7a6/pytz-2009n.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/0d/92/b4e43bea93e8db7b199f27e868efecd9945aa53a6f20d3b9b373a76b4468/pytz-2009p.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/9c/7c/1372af61f0258fb29858ac273a3b5fc425f45ecefefb1f789cff7718f477/pytz-2009p.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/37/42/1bb630e89a5a060b9fa30bb6e966e15c9ff46859d3e625adfdc53bfc9449/pytz-2009p.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/7b/0a/0f5abb08cde76c348bde3517795341de008ff5864a9025f7d8b26d12e447/pytz-2009u.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/a8/b0/524e52f325f3d7775028adcf5c10c3ab2f02d3290d41f3af1572a8bf19eb/pytz-2009u.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/7c/d5/5cc1451347aea2f84b1f723cca8c17227ca558efa0b0e071be0df9c679bd/pytz-2009u.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/3e/cf/328d56054798e46c02d7f9307669f8bb2547153b21f7234f5f936668bb27/pytz-2010e.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/cf/cf/bac0d5074731351a854714ae3eb5aa4bfff77ff78a9ae41706172f4ce0a9/pytz-2010e.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/29/62/7c5d050dfb86522785fe7531fcf7aac5c8e4f34afa47f84c599cdd1eaa8e/pytz-2010e.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/0e/3d/f3e9311798977f25a35401a5789663c3fba93bed09b2bbe82109b0bec0a2/pytz-2010g.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/5e/51/581eefaa5f6518a74aafa9959144507ca4dd36e9711a7cdac472a8603281/pytz-2010g.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/97/ef/1e545f3652f1d33ec679f40e86f8b06eaa36ada23cf5ea798f357a4bf5ee/pytz-2010g.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/32/5f/bf8b188f58cac700cd138abc79877a22dc49224b457c2a519035796f8c20/pytz-2010h.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/8a/b4/c26a8258f06aacabdb372f42daa9cf6c2da1473185c04cb86b229c75a260/pytz-2010h.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/ec/79/11ef536accd7261df5f5dba6bb9069aaf87cb52b1b0693569961de965d7a/pytz-2010h.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/22/b1/93440fd268c3efd82548a1f519adf9f99d835bd410e42318ec66c60ba456/pytz-2010k.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/08/94/804e9eeb1055ccad9ae5f28f2114a31b3576c6785e9d870c87929629b298/pytz-2010k.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/64/58/8937a1da399b172ff82c47e85c6f35cf838b8104a5d9c32f2bcc091b1b2d/pytz-2010k.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/64/d6/8df9c01922fd7541d499a8ed647499f629ebaee6cdb95d54f75a1c87dadf/pytz-2010l.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/1e/cb/ad94d22ec6a5fc9dc92c752eed71c417b5f632787e3660dd44f02425169b/pytz-2010l.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/90/9d/643f9e55d4ff12b7e2fc2ad214af7a2da40b60c65496f35008d8a6fa387d/pytz-2010l.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/0d/3b/781baa19b24486d6a393d84efe16b39b4416a68bf136ea6393b8e2a6af8d/pytz-2010o.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/e4/6a/cd6736c445c223df40daeb5d9d224f6a2e79b6abba3da560e77e4cc33340/pytz-2010o.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/ae/d8/81625fd534c5cfa4f06cb11df5c4320b31f56eb6b1c5b92b7c8e6aedd294/pytz-2010o.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/6f/96/5337fa85efb7533b448e742aa66c97332f00c0bb5d4da8c7f71d4be99d14/pytz-2011d.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/34/0d/9ee842897b9af22b37d4ecd6aa6f3e0c1183450597f005e633474f2193e2/pytz-2011d.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/cb/17/909813d7cfdb048503cb3d42752cdc86384a19181377993e82e20232c528/pytz-2011d.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/25/99/74dc0f53589ee3c8bbf41a41930e616fcebcdb2e86b5f5def51b5878d46d/pytz-2011e.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/fc/81/7991ac2b8aac2529b838248e42cc6039cc61fb2784590932b1dd75b11e46/pytz-2011e.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/78/e1/8d6e1f79aa083d9de1f99597c70ef0d17b4e511a4e338b013bf61048589b/pytz-2011e.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/40/4e/dc52937859e5a6b9c45363d575e523508dc9ad332f46a37491e889ce1025/pytz-2011g.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/02/07/c838ca979e7daa33ddc0b1690e7e287a10ab6d99faa3b812de23f2396909/pytz-2011g.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/3d/64/7da2a8a962318a24e5d3f347831f885e1b1fa7a65ce1d6fa77391ce02d53/pytz-2011g.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/41/e1/c96f14b67fe7e5260c94a50a67c247d81504f9e7932030902504593f5286/pytz-2011h.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/62/7e/2b128707de67976091142cd50fc5a0fd99a8c68c14081b721ce6d1ee591c/pytz-2011h.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/d3/e6/0ea8cf01aaba04abb54d99fa60f1ea79f2d861970006be2c72378599ec37/pytz-2011h.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/b9/43/a66435be96b19052cfc9d281ff4a21ddef8c82ceb6598e2a9131e7f81e66/pytz-2011j.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/0c/36/82a1fabc3e11572cce0e7df8e621bfb3fffaac6c9edc017117d80c54557c/pytz-2011j.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/e8/14/5eb477c7b33d6fe552b5334eb2e14bd3f134d124293a8c7455af73529d06/pytz-2011j.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/9c/56/3813cd4d4ec4cd8d93388b8934e421122d8a89f19cf1f143a3c7ebc8827c/pytz-2011k.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/4e/82/6484ed495a32e5ed6544d27bf56291c48b0bc76fdb59e67508c6fb6c88b1/pytz-2011k.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/24/ed/209c1fcf829c1b541b8be54ce8c1adb7f1ea94ca6f9343c715c46655b628/pytz-2011k.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/37/7f/35a9254080735c0f57fb616b7ca1f33d69874262ea950582cbd552db0547/pytz-2011n.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/c6/bd/8f8fab6717dbb3ab588f98cb256f99ed02411a0402f1466011c02a19cc77/pytz-2011n.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/f9/5b/e38aa2e972a20cec267305b66b75abd3d50c711b1245f0176fe8f5e06c8c/pytz-2011n.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/1b/03/3d5fbb706fe1d1a3ddd173546828cf003a76d5f4c2ae4282239a531cb0dc/pytz-2012d.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/a3/72/3c29643cc7fcc7d66252b673d6bd7a704b7afe5befd80c373bd089a97ec8/pytz-2012d.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/9d/de/d37baefeaaf503bd2da66bb26fc52b193b572a127d8aaa6599ee76a22208/pytz-2012d.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/a8/7c/3ab6d8ce18a3ee97adb2834a567d59b5052da23cb7a2df8f65a683a61329/pytz-2012f.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/83/c1/5606c09484e1e48c5438944837646f5efc4315a504dc1b6678c4701102f8/pytz-2012f.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/e8/4d/25ce05ab3b9d6b198e86d9613b489b52698f73c387175bed3375fe592389/pytz-2012f.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/e0/67/9f9bdc3e3541cff69db9f00a9f3633e76d6e09038272fbf9d0104209d711/pytz-2012g.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/2b/dc/8a5ab30b85e053afe883796099e84492a2a459493ff7ad099f67b97a41a9/pytz-2012g.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/31/0f/e260a082c7b86b04df960bdeaf02a3b8569a98201954f4762167b439a915/pytz-2012g.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/3f/fe/9ab62966b1bf38f4c06630e9b0cbbc2bb55a4852674e07461e3ad47a7028/pytz-2012h.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/f3/e6/c201993495f8d95eb65d00770659fa71de0a466755c9a905c38feca1e3ba/pytz-2012h.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/36/a7/08762931f8a4c04dd9e7f25877263cf874f41b50b8e4142afb3c4e459e7a/pytz-2012j.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/27/35/35b141bbe9f31e7ebcd2ce97385773270b70aa956c7673b618240da570f6/pytz-2012j.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/0d/fe/e76fc7c330bd4b088e7c99b5614555fa5c43ba0e0b700f9bf55082f78973/pytz-2012j.zip) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/12/41/890466b297479190741a3b428a29fa54ed6200bc0780d839edfd7a0f3caf/pytz-2013d.tar.bz2) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/03/25/829c6a147e2abe2c025f93df8a847fb85cbb04a1e2f902218886dd3c5bf9/pytz-2013d.tar.gz) due to invalid version (None)
Skipping url (https://files.pythonhosted.org/packages/3a/4c/6e6761f3c29396516ab67ef0c8ac56223dacc8c84f938464bbdd5cc9340f/pytz-2013d.zip) due to invalid version (None)
Source (PyPI): 16 packages found for pytz >=2018.6
[urllib3.connectionpool] https://pypi.org:443 "GET /simple/apscheduler/ HTTP/1.1" 304 0
Source (PyPI): 1 packages found for apscheduler 3.6.3
[urllib3.connectionpool] https://pypi.org:443 "GET /simple/tornado/ HTTP/1.1" 304 0
Source (PyPI): 1 packages found for tornado 6.1
[urllib3.connectionpool] https://pypi.org:443 "GET /simple/certifi/ HTTP/1.1" 304 0
Source (PyPI): 51 packages found for certifi *
   1: selecting toml (0.10.2)
   1: fact: requests (2.28.1) depends on charset-normalizer (>=2,<3)
   1: fact: requests (2.28.1) depends on idna (>=2.5,<4)
   1: fact: requests (2.28.1) depends on urllib3 (>=1.21.1,<1.27)
   1: fact: requests (2.28.1) depends on certifi (>=2017.4.17)
   1: selecting requests (2.28.1)
   1: derived: certifi (>=2017.4.17)
   1: derived: urllib3 (>=1.21.1,<1.27)
   1: derived: idna (>=2.5,<4)
   1: derived: charset-normalizer (>=2,<3)
[urllib3.connectionpool] https://pypi.org:443 "GET /simple/urllib3/ HTTP/1.1" 304 0
Source (PyPI): 30 packages found for urllib3 >=1.21.1,<1.27
[urllib3.connectionpool] https://pypi.org:443 "GET /simple/idna/ HTTP/1.1" 304 0
Source (PyPI): 11 packages found for idna >=2.5,<4
[urllib3.connectionpool] https://pypi.org:443 "GET /simple/charset-normalizer/ HTTP/1.1" 304 0
Source (PyPI): 15 packages found for charset-normalizer >=2,<3
   1: selecting cachetools (4.2.2)
   1: fact: apscheduler (3.6.3) depends on setuptools (>=0.7)
   1: fact: apscheduler (3.6.3) depends on six (>=1.4.0)
   1: fact: apscheduler (3.6.3) depends on pytz (*)
   1: fact: apscheduler (3.6.3) depends on tzlocal (>=1.2)
   1: selecting apscheduler (3.6.3)
   1: derived: tzlocal (>=1.2)
   1: derived: six (>=1.4.0)
   1: derived: setuptools (>=0.7)
[urllib3.connectionpool] https://pypi.org:443 "GET /simple/tzlocal/ HTTP/1.1" 304 0
Source (PyPI): 15 packages found for tzlocal >=1.2
[urllib3.connectionpool] https://pypi.org:443 "GET /simple/six/ HTTP/1.1" 304 0
Source (PyPI): 20 packages found for six >=1.4.0
[urllib3.connectionpool] https://pypi.org:443 "GET /simple/setuptools/ HTTP/1.1" 304 0
Source (PyPI): 494 packages found for setuptools >=0.7
   1: selecting tornado (6.1)
   1: selecting commonmark (0.9.1)
   1: selecting idna (3.4)
   1: selecting charset-normalizer (2.1.1)
   1: fact: tzlocal (4.2) depends on pytz-deprecation-shim (*)
   1: fact: tzlocal (4.2) depends on tzdata (*)
   1: selecting tzlocal (4.2)
   1: derived: tzdata
   1: derived: pytz-deprecation-shim
[urllib3.connectionpool] https://pypi.org:443 "GET /simple/tzdata/ HTTP/1.1" 304 0
Source (PyPI): 16 packages found for tzdata *
[urllib3.connectionpool] https://pypi.org:443 "GET /simple/pytz-deprecation-shim/ HTTP/1.1" 304 0
Source (PyPI): 2 packages found for pytz-deprecation-shim *
   1: fact: pytz-deprecation-shim (0.1.0.post0) depends on tzdata (*)
   1: selecting pytz-deprecation-shim (0.1.0.post0)
   1: selecting pygments (2.13.0)
   1: Version solving took 1.381 seconds.
   1: Tried 1 solutions.

  Stack trace:

  22  ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/cleo/application.py:329 in run
       327│
       328│             try:
     → 329│                 exit_code = self._run(io)
       330│             except Exception as e:
       331│                 if not self._catch_exceptions:

  21  ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/poetry/console/application.py:185 in _run
       183│         self._load_plugins(io)
       184│
     → 185│         exit_code: int = super()._run(io)
       186│         return exit_code
       187│

  20  ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/cleo/application.py:423 in _run
       421│             io.input.set_stream(stream)
       422│
     → 423│         exit_code = self._run_command(command, io)
       424│         self._running_command = None
       425│

  19  ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/cleo/application.py:465 in _run_command
       463│
       464│         if error is not None:
     → 465│             raise error
       466│
       467│         return event.exit_code

  18  ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/cleo/application.py:449 in _run_command
       447│
       448│             if event.command_should_run():
     → 449│                 exit_code = command.run(io)
       450│             else:
       451│                 exit_code = ConsoleCommandEvent.RETURN_CODE_DISABLED

  17  ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/cleo/commands/base_command.py:119 in run
       117│         io.input.validate()
       118│
     → 119│         status_code = self.execute(io)
       120│
       121│         if status_code is None:

  16  ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/cleo/commands/command.py:83 in execute
        81│
        82│         try:
     →  83│             return self.handle()
        84│         except KeyboardInterrupt:
        85│             return 1

  15  ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/poetry/console/commands/install.py:146 in handle
       144│         self.installer.verbose(self.io.is_verbose())
       145│
     → 146│         return_code = self.installer.run()
       147│
       148│         if return_code != 0:

  14  ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/poetry/installation/installer.py:115 in run
       113│             self._execute_operations = False
       114│
     → 115│         return self._do_install()
       116│
       117│     def dry_run(self, dry_run: bool = True) -> Installer:

  13  ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/poetry/installation/installer.py:248 in _do_install
       246│                 source_root=self._env.path.joinpath("src")
       247│             ):
     → 248│                 ops = solver.solve(use_latest=self._whitelist).calculate_operations()
       249│         else:
       250│             self._io.write_line("Installing dependencies from lock file")

  12  ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/poetry/puzzle/solver.py:73 in solve
        71│         with self._provider.progress():
        72│             start = time.time()
     →  73│             packages, depths = self._solve(use_latest=use_latest)
        74│             end = time.time()
        75│

  11  ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/poetry/puzzle/solver.py:151 in _solve
       149│
       150│         try:
     → 151│             result = resolve_version(
       152│                 self._package, self._provider, locked=locked, use_latest=use_latest
       153│             )

  10  ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/poetry/mixology/__init__.py:24 in resolve_version
        22│     solver = VersionSolver(root, provider, locked=locked, use_latest=use_latest)
        23│
     →  24│     return solver.solve()
        25│

   9  ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/poetry/mixology/version_solver.py:127 in solve
       125│             while next is not None:
       126│                 self._propagate(next)
     → 127│                 next = self._choose_package_version()
       128│
       129│             return self._result()

   8  ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/poetry/mixology/version_solver.py:446 in _choose_package_version
       444│             package = locked
       445│
     → 446│         package = self._provider.complete_package(package)
       447│
       448│         conflict = False

   7  ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/poetry/puzzle/provider.py:529 in complete_package
       527│                 dependency_package = DependencyPackage(
       528│                     dependency,
     → 529│                     self._pool.package(
       530│                         package.pretty_name,
       531│                         package.version,

   6  ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/poetry/repositories/pool.py:156 in package
       154│         for repo in self._repositories:
       155│             try:
     → 156│                 package = repo.package(name, version, extras=extras)
       157│             except PackageNotFound:
       158│                 continue

   5  ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/poetry/repositories/cached.py:86 in package
        84│         extras: list[str] | None = None,
        85│     ) -> Package:
     →  86│         return self.get_release_info(canonicalize_name(name), version).to_package(
        87│             name=name, extras=extras
        88│         )

   4  ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/poetry/repositories/cached.py:63 in get_release_info
        61│             return PackageInfo.load(self._get_release_info(name, version))
        62│
     →  63│         cached = self._cache.remember_forever(
        64│             f"{name}:{version}", lambda: self._get_release_info(name, version)
        65│         )

   3  ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/cachy/repository.py:170 in remember_forever
       168│         # otherwise we will execute the given callback and cache the result
       169│         # of that execution forever.
     → 170│         val = self.get(key)
       171│         if val is not None:
       172│             return val

   2  ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/cachy/repository.py:47 in get
        45│         :rtype: mixed
        46│         """
     →  47│         val = self._store.get(key)
        48│
        49│         if val is None:

   1  ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/cachy/stores/file_store.py:43 in get
        41│         :return: The cache value
        42│         """
     →  43│         return self._get_payload(key).get('data')
        44│
        45│     def _get_payload(self, key):

  ValueError

  invalid literal for int() with base 10: b''

  at ~/.local/share/pypoetry/venv/lib/python3.10/site-packages/cachy/stores/file_store.py:65 in _get_payload
       61│
       62│         with open(path, 'rb') as fh:
       63│             contents = fh.read()
       64│
    →  65│         expire = int(contents[:10])
       66│
       67│         # If the current time is greater than expiration timestamps we will delete
       68│         # the file and return null. This helps clean up the old files and keeps
       69│         # this directory much cleaner for us as old files aren't hanging out.
neersighted commented 2 years ago

Somehow there is invalid data in your cache. Clear it with poetry cache clear --all ..

pcroland commented 2 years ago

Seems to work, thanks.

poetry install
Updating dependencies
Resolving dependencies... (15.8s)

Writing lock file

Package operations: 18 installs, 1 update, 0 removals

  • Installing tzdata (2022.5)
  • Installing pytz-deprecation-shim (0.1.0.post0)
  • Installing pytz (2022.5)
  • Updating setuptools (64.0.1 -> 65.5.0)
  • Installing six (1.16.0)
  • Installing tzlocal (4.2)
  • Installing apscheduler (3.6.3)
  • Installing cachetools (4.2.2)
  • Installing certifi (2022.9.24)
  • Installing charset-normalizer (2.1.1)
  • Installing commonmark (0.9.1)
  • Installing idna (3.4)
  • Installing pygments (2.13.0)
  • Installing tornado (6.1)
  • Installing urllib3 (1.26.12)
  • Installing python-telegram-bot (13.14)
  • Installing requests (2.28.1)
  • Installing rich (12.6.0)
  • Installing toml (0.10.2)

/mnt/x/code/hasto-bot/hasto_bot does not contain any element

I removed packages = [{include = "hasto_bot"}] from my pyproject and the error in the last line also disappeared.

github-actions[bot] commented 8 months ago

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.