Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 13891

Pyinstaller not importing usercreated modules

$
0
0

I'm trying to compile my python app. The app has 5 scripts and a data folder.

  1. Three of those scripts are essentially modules
  2. The main file imports the three other scripts and
  3. There's a gui that imports the main script.
  4. The data folder contains CSVs that I'll be using during processing.

I've tested the app and it works fine calling gui.py from the CLI.

But there are two problems:

  1. When I compile the app and run the compiled app, I get an error along the lines of:"failed to execute because no module named generator," which is the name of my main file.

  2. After we solve the first problem, I'm not sure the app is packaging all the extra data I need (the csvs in the data folder.)

One thing at a time, though: how can I get the compiled app to recognize my modules?

I already have an "init.py" file in my directory.What should I do?

Any and all help is appreciated.Thank you.


Viewing all articles
Browse latest Browse all 13891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>