You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, @carlodef .
I have successfully installed s2p in Ubuntu 18.04 using pip install s2p, and
the version of pyproj is 2.6.1.
But when I run s2p in the cmd, errors happened: (venv1) yinxcao@DESKTOP-OKGUJDC:~$ s2p Traceback (most recent call last): File "/home/yinxcao/venv1/bin/s2p", line 11, in <module> load_entry_point('s2p==1.0b25', 'console_scripts', 's2p')() File "/home/yinxcao/venv1/lib/python3.6/site-packages/pkg_resources/__init__.py", line 480, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/home/yinxcao/venv1/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2693, in load_entry_point return ep.load() File "/home/yinxcao/venv1/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2324, in load return self.resolve() File "/home/yinxcao/venv1/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2330, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/home/yinxcao/venv1/lib/python3.6/site-packages/s2p/__init__.py", line 37, in <module> from s2p import initialization File "/home/yinxcao/venv1/lib/python3.6/site-packages/s2p/initialization.py", line 12, in <module> import rpcm File "/home/yinxcao/venv1/lib/python3.6/site-packages/rpcm/__init__.py", line 8, in <module> import srtm4 File "/home/yinxcao/venv1/lib/python3.6/site-packages/srtm4/__init__.py", line 7, in <module> from srtm4.raster import crop File "/home/yinxcao/venv1/lib/python3.6/site-packages/srtm4/raster.py", line 15, in <module> pyproj.network.set_network_enabled(active=True) AttributeError: module 'pyproj' has no attribute 'network'
Do you know what happens? Thank you in advance.
The text was updated successfully, but these errors were encountered:
Can you try installing it from the git repository?
Python 3.6 is no longer supported, and 3.7 will be unsupported soon as well (https://devguide.python.org/versions/).
Your error should disappear with a more recent version of pyproj (>=3.x.x), which might imply a more recent version of python.
---- Replied Message ----
| From | Jérémy ***@***.***> |
| Date | 03/03/2023 23:05 |
| To | ***@***.***> |
| Cc | ***@***.***>***@***.***> |
| Subject | Re: [centreborelli/s2p] AttributeError: module 'pyproj' has no attribute 'network' (Issue #140) |
Hello,
Can you try installing it from the git repository?
Python 3.6 is no longer supported, and 3.7 will be unsupported soon as well (https://devguide.python.org/versions/).
Your error should disappear with a more recent version of pyproj (>=3.x.x), which might imply a more recent version of python.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
Hello, @carlodef .
I have successfully installed s2p in Ubuntu 18.04 using
pip install s2p
, andthe version of
pyproj
is 2.6.1.But when I run
s2p
in the cmd, errors happened:(venv1) yinxcao@DESKTOP-OKGUJDC:~$ s2p Traceback (most recent call last): File "/home/yinxcao/venv1/bin/s2p", line 11, in <module> load_entry_point('s2p==1.0b25', 'console_scripts', 's2p')() File "/home/yinxcao/venv1/lib/python3.6/site-packages/pkg_resources/__init__.py", line 480, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/home/yinxcao/venv1/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2693, in load_entry_point return ep.load() File "/home/yinxcao/venv1/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2324, in load return self.resolve() File "/home/yinxcao/venv1/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2330, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/home/yinxcao/venv1/lib/python3.6/site-packages/s2p/__init__.py", line 37, in <module> from s2p import initialization File "/home/yinxcao/venv1/lib/python3.6/site-packages/s2p/initialization.py", line 12, in <module> import rpcm File "/home/yinxcao/venv1/lib/python3.6/site-packages/rpcm/__init__.py", line 8, in <module> import srtm4 File "/home/yinxcao/venv1/lib/python3.6/site-packages/srtm4/__init__.py", line 7, in <module> from srtm4.raster import crop File "/home/yinxcao/venv1/lib/python3.6/site-packages/srtm4/raster.py", line 15, in <module> pyproj.network.set_network_enabled(active=True) AttributeError: module 'pyproj' has no attribute 'network'
Do you know what happens? Thank you in advance.
The text was updated successfully, but these errors were encountered: