-
Notifications
You must be signed in to change notification settings - Fork 293
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
Can't install satpy with pip #2130
Comments
😕 That is very strange since the newest version is 0.36.0. Just to be sure can you add a |
Oh sorry, I misread your message. I thought the |
Using python3.9, Relevant log
|
BTW, I can't find a version info in The way to store version info in
|
It seems like @mraspaud removed the setup.py options in #1848 but then never moved them to pyproject.toml as described in the setuptools-scm docs: https://pypi.org/project/setuptools-scm/ For example:
@pdebuyl How would you feel about make a PR to add this information to the pyproject.toml? |
I overlooked the commit. Actually there is |
Ah there is. Not sure how I missed that. That's what I get for commenting before I've fully woken up. Last week when you first made this issue I looked at the .tar.gz from PyPI and I didn't see anything suspicious (like a version of 0.0) but I may have been looking in the wrong places. So step 1 is I need to reproduce this. Step 2 is figure out what we can check in the .tar.gz to verify that the version is correct. In other pytroll packages that generate wheels we have extra checks to import the package and verify the version, but we've never needed that on an sdist .tar.gz before. |
So according to this stackoverflow answer this is a change in pip and can be temporarily worked around by using |
Ok, here's how I'm testing all of this: conda create -y -n test_satpy_version python=3.9 setuptools pip build satpy
conda activate test_satpy_version
conda uninstall --force -y satpy This produces a usable environment. If you do
So apparently setuptools-scm doesn't have all the information in the tarball to work properly or at least it doesn't think it does. It is then recreating satpy/version.py with the wrong metadata. |
|
I can reproduce this by making the Edit: |
setuptools-scm 7.0.4 was just released and it looks like it fixes this. Running the same instructions as above now works. I'm going to close this, but if you try this out again and it still doesn't work comment here and we can reopen it. |
Describe the bug
Get errors when install satpy with pip
Has anyone else found this? I'm really sorry if it is just my computer
To Reproduce
Note it does work with
Expected behavior
the package to install
Actual results
Environment Info:
The text was updated successfully, but these errors were encountered: