Exe cannot open4/7/2024 How can I make the arcpy working by compiling my python script (Parcel_Account_2. However, when I added import arcpy into my HelloWorld.py, re-ran all commands, I got the exact same traceback and ImportError message. I created a simple python script named as HelloWorld.py with one line below: I just did a test, which may give more information. I successfully compiled my Parcel_Account_2.py by py2exe, but when I ran Parcel_Account_2.exe, and got the traceback importError in the screenshot. ![]() Those arcpy files shown on the above screenshot can be found under C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy. I still wonder Why the compiled exe couldn't only find those ESRI arcpy files? My python script also imports a third-party dll (cx_Oracle) which has been successfully pakaged into dist folder. Originally, I sent this request to ESRI support, and told " Unfortunately, py2exe is not an Esri product and Add 'file://server name' (without quotes) to the Local intranet zone, 'server name' is the name of your server where the shared files reside. Next, open IE and go Tools -> Internet Options->Security tab->Local intranet->Sites. The traceback information seems showing some arcpy files cannot be found. Besides, close all security software or Anti-virus software. ![]() Now, I used py2exe to create an exe file (Parcel_Account_2.exe), which is not working. I have created a python script (Parcel_Account_2.py), which
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |