localdevices / pyorc

Surface velocity, object tracking, and river flow measurements in an open-source API
GNU Affero General Public License v3.0
140 stars 33 forks source link

import pyorc issue #163

Closed lflowers39 closed 5 months ago

lflowers39 commented 5 months ago

OS: Windows 10 Enterprise (OS Build = 19045.4291). python version 3.12.3 Installed from pypi with pip

conda activate conda install -c conda-forge cartopy geopandas rasterio pip install pyopenrivercam

Full Error:

import pyorc ERROR 1: PROJ: proj_create_from_database: Cannot find proj.db Traceback (most recent call last): File "rasterio\crs.pyx", line 586, in rasterio.crs.CRS.from_epsg File "rasterio\_err.pyx", line 195, in rasterio._err.exc_wrap_int rasterio._err.CPLE_AppDefinedError: PROJ: proj_create_from_database: Cannot find proj.db

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "", line 1, in File "C:\Users\lflores\Anaconda3\envs\EAsPyORC\Lib\site-packages\pyorc__init__.py", line 2, in from .api.cameraconfig import CameraConfig, load_camera_config, get_camera_config File "C:\Users\lflores\Anaconda3\envs\EAsPyORC\Lib\site-packages\pyorc\api\cameraconfig.py", line 17, in from .. import cv, helpers File "C:\Users\lflores\Anaconda3\envs\EAsPyORC\Lib\site-packages\pyorc\cv.py", line 6, in from pyorc import helpers File "C:\Users\lflores\Anaconda3\envs\EAsPyORC\Lib\site-packages\pyorc\helpers.py", line 227, in def get_lons_lats(xs, ys, src_crs, dst_crs=CRS.from_epsg(4326)): ^^^^^^^^^^^^^^^^^^^ File "rasterio\crs.pyx", line 590, in rasterio.crs.CRS.from_epsg rasterio.errors.CRSError: The EPSG code is unknown. PROJ: proj_create_from_database: Cannot find proj.db

hcwinsemius commented 5 months ago

Thanks for posting. It may take a bit of time due to holiday season but we'll look into it. It may be that the problem is with the python 3.12 version which a few months back still had some compatibility issues. 3.11 is likely to work. We'll check it out.

hcwinsemius commented 5 months ago

I found that this issue was closed. Did you manage to solve it? What was the solution? I may be able to improve code or documentation.

lflowers39 commented 4 months ago

I reinstalled from conda-forge as opposed to using pypi.