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

Fail install with Poetry install command #66

Open
fabfabBesnard opened this issue Mar 6, 2022 · 2 comments
Open

Fail install with Poetry install command #66

fabfabBesnard opened this issue Mar 6, 2022 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@fabfabBesnard
Copy link
Collaborator

bug report.
System: Ubuntu 20.04.4 LTS
Terminal: virtual environment with miniconda3
-> python 3.8.10
-> poetry 1.1.13
-> pip-22.0.3

$: poetry install #command used

Installing dependencies from lock file

Package operations: 0 installs, 1 update, 0 removals

  • Updating numpy (1.18.3 -> 1.21.5)

  ValueError

  plantdb is not a package.

  at ~/softwares/miniconda3/envs/romi/lib/python3.7/site-packages/poetry/core/masonry/utils/package_include.py:80 in check_elements
      76│                 self._package = root.name
      77│                 self._elements = sorted(list(root.glob("**/*")))  # type: List[Path]
      78│ 
      79│                 if not self.is_stub_only() and not self.has_modules():
    → 80│                     raise ValueError("{} is not a package.".format(root.name))
      81│ 
      82│                 self._is_package = True
      83│             else:
      84│                 self._package = root.stem
@fabfabBesnard fabfabBesnard added the bug Something isn't working label Mar 6, 2022
@jlegrand62
Copy link
Member

try in a new conda env:

@fabfabBesnard
Copy link
Collaborator Author

fabfabBesnard commented Jun 13, 2022

same error happens again.

  • deleting and resetting a new conda environment from start is not working either.
  • Trying from start with anaconda3 or miniconda reprodruces the same fail.
  • trying to build a docker image locally with the procedure of the readme fails with the same error:
Building plantdb (0.1.0)

  ValueError

  plantdb is not a package.

  at ~/.local/lib/python3.8/site-packages/poetry/core/masonry/utils/package_include.py:80 in check_elements
      76│                 self._package = root.name
      77│                 self._elements = sorted(list(root.glob("**/*")))  # type: List[Path]
      78│ 
      79│                 if not self.is_stub_only() and not self.has_modules():
    → 80│                     raise ValueError("{} is not a package.".format(root.name))
      81│ 
      82│                 self._is_package = True
      83│             else:
      84│                 self._package = root.stem
The command '/bin/bash -c source /venv/bin/activate &&     poetry install -n --no-dev --no-root &&     poetry build &&     /venv/bin/pip install dist/*.whl' returned a non-zero code: 1
docker build failed with 1 code

Conclusion: There is something which either I do not understand in the install procedure or which is not really reproducible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants