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

AttributeError: can't set attribute on v1.2.0a1 during lock or install #4351

Closed
2 of 3 tasks
covuworie opened this issue Aug 3, 2021 · 6 comments
Closed
2 of 3 tasks
Labels
area/plugin-api Related to plugins/plugin API kind/bug Something isn't working as expected

Comments

@covuworie
Copy link

  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • OS version and name: Debian Linux (slim-buster docker image, python 3.8.2)
  • Poetry version: 1.2.0a1

Issue

I am seeing the following issue when a new project is created with the following minimal pyproject.toml file:

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

[tool.poetry]
name = "example"
version = "0.1.0-alpha.0"
description = "An example"
authors = ["First Last <[email protected]>"]

Running poetry install or poetry lock gives the following error:

Skipping virtualenv creation, as specified in config file.
Updating dependencies
Resolving dependencies... (0.0s)

  AttributeError

  can't set attribute

  at /opt/poetry/venv/lib/python3.8/site-packages/poetry/packages/dependency_package.py:38 in __setattr__
       34│     def __setattr__(self, key: str, value: Any) -> None:
       35│         if key in {"_dependency", "_package"}:
       36│             return super().__setattr__(key, value)
       37│ 
    →  38│         setattr(self._package, key, value)
       39│ 
       40│     def __str__(self) -> str:
       41│         return str(self._package)

Note there are no dependencies in the pyproject.toml file. In addition to standard install of python, the only other package installed is poetry-dotenv-plugin and it's dependencies. Here is a pip list if needed:

appdirs              1.4.4
CacheControl         0.12.6
cachy                0.3.0
certifi              2021.5.30
cffi                 1.14.6
charset-normalizer   2.0.4
cleo                 1.0.0a4
crashtest            0.3.1
cryptography         3.4.7
distlib              0.3.2
entrypoints          0.3
filelock             3.0.12
html5lib             1.1
idna                 3.2
importlib-metadata   4.6.3
jeepney              0.7.1
keyring              23.0.1
lockfile             0.12.2
msgpack              1.0.2
packaging            20.9
pexpect              4.8.0
pip                  21.1.3
pkginfo              1.7.1
poetry               1.2.0a1
poetry-core          1.1.0a6
poetry-dotenv-plugin 0.1.0a2
ptyprocess           0.7.0
pycparser            2.20
pylev                1.4.0
pyparsing            2.4.7
python-dotenv        0.19.0
requests             2.26.0
requests-toolbelt    0.9.1
SecretStorage        3.3.1
setuptools           41.2.0
shellingham          1.4.0
six                  1.16.0
tomlkit              0.7.2
urllib3              1.26.6
virtualenv           20.4.4
webencodings         0.5.1
zipp                 3.5.0

This issue may be related to issue 4085.

@covuworie covuworie added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Aug 3, 2021
@paulmelnikow
Copy link

I've also been seeing this issue on all my repos with 1.2.0a1. It was working fine before (with 1.2.0a1) but this week it suddenly broke in all the repos. I'm installing poetry using pip and suspect it's an issue with one of the dependencies.

I will try to comb through my CI history and track down some working and non-working sets of dependencies to see if I can narrow it down. Downgrading to 1.1.7 made the problem go away. I haven't tried 1.2.0a2 which I see was released yesterday.

@paulmelnikow
Copy link

This is what my CI history looks like. It started failing on 7/30.

In both cases this is what's being run:

pip install poetry==1.2.0a1
poetry --version
poetry install --no-ansi --no-interaction
poetry show

This is the last passing job on 7/29: https://app.circleci.com/pipelines/github/lace/vg/933/workflows/ef06715a-b4a9-46ba-8837-0753731d66eb/jobs/2834

Defaulting to user installation because normal site-packages is not writeable
Collecting poetry==1.2.0a1
  Downloading poetry-1.2.0a1-py3-none-any.whl (187 kB)
     |████████████████████████████████| 187 kB 23.2 MB/s eta 0:00:01
Requirement already satisfied: requests<3.0,>=2.18 in /usr/local/lib/python3.9/site-packages (from poetry==1.2.0a1) (2.26.0)
Requirement already satisfied: pkginfo<2.0,>=1.5 in /usr/local/lib/python3.9/site-packages (from poetry==1.2.0a1) (1.7.1)
Collecting cleo<2.0.0,>=1.0.0a1
  Downloading cleo-1.0.0a3-py3-none-any.whl (77 kB)
     |████████████████████████████████| 77 kB 27.9 MB/s eta 0:00:01
Requirement already satisfied: tomlkit<1.0.0,>=0.7.0 in /usr/local/lib/python3.9/site-packages (from poetry==1.2.0a1) (0.7.2)
Collecting entrypoints<0.4,>=0.3
  Downloading entrypoints-0.3-py2.py3-none-any.whl (11 kB)
Requirement already satisfied: cachecontrol[filecache]<0.13.0,>=0.12.4 in /usr/local/lib/python3.9/site-packages (from poetry==1.2.0a1) (0.12.6)
Requirement already satisfied: crashtest<0.4.0,>=0.3.0 in /usr/local/lib/python3.9/site-packages (from poetry==1.2.0a1) (0.3.1)
Requirement already satisfied: packaging<21.0,>=20.4 in /usr/local/lib/python3.9/site-packages (from poetry==1.2.0a1) (20.9)
Collecting poetry-core<1.2.0,>=1.1.0a5
  Downloading poetry_core-1.1.0a5-py3-none-any.whl (420 kB)
     |████████████████████████████████| 420 kB 65.9 MB/s eta 0:00:01
Collecting virtualenv<20.4.5,>=20.4.3
  Downloading virtualenv-20.4.4-py2.py3-none-any.whl (7.2 MB)
     |████████████████████████████████| 7.2 MB 61.1 MB/s eta 0:00:0101
Requirement already satisfied: requests-toolbelt<0.10.0,>=0.9.1 in /usr/local/lib/python3.9/site-packages (from poetry==1.2.0a1) (0.9.1)
Requirement already satisfied: html5lib<2.0,>=1.0 in /usr/local/lib/python3.9/site-packages (from poetry==1.2.0a1) (1.1)
Requirement already satisfied: pexpect<5.0.0,>=4.7.0 in /usr/local/lib/python3.9/site-packages (from poetry==1.2.0a1) (4.8.0)
Requirement already satisfied: shellingham<2.0,>=1.1 in /usr/local/lib/python3.9/site-packages (from poetry==1.2.0a1) (1.4.0)
Requirement already satisfied: cachy<0.4.0,>=0.3.0 in /usr/local/lib/python3.9/site-packages (from poetry==1.2.0a1) (0.3.0)
Requirement already satisfied: keyring>=21.2.0 in /usr/local/lib/python3.9/site-packages (from poetry==1.2.0a1) (21.8.0)
Requirement already satisfied: msgpack>=0.5.2 in /usr/local/lib/python3.9/site-packages (from cachecontrol[filecache]<0.13.0,>=0.12.4->poetry==1.2.0a1) (1.0.2)
Requirement already satisfied: lockfile>=0.9 in /usr/local/lib/python3.9/site-packages (from cachecontrol[filecache]<0.13.0,>=0.12.4->poetry==1.2.0a1) (0.12.2)
Requirement already satisfied: pylev<2.0.0,>=1.3.0 in /usr/local/lib/python3.9/site-packages (from cleo<2.0.0,>=1.0.0a1->poetry==1.2.0a1) (1.4.0)
Requirement already satisfied: six>=1.9 in /usr/local/lib/python3.9/site-packages (from html5lib<2.0,>=1.0->poetry==1.2.0a1) (1.16.0)
Requirement already satisfied: webencodings in /usr/local/lib/python3.9/site-packages (from html5lib<2.0,>=1.0->poetry==1.2.0a1) (0.5.1)
Requirement already satisfied: SecretStorage>=3.2 in /usr/local/lib/python3.9/site-packages (from keyring>=21.2.0->poetry==1.2.0a1) (3.3.1)
Requirement already satisfied: jeepney>=0.4.2 in /usr/local/lib/python3.9/site-packages (from keyring>=21.2.0->poetry==1.2.0a1) (0.7.1)
Requirement already satisfied: pyparsing>=2.0.2 in /usr/local/lib/python3.9/site-packages (from packaging<21.0,>=20.4->poetry==1.2.0a1) (2.4.7)
Requirement already satisfied: ptyprocess>=0.5 in /usr/local/lib/python3.9/site-packages (from pexpect<5.0.0,>=4.7.0->poetry==1.2.0a1) (0.7.0)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.9/site-packages (from requests<3.0,>=2.18->poetry==1.2.0a1) (1.26.6)
Requirement already satisfied: charset-normalizer~=2.0.0 in /usr/local/lib/python3.9/site-packages (from requests<3.0,>=2.18->poetry==1.2.0a1) (2.0.3)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.9/site-packages (from requests<3.0,>=2.18->poetry==1.2.0a1) (3.2)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.9/site-packages (from requests<3.0,>=2.18->poetry==1.2.0a1) (2021.5.30)
Requirement already satisfied: cryptography>=2.0 in /usr/local/lib/python3.9/site-packages (from SecretStorage>=3.2->keyring>=21.2.0->poetry==1.2.0a1) (3.4.7)
Requirement already satisfied: cffi>=1.12 in /usr/local/lib/python3.9/site-packages (from cryptography>=2.0->SecretStorage>=3.2->keyring>=21.2.0->poetry==1.2.0a1) (1.14.6)
Requirement already satisfied: pycparser in /usr/local/lib/python3.9/site-packages (from cffi>=1.12->cryptography>=2.0->SecretStorage>=3.2->keyring>=21.2.0->poetry==1.2.0a1) (2.20)
Requirement already satisfied: filelock<4,>=3.0.0 in /usr/local/lib/python3.9/site-packages (from virtualenv<20.4.5,>=20.4.3->poetry==1.2.0a1) (3.0.12)
Requirement already satisfied: distlib<1,>=0.3.1 in /usr/local/lib/python3.9/site-packages (from virtualenv<20.4.5,>=20.4.3->poetry==1.2.0a1) (0.3.2)
Collecting appdirs<2,>=1.4.3
  Downloading appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Installing collected packages: appdirs, virtualenv, poetry-core, entrypoints, cleo, poetry
Successfully installed appdirs-1.4.4 cleo-1.0.0a3 entrypoints-0.3 poetry-1.2.0a1 poetry-core-1.1.0a5 virtualenv-20.4.4
Poetry (version 1.2.0a1)
Creating virtualenv vg in /home/circleci/project/.venv
Installing dependencies from lock file

Package operations: 56 installs, 0 updates, 0 removals

  • Installing attrs (21.2.0)
  • Installing certifi (2021.5.30)
  • Installing idna (3.2)
  • Installing markupsafe (2.0.1)
  • Installing pyparsing (2.4.7)
  • Installing pytz (2021.1)
  • Installing charset-normalizer (2.0.3)
  • Installing urllib3 (1.26.6)
  • Installing alabaster (0.7.12)
  • Installing babel (2.9.1)
  • Installing humanfriendly (9.2)
  • Installing iniconfig (1.1.1)
  • Installing imagesize (1.2.0)
  • Installing packaging (21.0)
  • Installing markdown-it-py (1.1.0)
  • Installing pluggy (0.13.1)
  • Installing pygments (2.9.0)
  • Installing py (1.10.0)
  • Installing jinja2 (3.0.1)
  • Installing snowballstemmer (2.1.0)
  • Installing sphinxcontrib-applehelp (1.0.2)
  • Installing docutils (0.17.1)
  • Installing requests (2.26.0)
  • Installing six (1.16.0)
  • Installing sphinxcontrib-devhelp (1.0.2)
  • Installing sphinxcontrib-jsmath (1.0.1)
  • Installing sphinxcontrib-serializinghtml (1.1.5)
  • Installing sphinxcontrib-qthelp (1.0.3)
  • Installing verboselogs (1.7)
  • Installing sphinxcontrib-htmlhelp (2.0.0)
  • Installing toml (0.10.2)
Connection pool is full, discarding connection: pypi.org
Connection pool is full, discarding connection: pypi.org
Connection pool is full, discarding connection: pypi.org
Connection pool is full, discarding connection: pypi.org
Connection pool is full, discarding connection: pypi.org
Connection pool is full, discarding connection: pypi.org
Connection pool is full, discarding connection: pypi.org
Connection pool is full, discarding connection: pypi.org
Connection pool is full, discarding connection: pypi.org
Connection pool is full, discarding connection: files.pythonhosted.org
Connection pool is full, discarding connection: files.pythonhosted.org
  • Installing appdirs (1.4.4)
  • Installing click (8.0.1)
  • Installing coloredlogs (15.0.1)
  • Installing coverage (5.5)
  • Installing fasteners (0.16.3)
  • Installing mccabe (0.6.1)
  • Installing pathspec (0.8.1)
  • Installing property-manager (3.0)
  • Installing mdit-py-plugins (0.2.8)
  • Installing pbr (5.6.0)
  • Installing pyyaml (5.4.1)
  • Installing sphinx (4.1.1)
  • Installing mypy-extensions (0.4.3)
  • Installing regex (2021.7.6)
  • Installing pycodestyle (2.7.0)
  • Installing pyflakes (2.3.1)
  • Installing pytest (6.2.4)
Connection pool is full, discarding connection: pypi.org
Connection pool is full, discarding connection: pypi.org
Connection pool is full, discarding connection: pypi.org
Connection pool is full, discarding connection: pypi.org
Connection pool is full, discarding connection: pypi.org
  • Installing black (21.6b0)
  • Installing executor (23.2)
  • Installing flake8 (3.9.2)
  • Installing flake8-import-order (0.18.1)
  • Installing myst-parser (0.15.1)
  • Installing numpy (1.21.0)
  • Installing pytest-cov (2.12.1)
  • Installing sphinxcontrib-apidoc (0.3.0)

Installing the current project: vg (2.0.0)
alabaster                     0.7.12    A configurable sidebar-enabled Sphi...
appdirs                       1.4.4     A small Python module for determini...
attrs                         21.2.0    Classes Without Boilerplate
babel                         2.9.1     Internationalization utilities
black                         21.6b0    The uncompromising code formatter.
certifi                       2021.5.30 Python package for providing Mozill...
charset-normalizer            2.0.3     The Real First Universal Charset De...
click                         8.0.1     Composable command line interface t...
coloredlogs                   15.0.1    Colored terminal output for Python'...
coverage                      5.5       Code coverage measurement for Python
docutils                      0.17.1    Docutils -- Python Documentation Ut...
executor                      23.2      Programmer friendly subprocess wrapper
fasteners                     0.16.3    A python package that provides usef...
flake8                        3.9.2     the modular source code checker: pe...
flake8-import-order           0.18.1    Flake8 and pylama plugin that check...
humanfriendly                 9.2       Human friendly output for text inte...
idna                          3.2       Internationalized Domain Names in A...
imagesize                     1.2.0     Getting image size from png/jpeg/jp...
iniconfig                     1.1.1     iniconfig: brain-dead simple config...
jinja2                        3.0.1     A very fast and expressive template...
markdown-it-py                1.1.0     Python port of markdown-it. Markdow...
markupsafe                    2.0.1     Safely add untrusted strings to HTM...
mccabe                        0.6.1     McCabe checker, plugin for flake8
mdit-py-plugins               0.2.8     Collection of plugins for markdown-...
mypy-extensions               0.4.3     Experimental type system extensions...
myst-parser                   0.15.1    An extended commonmark compliant pa...
numpy                         1.21.0    NumPy is the fundamental package fo...
packaging                     21.0      Core utilities for Python packages
pathspec                      0.8.1     Utility library for gitignore style...
pbr                           5.6.0     Python Build Reasonableness
pluggy                        0.13.1    plugin and hook calling mechanisms ...
property-manager              3.0       Useful property variants for Python...
py                            1.10.0    library with cross-python path, ini...
pycodestyle                   2.7.0     Python style guide checker
pyflakes                      2.3.1     passive checker of Python programs
pygments                      2.9.0     Pygments is a syntax highlighting p...
pyparsing                     2.4.7     Python parsing module
pytest                        6.2.4     pytest: simple powerful testing wit...
pytest-cov                    2.12.1    Pytest plugin for measuring coverage.
pytz                          2021.1    World timezone definitions, modern ...
pyyaml                        5.4.1     YAML parser and emitter for Python
regex                         2021.7.6  Alternative regular expression modu...
requests                      2.26.0    Python HTTP for Humans.
six                           1.16.0    Python 2 and 3 compatibility utilities
snowballstemmer               2.1.0     This package provides 29 stemmers f...
sphinx                        4.1.1     Python documentation generator
sphinxcontrib-apidoc          0.3.0     A Sphinx extension for running 'sph...
sphinxcontrib-applehelp       1.0.2     sphinxcontrib-applehelp is a sphinx...
sphinxcontrib-devhelp         1.0.2     sphinxcontrib-devhelp is a sphinx e...
sphinxcontrib-htmlhelp        2.0.0     sphinxcontrib-htmlhelp is a sphinx ...
sphinxcontrib-jsmath          1.0.1     A sphinx extension which renders di...
sphinxcontrib-qthelp          1.0.3     sphinxcontrib-qthelp is a sphinx ex...
sphinxcontrib-serializinghtml 1.1.5     sphinxcontrib-serializinghtml is a ...
toml                          0.10.2    Python Library for Tom's Obvious, M...
urllib3                       1.26.6    HTTP library with thread-safe conne...
verboselogs                   1.7       Verbose logging level for Python's ...

And the first failing job on 7/30: https://app.circleci.com/pipelines/github/lace/vg/934/workflows/914051ad-23e2-43ae-af6b-d366bc49b4e1/jobs/2835

Defaulting to user installation because normal site-packages is not writeable
Collecting poetry==1.2.0a1
  Downloading poetry-1.2.0a1-py3-none-any.whl (187 kB)
     |████████████████████████████████| 187 kB 21.5 MB/s eta 0:00:01
Requirement already satisfied: cachy<0.4.0,>=0.3.0 in /usr/local/lib/python3.9/site-packages (from poetry==1.2.0a1) (0.3.0)
Requirement already satisfied: pkginfo<2.0,>=1.5 in /usr/local/lib/python3.9/site-packages (from poetry==1.2.0a1) (1.7.1)
Collecting entrypoints<0.4,>=0.3
  Downloading entrypoints-0.3-py2.py3-none-any.whl (11 kB)
Requirement already satisfied: requests-toolbelt<0.10.0,>=0.9.1 in /usr/local/lib/python3.9/site-packages (from poetry==1.2.0a1) (0.9.1)
Requirement already satisfied: tomlkit<1.0.0,>=0.7.0 in /usr/local/lib/python3.9/site-packages (from poetry==1.2.0a1) (0.7.2)
Collecting cleo<2.0.0,>=1.0.0a1
  Downloading cleo-1.0.0a4-py3-none-any.whl (77 kB)
     |████████████████████████████████| 77 kB 30.7 MB/s eta 0:00:01
Requirement already satisfied: pexpect<5.0.0,>=4.7.0 in /usr/local/lib/python3.9/site-packages (from poetry==1.2.0a1) (4.8.0)
Collecting poetry-core<1.2.0,>=1.1.0a5
  Downloading poetry_core-1.1.0a6-py3-none-any.whl (421 kB)
     |████████████████████████████████| 421 kB 71.0 MB/s  eta 0:00:01
Requirement already satisfied: keyring>=21.2.0 in /usr/local/lib/python3.9/site-packages (from poetry==1.2.0a1) (21.8.0)
Requirement already satisfied: shellingham<2.0,>=1.1 in /usr/local/lib/python3.9/site-packages (from poetry==1.2.0a1) (1.4.0)
Collecting virtualenv<20.4.5,>=20.4.3
  Downloading virtualenv-20.4.4-py2.py3-none-any.whl (7.2 MB)
     |████████████████████████████████| 7.2 MB 70.7 MB/s eta 0:00:0101
Requirement already satisfied: packaging<21.0,>=20.4 in /usr/local/lib/python3.9/site-packages (from poetry==1.2.0a1) (20.9)
Requirement already satisfied: requests<3.0,>=2.18 in /usr/local/lib/python3.9/site-packages (from poetry==1.2.0a1) (2.26.0)
Requirement already satisfied: cachecontrol[filecache]<0.13.0,>=0.12.4 in /usr/local/lib/python3.9/site-packages (from poetry==1.2.0a1) (0.12.6)
Requirement already satisfied: crashtest<0.4.0,>=0.3.0 in /usr/local/lib/python3.9/site-packages (from poetry==1.2.0a1) (0.3.1)
Requirement already satisfied: html5lib<2.0,>=1.0 in /usr/local/lib/python3.9/site-packages (from poetry==1.2.0a1) (1.1)
Requirement already satisfied: msgpack>=0.5.2 in /usr/local/lib/python3.9/site-packages (from cachecontrol[filecache]<0.13.0,>=0.12.4->poetry==1.2.0a1) (1.0.2)
Requirement already satisfied: lockfile>=0.9 in /usr/local/lib/python3.9/site-packages (from cachecontrol[filecache]<0.13.0,>=0.12.4->poetry==1.2.0a1) (0.12.2)
Requirement already satisfied: pylev<2.0.0,>=1.3.0 in /usr/local/lib/python3.9/site-packages (from cleo<2.0.0,>=1.0.0a1->poetry==1.2.0a1) (1.4.0)
Requirement already satisfied: six>=1.9 in /usr/local/lib/python3.9/site-packages (from html5lib<2.0,>=1.0->poetry==1.2.0a1) (1.16.0)
Requirement already satisfied: webencodings in /usr/local/lib/python3.9/site-packages (from html5lib<2.0,>=1.0->poetry==1.2.0a1) (0.5.1)
Requirement already satisfied: SecretStorage>=3.2 in /usr/local/lib/python3.9/site-packages (from keyring>=21.2.0->poetry==1.2.0a1) (3.3.1)
Requirement already satisfied: jeepney>=0.4.2 in /usr/local/lib/python3.9/site-packages (from keyring>=21.2.0->poetry==1.2.0a1) (0.7.1)
Requirement already satisfied: pyparsing>=2.0.2 in /usr/local/lib/python3.9/site-packages (from packaging<21.0,>=20.4->poetry==1.2.0a1) (2.4.7)
Requirement already satisfied: ptyprocess>=0.5 in /usr/local/lib/python3.9/site-packages (from pexpect<5.0.0,>=4.7.0->poetry==1.2.0a1) (0.7.0)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.9/site-packages (from requests<3.0,>=2.18->poetry==1.2.0a1) (2021.5.30)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/local/lib/python3.9/site-packages (from requests<3.0,>=2.18->poetry==1.2.0a1) (1.26.6)
Requirement already satisfied: charset-normalizer~=2.0.0 in /usr/local/lib/python3.9/site-packages (from requests<3.0,>=2.18->poetry==1.2.0a1) (2.0.3)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.9/site-packages (from requests<3.0,>=2.18->poetry==1.2.0a1) (3.2)
Requirement already satisfied: cryptography>=2.0 in /usr/local/lib/python3.9/site-packages (from SecretStorage>=3.2->keyring>=21.2.0->poetry==1.2.0a1) (3.4.7)
Requirement already satisfied: cffi>=1.12 in /usr/local/lib/python3.9/site-packages (from cryptography>=2.0->SecretStorage>=3.2->keyring>=21.2.0->poetry==1.2.0a1) (1.14.6)
Requirement already satisfied: pycparser in /usr/local/lib/python3.9/site-packages (from cffi>=1.12->cryptography>=2.0->SecretStorage>=3.2->keyring>=21.2.0->poetry==1.2.0a1) (2.20)
Collecting appdirs<2,>=1.4.3
  Downloading appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Requirement already satisfied: distlib<1,>=0.3.1 in /usr/local/lib/python3.9/site-packages (from virtualenv<20.4.5,>=20.4.3->poetry==1.2.0a1) (0.3.2)
Requirement already satisfied: filelock<4,>=3.0.0 in /usr/local/lib/python3.9/site-packages (from virtualenv<20.4.5,>=20.4.3->poetry==1.2.0a1) (3.0.12)
Installing collected packages: appdirs, virtualenv, poetry-core, entrypoints, cleo, poetry
Successfully installed appdirs-1.4.4 cleo-1.0.0a4 entrypoints-0.3 poetry-1.2.0a1 poetry-core-1.1.0a6 virtualenv-20.4.4
Poetry (version 1.2.0a1)
Creating virtualenv vg in /home/circleci/project/.venv
Installing dependencies from lock file

  AttributeError

  can't set attribute

  at ~/.local/lib/python3.9/site-packages/poetry/packages/dependency_package.py:38 in __setattr__
       34│     def __setattr__(self, key: str, value: Any) -> None:
       35│         if key in {"_dependency", "_package"}:
       36│             return super().__setattr__(key, value)
       37│ 
    →  38│         setattr(self._package, key, value)
       39│ 
       40│     def __str__(self) -> str:
       41│         return str(self._package)
       42│

Perhaps this is the issue:

Last passing build:

Collecting poetry-core<1.2.0,>=1.1.0a5
  Downloading poetry_core-1.1.0a5-py3-none-any.whl (420 kB)

First failing build:

Collecting poetry-core<1.2.0,>=1.1.0a5
  Downloading poetry_core-1.1.0a6-py3-none-any.whl (421 kB)

@KCC13
Copy link

KCC13 commented Aug 4, 2021

@covuworie @paulmelnikow Got the same problem on v1.2.0a1, tried v1.2.0a2 and it fixed the problem.

@covuworie
Copy link
Author

Thanks @KCC13 and @paulmelnikow. I tested today with v1.2.0a2 and it fixed the problem. The maintainers can close this issue when they are ready.

@dimbleby
Copy link
Contributor

indeed this code doesn't exist any more, should be safe to close

@neersighted neersighted added area/plugin-api Related to plugins/plugin API and removed status/triage This issue needs to be triaged labels Oct 24, 2022
Copy link

github-actions bot commented Mar 1, 2024

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 Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/plugin-api Related to plugins/plugin API kind/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

5 participants