Poetry: Resolving dependencies... Cache entry deserialization failed, entry ignored

Created on 4 Feb 2019  路  7Comments  路  Source: python-poetry/poetry

  • [x] I am on the latest Poetry version.
  • [x] I have searched the issues of this repo and believe that this is not a duplicate.
  • [x] If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • OS version and name: MacOS Mojave
  • Poetry version: 1.0.0a2

Issue


Every time I use add, install, update, lock it takes a-lot of time and it also have problem with the cache.

stale

Most helpful comment

I'm seeing the same thing, but I'm on Windows10 (Poetry 0.12.11).
I should also note that I am pulling a package from our company pypi.
Apart from the error message it actually seems to be working, as poetry is correctly resolving the latest version of the package from our private pypi repo.

pyproject.toml

[tool.poetry]
name = "ct-plugins_template"
version = "0.1.0"
description = ""
authors = ""

[tool.poetry.scripts]
spam  = "eggsample_spam"

[[tool.poetry.source]]
name = "companypypi"
url = "https://company-pypi/simple/"

[tool.poetry.dependencies]
my_package = "*"
python = "^3.6"

[tool.poetry.dev-dependencies]
pytest = "^3.9"
black = {version = "^18.9b0",allows-prereleases = true}

[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"

Console output

>poetry update
Updating dependencies
Resolving dependencies...
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored


Package operations: 0 installs, 3 updates, 0 removals

Writing lock file

 -> 1.12.95) botocore (1.12.94
 -> 1.9.95)g boto3 (1.9.94
 -> 19.2.5)g my_package (19.2.4

All 7 comments

Could you provide more details? What do you mean that is "has problems with the cache"? Please show us any error messages that you see.

I'm seeing the same thing, but I'm on Windows10 (Poetry 0.12.11).
I should also note that I am pulling a package from our company pypi.
Apart from the error message it actually seems to be working, as poetry is correctly resolving the latest version of the package from our private pypi repo.

pyproject.toml

[tool.poetry]
name = "ct-plugins_template"
version = "0.1.0"
description = ""
authors = ""

[tool.poetry.scripts]
spam  = "eggsample_spam"

[[tool.poetry.source]]
name = "companypypi"
url = "https://company-pypi/simple/"

[tool.poetry.dependencies]
my_package = "*"
python = "^3.6"

[tool.poetry.dev-dependencies]
pytest = "^3.9"
black = {version = "^18.9b0",allows-prereleases = true}

[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"

Console output

>poetry update
Updating dependencies
Resolving dependencies...
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored


Package operations: 0 installs, 3 updates, 0 removals

Writing lock file

 -> 1.12.95) botocore (1.12.94
 -> 1.9.95)g boto3 (1.9.94
 -> 19.2.5)g my_package (19.2.4

I'm also seeing this but it's very difficult to narrow down a repro to provide. I'm also using a company-internal pypi instance which we recently switched from HTTP to HTTPS -- perhaps there's a pattern there?

Same issue. I am using a mirror of pypi (https://pypi.tuna.tsinghua.edu.cn).

I'm also getting the same issue. I tried clearing the poetry cache and that did not help.

$ poetry cache:clear --all pypi
Delete 183 entries? (yes/no) [no] yes

$ poetry cache:clear --all pypi
Delete 0 entries? (yes/no) [no] yes

cl-niels-6:modeling-service3 niels$ poetry add pymongo
Using version ^3.7 for pymongo

Updating dependencies
Resolving dependencies... (40.1s)Cache entry deserialization failed, entry ignored
Resolving dependencies... (52.4s)Cache entry deserialization failed, entry ignored
Resolving dependencies... (68.4s)Cache entry deserialization failed, entry ignored
Resolving dependencies... (73.8s)


Package operations: 1 install, 0 updates, 0 removals

Writing lock file

  - Installing pymongo (3.7.2)

$ poetry --version
Poetry 0.12.11

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Closing this issue automatically because it has not had any activity since it has been marked as stale. If you think it is still relevant and should be addressed, feel free to open a new one.

Was this page helpful?
0 / 5 - 0 ratings