Closed bzah closed 1 year ago
Ah, nice catch. I agree the minimum version should probably be updated in the setup.py. Pyproj 3.0.0 came out in November of 2020 which I think is reasonable as a minimum version. @mraspaud @pnuu thoughts?
Some questions for you @bzah:
I'm fine with requiring Pyproj 3. My guess is this is happening with Python 3.11, as there were also other weird versions I saw when I quickly tested it some time back.
$ python --version
Python 3.9.13
$ conda --version
conda 22.11.1
Yep, I can open a PR to fix that.
Code Sample, a minimal, complete, and verifiable piece of code
MRE: From a fresh environment
conda install satpy
import satpy
Problem description
[this should also explain why the current behaviour is a problem and why the expected output is a better solution.]
When installing satpy from a fresh environment, the version of pyproj that get installed is
'2.6.1.post1'
. However, pyresample requires thepyproj.aoi
module that was introduced in pyproj 3.0.0.This can probably be fixed by updating setup.py of pyresample project to
'pyproj>=3.0.0'
instead of'pyproj>=2.2'
Note: I'm new to pytroll's ecosystem.
Expected Output
No error.
Actual Result, Traceback if applicable
Versions of Python, package at hand and relevant dependencies
python 3.9.13 satpy: 0.38