question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to use local wheel as dependency

See original GitHub issue

I am trying to use a local wheel as a dependency (for the default environment) on hatch 1.1.1 on Windows 10. I’ve tried this:

"file:./package.whl"

and this

"file:///c:/Users/myuser/full/path/to/package.whl"

I end up getting an error like ValueError: Dependency #2 of field `project.dependencies` is invalid: Parse error at "':///c:/U'": Expected string_end.

Is this not supported yet in the latest release, or am I misunderstanding the syntax? If this is an error on my part, can you update the documentation to be more clear?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
ofekcommented, May 23, 2022
0reactions
ofekcommented, May 19, 2022

Maybe the the documentation could be improved

Will do, thanks!

Will the environment automatically be updated (e.g. I added a new package) when running a command in the environment?

Yes https://hatch.pypa.io/latest/environment/#dependencies

Do I need to remove the environment if the initial environment creation failed (like it did in this case)?

Yes

Read more comments on GitHub >

github_iconTop Results From Across the Web

Wheel installation fails when local path dependency introduced
When wheels are being built under PEP-517, the source is expected to be moved into an isolated environment at build time. This means...
Read more >
python Pip install using wheel file not working - Stack Overflow
This will download requests and all its dependencies to the wheelhouse directory. Now move the directory to the target machine, there issue
Read more >
User Guide - pip documentation v22.3.1
To build wheels for your requirements and all their dependencies to a local directory: Unix/macOS. python -m pip install wheel python -m pip...
Read more >
Libraries fail with dependency exception - Azure Databricks
Assume that wheel A has a dependency on wheel B. ... it will fallback to PyPI and use it locally to satisfy the...
Read more >
Libraries fail with dependency exception - Databricks
Assume that wheel A has a dependency on wheel B. ... it will fallback to PyPI and use it locally to satisfy the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found