-
Notifications
You must be signed in to change notification settings - Fork 216
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
Problem with installing Pyproj / proj #893
Comments
Hi Ger, thanks for your report. It seems to me you are struggling with different incompatible package versions. The proj version you have installed is too old and cannot be used with a recent pyproj module. So the choices you have is to install a newer proj version or to install an older pyproj version. |
Looking at https://github.com/pytroll/satpy/blob/main/setup.py I see that satpy requires 'pyproj>=2.2' |
There are some instructions for building PROJ from source on Raspbian here: piwheels/packages#60. Also, feel free to comment on that issue if you would like to see wheels. |
Also, the version compatibility matrix is likely a helpful resource: https://pyproj4.github.io/pyproj/stable/installation.html#installing-from-source |
@gersmit These all look like very old versions of these software libraries including Satpy. I think you should install Python (3.7 or greater) and then use traditional Python tools like pip (or conda is you install python that way). The nice thing about using conda (conda-forge) is that all of the binary dependencies are built for you (like the PROJ C library). |
@djhoese , I already had a little bit of that. Didn't know Raspbian was carrying this either. I'm using Python 3.7 but don't really know how to install proj. I will install conda tomorrow and again follow the way you described. If it works for someone else, it should work for me too....yes, right |
@gersmit you can try downloading, unzipping and installing this wheel: pyproj-2.4.1-cp37-cp37m-linux_armv7l.whl.zip |
I make install like @snowman2 explain, pyproj 2.4.1 What is happening now and can i solved this? |
Looks like numpy isn't installed correctly. |
I wonder if this will help: piwheels/packages#60 (comment) |
Made new image RPI Buster x32. Install fresh pip install satpy and get error during install
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-EPnzAQ/zarr/ I don't no anymore what i have to do first |
Seems like a python version issue. I recommend making a virtual environment:
|
@snowman2 sorry but no result, install stops on the same row. I installed the same almost 1 year ago on RPI4-4GB, no problems Now i try it on a clean Buster x64 and clean Buster x32 on RPI 3b with the problems |
Are you able to generate a requirements.txt using pip freeze from the old environment? That might help you re-create one in a new environment. |
Step by step i am going. The error complete = : |
This is a config file that comes with the pyspectral package. It should be included when you install the package. How did you install satpy/pyspectral? |
pip3 install pyspectral |
I notice that your traceback bounces between python packages in
|
Question: |
Not sure. It mind depend on what version of python or how python was installed on the system level. Does |
I use suggestie @snowman2 ----> (venv) pi@raspberrypi:~ $ |
Did you do the
|
small question: ERROR: Command errored out with exit status 1: I try to install proj 6.2.0 Building with CMake
pi@raspberrypi:~/proj/build $ cmake --build . How do i use the last row cmake --build . . I don't know how to deal with this |
@gersmit, with the wheel #893 (comment), you don't need to install PROJ, correct? |
@snowman2 , new img dd 13-8-2021, 18:00 hr, RPI buster X64 processor : 1 processor : 2 processor : 3 Hardware : BCM2835 pi@raspberrypi:~/Downloads $ sudo pip install pyproj-2.4.1-cp37-cp37m-linux_armv7l.whl install satpy
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-CbGDI3/pyproj/ it can't and shouldn't be that hard. What the hell am I doing wrong. Whereas before there were no problems at all. stops on |
Does this work for you? piwheels/packages#60 (comment) |
@snowman2 pi@raspberrypi:~ $ git clone [email protected]:pyproj4/pyproj.git Please make sure you have the correct access rights |
Maybe https might work better for you:
|
Hi @snowman2 , |
Base on: piwheels/packages#60 (comment) I am thinking you will likely have more success if you do this:
|
@snowman2, I installed as you explane. What now, do i have change order.Then when i try to install Satpy again an Error ERROR: Command errored out with exit status 1:
|
You need python 3. A virtual environment is best ☝️ |
I think this is your best bet for this to be easier in the future: piwheels/packages#60 |
@snowman2 , Thanks for all the help. |
Installing pyproj (and maybe |
Small question: |
This is a Satpy specific question and if you have more they should maybe go on the satpy repository (so we can stop bugging Alan). As for the answer: It all depends on the sensor you are talking about. Are you saying C2 as in Channel 2 of the SEVIRI instrument or are you saying C02 as in the ABI Channel 2 band data provided by Satpy. You can typically google something like " channel list" and find some listing of an instrument's channels and their wavelengths. For example I found this for SEVIRI: https://www.eumetsat.int/0-degree-service |
Glad to hear that you have pyproj installed. Going to close this issue since it is resolved. I recommend asking satpy questions in their recommended channels. |
Dear sir or madam,
My name is Ger Smit from the Netherlands.
I have problem with pyproj / proj.
I use Raspberry Pi, Python, for making screne from data with satpy.
No problems til now.
I install satpy, try to run python script and get error.
I I was in contact with @djhoese about this and he referred me to you
ERROR: Minimum supported proj version is 6.2.0, installed version is 4.9.3. For more information see: https://pyproj4.github.io/pyproj/stable/installation.htm
Then when i run the script i get error :
Traceback (most recent call last):
File "/home/pi/a-satpy-testen/cursus_seviri.py", line 83, in
scn.load(scn.all_dataset_names()[1:]) #HEEL belangrijk
File "/home/pi/.local/lib/python3.7/site-packages/satpy/scene.py", line 1163, in load
self._read_datasets_from_storage(**kwargs)
File "/home/pi/.local/lib/python3.7/site-packages/satpy/scene.py", line 1183, in _read_datasets_from_storage
return self._read_dataset_nodes_from_storage(nodes, **kwargs)
File "/home/pi/.local/lib/python3.7/site-packages/satpy/scene.py", line 1189, in _read_dataset_nodes_from_storage
loaded_datasets = self._load_datasets_by_readers(reader_datasets, **kwargs)
File "/home/pi/.local/lib/python3.7/site-packages/satpy/scene.py", line 1214, in _load_datasets_by_readers
new_datasets = reader_instance.load(ds_ids, **kwargs)
File "/home/pi/.local/lib/python3.7/site-packages/satpy/readers/yaml_reader.py", line 945, in load
ds = self._load_dataset_with_area(dsid, coords, **kwargs)
File "/home/pi/.local/lib/python3.7/site-packages/satpy/readers/yaml_reader.py", line 1109, in _load_dataset_with_area
ds = super(GEOFlippableFileYAMLReader, self)._load_dataset_with_area(dsid, coords, **kwargs)
File "/home/pi/.local/lib/python3.7/site-packages/satpy/readers/yaml_reader.py", line 841, in _load_dataset_with_area
ds = self._load_dataset_data(file_handlers, dsid, **kwargs)
File "/home/pi/.local/lib/python3.7/site-packages/satpy/readers/yaml_reader.py", line 713, in _load_dataset_data
proj = self._load_dataset(dsid, ds_info, file_handlers, **kwargs)
File "/home/pi/.local/lib/python3.7/site-packages/satpy/readers/yaml_reader.py", line 689, in _load_dataset
projectable = fh.get_dataset(dsid, ds_info)
File "/home/pi/.local/lib/python3.7/site-packages/satpy/readers/seviri_l1b_native.py", line 458, in get_dataset
self._update_attrs(dataset, dataset_info)
File "/home/pi/.local/lib/python3.7/site-packages/satpy/readers/seviri_l1b_native.py", line 582, in _update_attrs
actual_lon, actual_lat, actual_alt = self.satpos
File "/home/pi/.local/lib/python3.7/site-packages/satpy/readers/seviri_l1b_native.py", line 610, in satpos
semi_minor_axis=self.mda['projection_parameters']['b']
File "/home/pi/.local/lib/python3.7/site-packages/satpy/readers/seviri_base.py", line 703, in get_satpos
proj='geocent', a=semi_major_axis, b=semi_minor_axis, units='m'
File "/home/pi/.local/lib/python3.7/site-packages/pyproj/crs.py", line 436, in init
super(CRS, self).init(projstring)
File "pyproj/_crs.pyx", line 1738, in pyproj._crs._CRS.init
pyproj.exceptions.CRSError: Invalid projection: +proj=geocent +a=6378169.0 +b=6356583.800000001 +units=m +type=crs: (Internal Proj Error: proj_create: Invalid b value)
Please can you explaine to me how to install or solved pyproj / proj in combination with satpy.
I try a lot withoud result.
Thanks in advange
@gersmit
The text was updated successfully, but these errors were encountered: