-
Notifications
You must be signed in to change notification settings - Fork 214
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
Error: Expected in: flat namespace occuring out of the blue #1034
Comments
Likely related: #1027 |
Can you try creating a new python virtual environment and:
|
I'm hitting the same issue using PyPy 7.3.8
Otherwise works fine under CPython 3.10.4. Also, I'm on an M1 Mac. |
That's not good that pip is downloading an |
Yes, I also wondered about that. So next step would be to ignore the wheel, right? pip install pyproj --no-binary :all: I'm getting a weird ascii decode error within pip, so I disable PEP517 for legacy build behaviour: $ pip install pyproj --no-binary :all: --no-use-pep517
Collecting pyproj
Using cached pyproj-3.3.1.tar.gz (219 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: certifi in /Users/mkj/.pyenv/versions/pypy3.9-7.3.8/envs/atria-pypy/lib/pypy3.9/site-packages (from pyproj) (2021.10.8)
Skipping wheel build for pyproj, due to binaries being disabled for it.
Installing collected packages: pyproj
Running setup.py install for pyproj ... done
Successfully installed pyproj-3.3.1 However I'm hitting the same issue as before: |
Did you try this process in a new python environment? |
yes, here are the commands I used: $ pyenv virtualenv pypy3.9-7.3.8 env
$ pyenv shell env
(env) $ pip install cython
Collecting cython
Using cached Cython-0.29.28-py2.py3-none-any.whl (983 kB)
Installing collected packages: cython
Successfully installed cython-0.29.28
(env) $ pip install pyproj --no-binary :all: --no-use-pep517
Collecting pyproj
Using cached pyproj-3.3.1.tar.gz (219 kB)
Preparing metadata (setup.py) ... done
Collecting certifi
Downloading certifi-2021.10.8.tar.gz (151 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 151.2/151.2 kB 2.1 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Skipping wheel build for pyproj, due to binaries being disabled for it.
Skipping wheel build for certifi, due to binaries being disabled for it.
Installing collected packages: certifi, pyproj
Running setup.py install for certifi ... done
Running setup.py install for pyproj ... done
Successfully installed certifi-2021.10.8 pyproj-3.3.1
(env) $ python
Python 3.9.10 (8276b505180f70c5784a698a510f0a17317a85c3, Feb 19 2022, 16:51:03)
[PyPy 7.3.8 with GCC Apple LLVM 13.0.0 (clang-1300.0.29.30)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>> import pyproj
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/mkj/.pyenv/versions/atria-pypy2/lib/pypy3.9/site-packages/pyproj/__init__.py", line 49, in <module>
import pyproj.network
File "/Users/mkj/.pyenv/versions/atria-pypy2/lib/pypy3.9/site-packages/pyproj/network.py", line 10, in <module>
from pyproj._network import ( # noqa: F401 pylint: disable=unused-import
ImportError: dlopen(/Users/mkj/.pyenv/versions/atria-pypy2/lib/pypy3.9/site-packages/pyproj/_network.pypy39-pp73-darwin.so, 0x0006): symbol not found in flat namespace '_proj_context_is_network_enabled' |
Any solution to this? I am running into same issue with Mac M1 Monterey
|
Hi. When I download pyproj (MAC M1 chip, Big Sur 11.0.1) on python in a VENV folder it works originally then always seems to come up with the following error:
Really frustrating me, any ideas. Thanks. I have the latest proj downloaded with brew and pyproj via pip
The text was updated successfully, but these errors were encountered: