OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Poetry gets stuck during poetry install - How to resolve?

  • Thread starter Thread starter Julian
  • Start date Start date
J

Julian

Guest
I created a python project (on Windows) and want to get it going on a Raspberry Pi. I already successfully cloned the repo to the Pi. Now I want to install the environment using poetry install.

My pyproject.toml looks like this:

Code:
[tool.poetry.dependencies]
python = "^3.12"
numpy = "<2"
pandas = "^2.2.2"
opencv-python = "^4.10.0.84"
face-recognition = "^1.3.0"
face-recognition-models = {git = "https://github.com/ageitgey/face_recognition_models"}
setuptools = "^70.0.0"
dlib = "^19.24.4"


[tool.poetry.group.dev.dependencies]
ipykernel = "^6.29.4"

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

The output from poetry config --list looks as follows:

Code:
cache-dir = "/home/juliano/.cache/pypoetry"
experimental.system-git-client = false
installer.max-workers = null
installer.modern-installation = true
installer.no-binary = null
installer.parallel = true
keyring.enabled = true
solver.lazy-wheel = true
virtualenvs.create = true
virtualenvs.in-project = true
virtualenvs.options.always-copy = false
virtualenvs.options.no-pip = false
virtualenvs.options.no-setuptools = false
virtualenvs.options.system-site-packages = false
virtualenvs.path = "{cache-dir}/virtualenvs"  # /home/juliano/.cache/pypoetry/virtualenvs
virtualenvs.prefer-active-python = false
virtualenvs.prompt = "{project_name}-py{python_version}"
warnings.export = true

The output from poetry install -vvv looks like this:

Code:
poetry install -vvv
Loading configuration file /home/juliano/.config/pypoetry/config.toml
Using virtualenv: /home/juliano/.cache/pypoetry/virtualenvs/photo-finder-YX3u8Om1-py3.12
Installing dependencies from lock file

Finding the necessary packages for the current system

Package operations: 39 installs, 0 updates, 0 removals

  - Installing six (1.16.0): Pending...
Checking if keyring is available
[keyring:keyring.backend] Loading KWallet
[keyring:keyring.backend] Loading SecretService
[keyring:keyring.backend] Loading Windows
[keyring:keyring.backend] Loading chainer
[keyring:keyring.backend] Loading libsecret
[keyring:keyring.backend] Loading macOS
Using keyring backend 'SecretService Keyring'

Two questions:

  • Side question: I want to environment to be installed in the project folder - and I thought I activated this correctly (see virtualenvs.in-project = true in the poetry config above). However, this line during installation Using virtualenv: /home/juliano/.cache/pypoetry/virtualenvs/photo-finder-YX3u8Om1-py3.12 suggests otherwise, correct? What have I missed here?
  • Main question: The installation process gets stuck after the output above. What could be a problem and how to resolve this?
<p>I created a python project (on Windows) and want to get it going on a Raspberry Pi. I already successfully cloned the repo to the Pi. Now I want to install the environment using <code>poetry install</code>.</p>
<p>My <code>pyproject.toml</code> looks like this:</p>
<pre><code>[tool.poetry.dependencies]
python = "^3.12"
numpy = "<2"
pandas = "^2.2.2"
opencv-python = "^4.10.0.84"
face-recognition = "^1.3.0"
face-recognition-models = {git = "https://github.com/ageitgey/face_recognition_models"}
setuptools = "^70.0.0"
dlib = "^19.24.4"


[tool.poetry.group.dev.dependencies]
ipykernel = "^6.29.4"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
</code></pre>
<p>The output from <code>poetry config --list</code> looks as follows:</p>
<pre><code>cache-dir = "/home/juliano/.cache/pypoetry"
experimental.system-git-client = false
installer.max-workers = null
installer.modern-installation = true
installer.no-binary = null
installer.parallel = true
keyring.enabled = true
solver.lazy-wheel = true
virtualenvs.create = true
virtualenvs.in-project = true
virtualenvs.options.always-copy = false
virtualenvs.options.no-pip = false
virtualenvs.options.no-setuptools = false
virtualenvs.options.system-site-packages = false
virtualenvs.path = "{cache-dir}/virtualenvs" # /home/juliano/.cache/pypoetry/virtualenvs
virtualenvs.prefer-active-python = false
virtualenvs.prompt = "{project_name}-py{python_version}"
warnings.export = true
</code></pre>
<p>The output from <code>poetry install -vvv</code> looks like this:</p>
<pre><code>poetry install -vvv
Loading configuration file /home/juliano/.config/pypoetry/config.toml
Using virtualenv: /home/juliano/.cache/pypoetry/virtualenvs/photo-finder-YX3u8Om1-py3.12
Installing dependencies from lock file

Finding the necessary packages for the current system

Package operations: 39 installs, 0 updates, 0 removals

- Installing six (1.16.0): Pending...
Checking if keyring is available
[keyring:keyring.backend] Loading KWallet
[keyring:keyring.backend] Loading SecretService
[keyring:keyring.backend] Loading Windows
[keyring:keyring.backend] Loading chainer
[keyring:keyring.backend] Loading libsecret
[keyring:keyring.backend] Loading macOS
Using keyring backend 'SecretService Keyring'
</code></pre>
<p>Two questions:</p>
<ul>
<li>Side question: I want to environment to be installed in the project folder - and I thought I activated this correctly (see <code>virtualenvs.in-project = true</code> in the poetry config above). However, this line during installation <code>Using virtualenv: /home/juliano/.cache/pypoetry/virtualenvs/photo-finder-YX3u8Om1-py3.12</code> suggests otherwise, correct? What have I missed here?</li>
<li>Main question: The installation process gets stuck after the output above. What could be a problem and how to resolve this?</li>
</ul>
 

Latest posts

M
Replies
0
Views
1
Muhammad Rafli Aditya. H
M
Top