Python to Executable File not Running

jaredmoodley
Comes here often

Python to Executable File not Running

Hi,

 

I developed a python code to generate a report of  the client vpn usage for the past 30 days. It runs and works perfectly when I execute via visual studio, but when I convert it to an executable file it does not run.

 

I have added the meraki library to the path as well, however, I keep getting this error.

 

Please see below:

 

jaredmoodley_0-1653557487986.png

 

3 Replies 3
AutomationDude
Building a reputation

Hey man sorry to be useless but this definitely isn't a Meraki library problem and seems to be related to Pyinstaller. I'd dig into their docs or post this on stackoverflow.

jaredmoodley
Comes here often

Okay cool. Thank you.

sungod
Kind of a big deal

As above, sounds like an issue with your install/set-up, I'd guess the search path in the environment is not set correctly.

 

I'm not familiar with Python on VS/Windows, but try checking the PYTHONPATH setting, see here in the Windows section...

 

https://bic-berkeley.github.io/psych-214-fall-2016/using_pythonpath.html

 

...this page also includes a simple script to tell you the value of the variable, if you run it in VS and then as executable, see if the answers differ.

 

Get notified when there are additional replies to this discussion.