Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Alteryx Python Tool - Import Error

pchong
8 - Asteroid

Hi Community,

 

I am having difficulties installing and importing some packages into Python Tool.
So I installed geopy & geopandas packages.

 

pchong_0-1639682531189.png

pchong_1-1639682565042.png

 

However, when I tried to import geopandas, I encountered an ImportError.
I do not entirely understand the error message and hope someone can assist on how to fix it.

pchong_2-1639682627881.png

 

Thanks in advance !

 

 

1 REPLY 1
TheOC
15 - Aurora
15 - Aurora

hey @pchong 

I believe i've managed to fix this, by forcing an upgrade to both pandas and Geopandas with the following:
Package.installPackages(package='pandas',install_type='install --upgrade')
Package.installPackages(package='geopandas',install_type='install --upgrade')

I believe the issue was that the current version of pandas used on the python tool is too outdated to use with Geopandas.

Please give this a try and let me know.

Cheer,s
TheOC


Bulien
Labels