"Import Error" in PyCharm

816
3
08-11-2019 07:59 PM
Labels (1)
IliaNeudakhin
New Contributor

Hello! I try to do web course "Python for Everyone" and have a problem on the step "Exercise: Run Python scripts".

I can't finish "Step 4: Run a script in PyCharm", because I get an error "ImportError: DLL load failed: %1 не является приложением Win32". If translate "ImportError: DLL load failed: %1 is not a valid Win32 application".

Please, explain, what I have to do (I have 64 bit Windows 7, 64 bit ArcGIS Pro 2.4.0 and last version of 64 bit PyCharm)?
Thank you.

0 Kudos
3 Replies
IliaNeudakhin
New Contributor

It is fixed after I remove the  'PYTHONPATH' variable with references to the ArcGIS 32-bit installation of Python. 

According to this article:
import ArcPy into ArcGIS Pro error:  https://support.esri.com/en/technical-article/000019997

0 Kudos
JoeBorgione
MVP Emeritus

Can you open pycharm first, load your script into it and then run it?

That should just about do it....
0 Kudos
IliaNeudakhin
New Contributor

Joe! Thank you for the reply, I fix this problem)))

0 Kudos