Skip to content
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 when importing geopandas #1756

Closed
Cbarrow98 opened this issue Dec 28, 2020 · 3 comments
Closed

Error when importing geopandas #1756

Cbarrow98 opened this issue Dec 28, 2020 · 3 comments
Labels
installation Issues related to get a working installation

Comments

@Cbarrow98
Copy link

After successfully installing geopandas, when I import it within jupyter notebooks [Having the most recent python and conda updates) the following message occurs:

"AttributeError: WKT2_2019"

I have uninstalled and tried again using "conda install geopandas" and "conda install --channel conda-forge geopandas" however the problem still persists and I have no idea what the issue is.

Any help would be much appreciated

@Cbarrow98 Cbarrow98 added the installation Issues related to get a working installation label Dec 28, 2020
@jorisvandenbossche
Copy link
Member

It's a problemw with the pyproj installation.

Can you give more details on how you installed geopandas, and eg the output of conda list in your environment?

@Cbarrow98
Copy link
Author

Cbarrow98 commented Dec 28, 2020

This is the output:

(I notice the channels are different for pyproj and geopandas?)

# Name                    Version                   Build  Channel
_anaconda_depends         2020.07                  py38_0
_ipyw_jlab_nb_ext_conf    0.1.0                    py38_0
affine                    2.3.0                      py_0
aiohttp                   3.6.2                    pypi_0    pypi
alabaster                 0.7.12                     py_0
alpha-vantage             2.2.0                    pypi_0    pypi
altair                    4.1.0                      py_1    conda-forge
anaconda                  custom                   py38_1
anaconda-client           1.7.2                    py38_0
anaconda-navigator        1.9.12                   py38_0
anaconda-project          0.8.4                      py_0
appdirs                   1.4.4                      py_0
argh                      0.26.2                   py38_0
argon2-cffi               20.1.0           py38he774522_1
asn1crypto                1.4.0                      py_0
astroid                   2.4.2                    py38_0
astropy                   4.2              py38h2bbff1b_0
async-timeout             3.0.1                    pypi_0    pypi
async_generator           1.10                       py_0
atomicwrites              1.4.0                      py_0
attrs                     20.3.0             pyhd3eb1b0_0
autopep8                  1.5.4                      py_0
babel                     2.9.0              pyhd3eb1b0_0
backcall                  0.2.0                      py_0
backports                 1.0                pyhd3eb1b0_2
backports.functools_lru_cache 1.6.1              pyhd3eb1b0_0
backports.shutil_get_terminal_size 1.0.0              pyhd3eb1b0_3
backports.tempfile        1.0                        py_1
backports.weakref         1.0.post1                  py_1
bcrypt                    3.2.0            py38he774522_0
beautifulsoup4            4.9.3              pyhb0f4dca_0
bitarray                  1.6.1            py38h2bbff1b_0
bkcharts                  0.2                      py38_0
black                     19.10b0                    py_0
blas                      1.0                         mkl
bleach                    3.2.1                      py_0
blosc                     1.16.3               h7bd577a_0
blpapi                    3.15.2                   pypi_0    pypi
bokeh                     2.2.3                    py38_0
boto                      2.49.0                   py38_0
bottleneck                1.3.2            py38h2a96729_1
brotlipy                  0.7.0           py38h2bbff1b_1003
bzip2                     1.0.8                he774522_0
ca-certificates           2020.12.8            haa95532_0
cartopy                   0.18.0           py38hd77ba2b_0
certifi                   2020.12.5        py38haa95532_0
cffi                      1.14.4           py38hcd4344a_0
cfitsio                   3.470                he774522_6
chardet                   4.0.0           py38haa95532_1003
click                     7.1.2                      py_0
click-plugins             1.1.1                      py_0
cligj                     0.7.1            py38haa95532_0
cloudpickle               1.6.0                      py_0
clyent                    1.2.2                    py38_1
colorama                  0.4.4              pyhd3eb1b0_0
comtypes                  1.1.7                 py38_1001
conda                     4.9.2            py38haa95532_0
conda-build               3.18.11                  py38_1
conda-env                 2.6.0                         1
conda-package-handling    1.7.2            py38h76e460a_0
conda-verify              3.4.2                      py_1
console_shortcut          0.1.1                         4
contextily                1.0.1                      py_0    conda-forge
contextlib2               0.6.0.post1                py_0
cryptography              3.3.1            py38hcd4344a_0
curl                      7.67.0               h2a8f88b_0
cycler                    0.10.0                   py38_0
cython                    0.29.21          py38hd77b12b_0
cytoolz                   0.11.0           py38he774522_0
dask                      2020.12.0          pyhd3eb1b0_0
dask-core                 2020.12.0          pyhd3eb1b0_0
decorator                 4.4.2                      py_0
defusedxml                0.6.0                      py_0
diff-match-patch          20200713                   py_0
distributed               2020.12.0        py38haa95532_0
docutils                  0.16                     py38_1
entrypoints               0.3                      py38_0
et_xmlfile                1.0.1                   py_1001
expat                     2.2.10               h33f27b4_2
fastcache                 1.1.0            py38he774522_0
filelock                  3.0.12                     py_0
fiona                     1.8.13           py38hb7fdc2d_0    conda-forge
fix-yahoo-finance         0.1.37                   pypi_0    pypi
flake8                    3.8.4                      py_0
flask                     1.1.2                      py_0
freetype                  2.10.4               hd328e21_0
freexl                    1.0.6                h2bbff1b_0
fsspec                    0.8.3                      py_0
future                    0.18.2                   py38_1
gdal                      3.0.2            py38hdf43c64_0
geographiclib             1.50                       py_0    conda-forge
geopandas                 0.8.1                      py_0
geopy                     2.0.0              pyh9f0ad1d_0    conda-forge
geos                      3.8.0                h33f27b4_0
geotiff                   1.5.1                h5770a2b_1
get_terminal_size         1.0.0                h38e98db_0
gevent                    20.12.0          py38h2bbff1b_1
glob2                     0.7                        py_0
gmpy2                     2.0.8            py38h7edee0f_3
greenlet                  0.4.17           py38he774522_0
h5py                      2.10.0           py38h5e291fa_0
hdf4                      4.2.13               h712560f_2
hdf5                      1.10.4               h7ebc959_0
heapdict                  1.0.1                      py_0
html2text                 2020.1.16                pypi_0    pypi
html5lib                  1.1                        py_0
icc_rt                    2019.0.0             h0cc432a_1
icu                       58.2                 ha925a31_3
idna                      2.10                       py_0
imageio                   2.9.0                      py_0
imagesize                 1.2.0                      py_0
importlib-metadata        2.0.0                      py_1
importlib_metadata        2.0.0                         1
iniconfig                 1.1.1                      py_0
intel-openmp              2020.2                      254
intervaltree              3.1.0                      py_0
ipykernel                 5.3.4            py38h5ca1d4c_0
ipython                   7.19.0           py38hd4e2768_0
ipython_genutils          0.2.0              pyhd3eb1b0_1
ipywidgets                7.5.1                      py_1
isort                     5.6.4                      py_0
itsdangerous              1.1.0                      py_0
jdcal                     1.4.1                      py_0
jedi                      0.17.2           py38haa95532_1
jinja2                    2.11.2                     py_0
joblib                    1.0.0              pyhd3eb1b0_0
jpeg                      9b                   hb83a4c4_2
json5                     0.9.5                      py_0
jsonschema                3.2.0                      py_2
jupyter                   1.0.0                    py38_7
jupyter_client            6.1.7                      py_0
jupyter_console           6.2.0                      py_0
jupyter_core              4.7.0            py38haa95532_0
jupyterlab                2.2.6                      py_0
jupyterlab_pygments       0.1.2                      py_0
jupyterlab_server         1.2.0                      py_0
kealib                    1.4.7                h07cbb95_6
keyring                   21.7.0           py38haa95532_0
kiwisolver                1.3.0            py38hd77b12b_0
krb5                      1.16.4               hc04afaa_0
lazy-object-proxy         1.4.3            py38h2bbff1b_2
libarchive                3.3.3                h0643e63_5
libboost                  1.67.0               hd9e427e_4
libcurl                   7.67.0               h2a8f88b_0
libgdal                   3.0.2                h1155b67_0
libiconv                  1.15                 h1df5818_7
libkml                    1.3.0                he5f2a48_4
liblief                   0.10.1               ha925a31_0
libllvm9                  9.0.1                h21ff451_0
libnetcdf                 4.6.1                h411e497_2
libpng                    1.6.37               h2a8f88b_0
libpq                     11.2                 h3235a2c_0
libsodium                 1.0.18               h62dcd97_0
libspatialindex           1.9.3                h33f27b4_0
libspatialite             4.3.0a               h7ffb84d_0
libssh2                   1.9.0                h7a1dbc1_1
libtiff                   4.1.0                h56a325e_0
libxml2                   2.9.10               hb89e7f3_3
libxslt                   1.1.34               he774522_0
llvmlite                  0.34.0           py38h1a82afc_4
locket                    0.2.0                    py38_1
lxml                      4.6.2            py38h9b66d53_0
lz4-c                     1.8.1.2              h2fa13f4_0
lzo                       2.10                 he774522_2
m2w64-expat               2.1.1                         2    conda-forge
m2w64-gcc-libgfortran     5.3.0                         6
m2w64-gcc-libs            5.3.0                         7
m2w64-gcc-libs-core       5.3.0                         7
m2w64-gettext             0.19.7                        2    conda-forge
m2w64-gmp                 6.1.0                         2
m2w64-libiconv            1.14                          6    conda-forge
m2w64-libwinpthread-git   5.0.0.4634.697f757               2
m2w64-xz                  5.2.2                         2    conda-forge
markupsafe                1.1.1            py38he774522_0
matplotlib                3.3.2                haa95532_0
matplotlib-base           3.3.2            py38hba9282a_0
mccabe                    0.6.1                    py38_1
menuinst                  1.4.16           py38he774522_1
mercantile                1.1.6              pyh9f0ad1d_0    conda-forge
mistune                   0.8.4           py38he774522_1000
mkl                       2020.2                      256
mkl-service               2.3.0            py38h196d8e1_0
mkl_fft                   1.2.0            py38h45dec08_0
mkl_random                1.1.1            py38h47e9c7a_0
mock                      4.0.3              pyhd3eb1b0_0
more-itertools            8.6.0              pyhd3eb1b0_0
mpc                       1.1.0                h7edee0f_1
mpfr                      4.0.2                h62dcd97_1
mpir                      3.0.0                hec2e145_1
mplleaflet                0.0.5                      py_4    conda-forge
mpmath                    1.1.0                    py38_0
msgpack-python            1.0.1            py38h59b6b97_0
msys2-conda-epoch         20160418                      1
multidict                 4.7.6                    pypi_0    pypi
multipledispatch          0.6.0                    py38_0
multitasking              0.0.9                    pypi_0    pypi
munch                     2.5.0                      py_0
mypy_extensions           0.4.3                    py38_0
navigator-updater         0.2.1                    py38_0
nbclient                  0.5.1                      py_0
nbconvert                 6.0.7                    py38_0
nbformat                  5.0.8                      py_0
nest-asyncio              1.4.3              pyhd3eb1b0_0
networkx                  2.3                      pypi_0    pypi
nltk                      3.5                        py_0
nose                      1.3.7           pyhd3eb1b0_1006
notebook                  6.1.5            py38haa95532_0
numba                     0.51.2           py38hf9181ef_1
numexpr                   2.7.1            py38h054117c_0
numpy                     1.19.2           py38hadc3359_0
numpy-base                1.19.2           py38ha3acd2a_0
numpydoc                  1.1.0              pyhd3eb1b0_1
olefile                   0.46                       py_0
openjpeg                  2.3.0                h5ec785f_1
openpyxl                  3.0.5                      py_0
openssl                   1.1.1i               h2bbff1b_0
owslib                    0.21.0             pyhd3eb1b0_0
packaging                 20.8               pyhd3eb1b0_0
pandas                    1.1.5            py38hf11a4ad_0
pandas-datareader         0.9.0                    pypi_0    pypi
pandoc                    2.11                 h9490d1a_0
pandocfilters             1.4.3            py38haa95532_1
paramiko                  2.7.2                      py_0
parso                     0.7.0                      py_0
partd                     1.1.0                      py_0
path                      15.0.1           py38haa95532_0
path.py                   12.5.0                        0
pathlib2                  2.3.5            py38haa95532_2
pathspec                  0.7.0                      py_0
pathtools                 0.1.2                      py_1
patsy                     0.5.1                    py38_0
pcre                      8.44                 ha925a31_0
pep8                      1.7.1                    py38_0
pexpect                   4.8.0              pyhd3eb1b0_3
pickleshare               0.7.5           pyhd3eb1b0_1003
pillow                    8.0.1            py38h4fa10fc_0
pip                       20.3.3           py38haa95532_0
pkginfo                   1.6.1            py38haa95532_0
plotly                    4.12.0                   pypi_0    pypi
pluggy                    0.13.1                   py38_0
ply                       3.11                     py38_0
postgresql                11.2                 h3235a2c_0
powershell_shortcut       0.0.1                         3
proj                      6.2.1                h9f7ef89_0
prometheus_client         0.9.0              pyhd3eb1b0_0
prompt-toolkit            3.0.8                      py_0
prompt_toolkit            3.0.8                         0
psutil                    5.7.2            py38he774522_0
ptyprocess                0.6.0              pyhd3eb1b0_2
py                        1.10.0             pyhd3eb1b0_0
py-lief                   0.10.1           py38ha925a31_0
pyarrow                   1.0.1                    pypi_0    pypi
pycodestyle               2.6.0                      py_0
pycosat                   0.6.3            py38h2bbff1b_0
pycparser                 2.20                       py_2
pycurl                    7.43.0.5         py38h7a1dbc1_0
pydocstyle                5.1.1                      py_0
pyepsg                    0.4.0                      py_0
pyerfa                    1.7.1.1          py38h2bbff1b_1
pyflakes                  2.2.0                      py_0
pygments                  2.7.3              pyhd3eb1b0_0
pykdtree                  1.3.1           py38h8c2d366_1002
pylint                    2.6.0                    py38_0
pyls-black                0.4.6                hd3eb1b0_0
pyls-spyder               0.3.0              pyhd3eb1b0_0
pynacl                    1.4.0            py38h62dcd97_1
pyodbc                    4.0.30           py38ha925a31_0
pyopenssl                 20.0.1             pyhd3eb1b0_1
pyparsing                 2.4.7                      py_0
pyproj                    3.0.0.post1              pypi_0    pypi
pyqt                      5.9.2            py38ha925a31_4
pyreadline                2.1                      py38_1
pyrsistent                0.17.3           py38he774522_0
pyshp                     2.1.2                      py_0
pysocks                   1.7.1            py38haa95532_0
pytables                  3.6.1            py38ha5be198_0
pytest                    6.2.1            py38haa95532_0
python                    3.8.5                h5fd99cc_1
python-dateutil           2.8.1                      py_0
python-jsonrpc-server     0.4.0                      py_0
python-language-server    0.36.2             pyhd3eb1b0_0
python-libarchive-c       2.9                        py_0
python_abi                3.8                      1_cp38    conda-forge
pytz                      2020.4             pyhd3eb1b0_0
pywavelets                1.1.1            py38he774522_2
pywin32                   227              py38he774522_1
pywin32-ctypes            0.2.0                 py38_1000
pywinpty                  0.5.7                    py38_0
pyyaml                    5.3.1            py38he774522_1
pyzmq                     20.0.0           py38hd77b12b_1
qdarkstyle                2.8.1                      py_0
qt                        5.9.7            vc14h73c81de_0
qtawesome                 1.0.1                      py_0
qtconsole                 4.7.7                      py_0
qtpy                      1.9.0                      py_0
rasterio                  1.1.1            py38h2617b1b_0    conda-forge
regex                     2020.11.13       py38h2bbff1b_0
requests                  2.25.1             pyhd3eb1b0_0
retrying                  1.3.3                    pypi_0    pypi
rope                      0.18.0                     py_0
rtree                     0.9.4            py38h21ff451_1
ruamel-yaml               0.16.12                  pypi_0    pypi
ruamel-yaml-clib          0.2.2                    pypi_0    pypi
ruamel_yaml               0.15.87          py38he774522_1
scikit-image              0.17.2           py38h1e1f486_0
scikit-learn              0.23.2           py38h47e9c7a_0
scipy                     1.5.2            py38h14eb087_0
seaborn                   0.11.1             pyhd3eb1b0_0
selenium                  3.141.0                  pypi_0    pypi
send2trash                1.5.0              pyhd3eb1b0_1
setuptools                51.0.0           py38haa95532_2
shapely                   1.7.0            py38h68b7539_1    conda-forge
simplegeneric             0.8.1                    py38_2
singledispatch            3.4.0.3                 py_1001
sip                       4.19.13          py38ha925a31_0
six                       1.15.0           py38haa95532_0
snappy                    1.1.8                h33f27b4_0
snowballstemmer           2.0.0                      py_0
snuggs                    1.4.7                      py_0
sortedcollections         1.2.1                      py_0
sortedcontainers          2.3.0              pyhd3eb1b0_0
soupsieve                 2.1                pyhd3eb1b0_0
sphinx                    3.4.0              pyhd3eb1b0_0
sphinxcontrib             1.0                      py38_1
sphinxcontrib-applehelp   1.0.2                      py_0
sphinxcontrib-devhelp     1.0.2                      py_0
sphinxcontrib-htmlhelp    1.0.3                      py_0
sphinxcontrib-jsmath      1.0.1                      py_0
sphinxcontrib-qthelp      1.0.3                      py_0
sphinxcontrib-serializinghtml 1.1.4                      py_0
sphinxcontrib-websupport  1.2.4                      py_0
spyder                    4.2.0            py38haa95532_0
spyder-kernels            1.10.1           py38haa95532_0
sqlalchemy                1.3.21           py38h2bbff1b_0
sqlite                    3.33.0               h2a8f88b_0
statsmodels               0.12.1           py38h2bbff1b_0
sympy                     1.7.1            py38haa95532_0
tbb                       2018.0.5             he980bc4_0
tblib                     1.7.0                      py_0
terminado                 0.9.1                    py38_0
testpath                  0.4.4                      py_0
threadpoolctl             2.1.0              pyh5ca1d4c_0
three-merge               0.1.1              pyhd3eb1b0_0
tifffile                  2020.10.1        py38h8c2d366_2
tiledb                    1.6.3                h7b000aa_0
tk                        8.6.10               he774522_0
toml                      0.10.1                     py_0
toolz                     0.11.1                     py_0
tornado                   6.1              py38h2bbff1b_0
tqdm                      4.54.1             pyhd3eb1b0_0
traitlets                 5.0.5                      py_0
typed-ast                 1.4.1            py38he774522_0
typing_extensions         3.7.4.3                    py_0
ujson                     4.0.1            py38ha925a31_0
unicodecsv                0.14.1                   py38_0
urllib3                   1.26.2             pyhd3eb1b0_0
vc                        14.2                 h21ff451_1
vega_datasets             0.8.0                      py_0    conda-forge
vs2015_runtime            14.27.29016          h5e58377_2
watchdog                  0.10.4           py38haa95532_0
wcwidth                   0.2.5                      py_0
webencodings              0.5.1                    py38_1
werkzeug                  1.0.1                      py_0
wheel                     0.36.2             pyhd3eb1b0_0
widgetsnbextension        3.5.1                    py38_0
win_inet_pton             1.1.0            py38haa95532_0
win_unicode_console       0.5                      py38_0
wincertstore              0.2                      py38_0
winpty                    0.4.3                         4
wordcloud                 1.8.1                    pypi_0    pypi
wrapt                     1.11.2           py38he774522_0
xbbg                      0.7.0                    pypi_0    pypi
xerces-c                  3.2.3                ha925a31_0
xlrd                      2.0.1              pyhd3eb1b0_0
xlsxwriter                1.3.7                      py_0
xlwings                   0.21.4           py38haa95532_0
xlwt                      1.3.0                    py38_0
xmltodict                 0.12.0                     py_0
xz                        5.2.5                h62dcd97_0
yaml                      0.2.5                he774522_0
yapf                      0.30.0                     py_0
yarl                      1.6.0                    pypi_0    pypi
yfinance                  0.1.55                   pypi_0    pypi
zeromq                    4.3.3                ha925a31_3
zict                      2.0.0                      py_0
zipp                      3.4.0              pyhd3eb1b0_0
zlib                      1.2.11               h62dcd97_4
zope                      1.0                      py38_1
zope.event                4.5.0                    py38_0
zope.interface            5.2.0            py38h2bbff1b_0
zstd                      1.3.7                h508b16e_0

@jorisvandenbossche
Copy link
Member

You indeed have a mixture of defaults conda packages, conda-forge packags and PyPI packages (pip-installed wheels). Especially pyproj seems to be installed with pip, while there is also proj (and probably an incompatible version) installed from the defaults channel.

See https://geopandas.readthedocs.io/en/latest/getting_started/install.html#creating-a-new-environment on how to create a consistent environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installation Issues related to get a working installation
Projects
None yet
Development

No branches or pull requests

3 participants