Skip to content

Conversation

@WiktorG351
Copy link
Contributor

No description provided.

@WiktorG351
Copy link
Contributor Author

I am still working on this - not sure how to handle all the different modules that osfv_cli uses

@EduKav1813
Copy link

@WiktorG351 I think we can install them from poetry.lock, so that if dependencies change in the osfv-scripts we won't have to update them in the recipe.

You can export poetry-managed dependencies to install with pip:

  1. pip install poetry poetry-export-plugin
  2. poetry export --without-hashes --format=requirements.txt > requirements.txt
  3. pip install -r requirements.txt

Upside: now we don't have to use poetry or virtual environments.
Downside: eventually we will have dependency conflict

If I think of a better way of doing this, I will leave a note here

@EduKav1813
Copy link

Ideally, we should stick with poetry, I think. But I am not sure how easy would it be to use it in Yocto

@WiktorG351
Copy link
Contributor Author

@EduKav1813 I am trying this new approach, but keep running into this error no matter what i do:

| Downloading anyio-4.8.0-py3-none-any.whl (96 kB)
|    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 96.0/96.0 kB 115.7 MB/s eta 0:00:00
| Downloading more_itertools-10.6.0-py3-none-any.whl (63 kB)
|    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 63.0/63.0 kB 108.6 MB/s eta 0:00:00
| Downloading cffi-1.17.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (479 kB)
|    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 479.4/479.4 kB 4.9 MB/s eta 0:00:00
| Downloading h11-0.14.0-py3-none-any.whl (58 kB)
|    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.3/58.3 kB 95.0 MB/s eta 0:00:00
| Downloading sniffio-1.3.1-py3-none-any.whl (10 kB)
| Downloading typing_extensions-4.12.2-py3-none-any.whl (37 kB)
| Downloading pycparser-2.22-py3-none-any.whl (117 kB)
|    ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 117.6/117.6 kB 8.7 MB/s eta 0:00:00
| Installing collected packages: trove-classifiers, fastjsonschema, distlib, zstandard, urllib3, typing_extensions, tomlkit, sniffio, shellingham, rapidfuzz, pycparser, poetry-core, platformdirs, pkginfo, pbs-installer, packaging, msgpack, more-itertools, jeepney, jaraco.context, idna, h11, filelock, crashtest, charset-normalizer, certifi, virtualenv, requests, jaraco.functools, jaraco.classes, httpcore, findpython, dulwich, cleo, cffi, build, anyio, requests-toolbelt, httpx, cryptography, cachecontrol, SecretStorage, keyring, poetry, poetry-plugin-export
| ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '/usr/lib/python3.12'
| Consider using the `--user` option or check the permissions.
| 
| WARNING: exit code 1 from a shell command.
ERROR: Task (/repo/recipes-devtools/python/python3-osfv-scripts_0.5.10.bb:do_compile) failed with exit code '1'

I've tried using pip3 and adding --user (which I saw in some threads online as a possible solution) but nothing helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants