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

uv install #315

Open
barneydobson opened this issue Oct 17, 2024 · 1 comment
Open

uv install #315

barneydobson opened this issue Oct 17, 2024 · 1 comment
Labels
hacktoberfest python Pull requests that update Python code

Comments

@barneydobson
Copy link
Collaborator

Low priority and can't say I've used uv before, but doesn't seem to work for some reason.

uv init example 
cd example
uv add swmmanywhere

Gives error:

warning: `VIRTUAL_ENV=C:\Users\bdobson\Documents\data\envs\sa` does not match the project environment path `.venv` and will be ignored       
Using CPython 3.11.10
Creating virtual environment at: .venv
Resolved 67 packages in 7.95s
   Built multiurl==0.3.1
   Built julian==0.14
error: Failed to prepare distributions
  Caused by: Failed to fetch wheel: llvmlite==0.36.0
  Caused by: Build backend failed to determine requirements with `build_wheel()` (exit code: 1)

[stderr]
Traceback (most recent call last):
  File "<string>", line 14, in <module>
  File "C:\Users\bdobson\AppData\Local\uv\cache\builds-v0\.tmpr1A7jY\Lib\site-packages\setuptools\build_meta.py", line 332, in get_requires_for_build_wheel
    return self._get_build_requires(config_settings, requirements=[])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\bdobson\AppData\Local\uv\cache\builds-v0\.tmpr1A7jY\Lib\site-packages\setuptools\build_meta.py", line 302, in _get_build_requires
    self.run_setup()
  File "C:\Users\bdobson\AppData\Local\uv\cache\builds-v0\.tmpr1A7jY\Lib\site-packages\setuptools\build_meta.py", line 516, in run_setup      
    super().run_setup(setup_script=setup_script)
  File "C:\Users\bdobson\AppData\Local\uv\cache\builds-v0\.tmpr1A7jY\Lib\site-packages\setuptools\build_meta.py", line 318, in run_setup      
    exec(code, locals())
  File "<string>", line 55, in <module>
  File "<string>", line 52, in _guard_py_ver
RuntimeError: Cannot install on Python version 3.11.10; only versions >=3.6,<3.10 are supported.
@barneydobson barneydobson added python Pull requests that update Python code hacktoberfest labels Oct 17, 2024
@cheginit
Copy link
Collaborator

I'd recommend using Pixi instead, considering the use of geospatial packages. Pixi uses uv under-the-hood. An example can be found here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest python Pull requests that update Python code
Projects
None yet
Development

No branches or pull requests

2 participants