romi / plantdb

Database to host and serve images and processed data.
https://romi.github.io/plantdb/
GNU Lesser General Public License v3.0
2 stars 1 forks source link

Fail install with `Poetry install` command #66

Open fabfabBesnard opened 2 years ago

fabfabBesnard commented 2 years ago

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
jlegrand62 commented 2 years ago

try in a new conda env:

fabfabBesnard commented 2 years ago

same error happens again.

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