7-Zip could not be found in the PATH environment variable

1343
2
07-17-2021 08:12 PM
DimasPerceka
Emerging Contributor

I dont know what exactly happen, a already set 7zip in my environment but if i run some script there are no 7zip in my environment. 
here the error message :

(arcgispro-py3) C:\Users\User\Documents>python coral_reef_exercise_online.py https://downloads.esri.com/LearnArcGIS/update-real-time-data-with-python/vs_polygons.json C:\Temp\Work.gdb c7bdbfb02684459bae0e16e7bf3dbc5e C:\Temp\Coral_Reef_Watch.sd Coral_Reef_Watch
Starting workGDB...
Downloading data...
Creating feature classes...
Deploying...
Traceback (most recent call last):
  File "coral_reef_exercise_online.py", line 115, in <module>
    feedRoutine (url, workGDB, itemid, original_sd_file, service_name)
  File "coral_reef_exercise_online.py", line 63, in feedRoutine
    deployLogic(workGDB, itemid, original_sd_file, service_name)
  File "coral_reef_exercise_online.py", line 88, in deployLogic
    raise Exception('7-Zip could not be found in the PATH environment variable')
Exception: 7-Zip could not be found in the PATH environment variable

 

and this message proof that I have 7zip installed in my environment

DimasPerceka_0-1626577896600.png

 

Im very thanks if anyone can help me to solve this problem

0 Kudos
2 Replies
curtvprice
MVP Esteemed Contributor

You ran 7z from the windows command prompt. Have you tried seeing if the PATH variable is set correctly within the arcgispro-py3 environment? 

This looks like part of a tutorial of some kind so my guess is you missed a step in the tutorial to set up this path within the arcgis-py3 environment.

0 Kudos
dannyjp67
New Contributor

Have you found an answer

0 Kudos