Python Forum
Multimode imports fine as script but not after compiling into exe
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multimode imports fine as script but not after compiling into exe
#1
Hi guys!

I have a program I have been working on for a few months now and it runs fine in Pycharm as a script. However, after I use auto_py_to_exe to build it (which has worked before) I get this message in the command prompt:

Error:
ImportError: cannot import name 'multimode' from 'statistics' (C:\Users\joshu\output\OrderLog\statistics.pyc) [15200] Failed to execute script OrderLog
The multimode import works fine in pycharm but not here

I would be grateful if you can help me :)

I've fixed it!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Imports that work with Python 3.8 fail with 3.9 and 3.10 4slam 1 2,543 Mar-11-2022, 01:50 PM
Last Post: snippsat
  How to fine tune cutecharts? Gigux 1 1,205 Jan-28-2022, 05:41 PM
Last Post: Larz60+
  For Loop Works Fine But Append For Pandas Doesn't Work knight2000 2 1,930 Dec-18-2021, 02:38 AM
Last Post: knight2000
  Imports in my first package cuppajoeman 1 1,912 Jun-28-2021, 09:06 AM
Last Post: snippsat
  script with imports works but pytest gives "ModuleNotFoundError"? Hpao 0 1,544 Jun-27-2021, 08:30 PM
Last Post: Hpao
  Compiling (PyInstaller issues) TheHolyPyGrenade 1 1,881 Apr-11-2021, 08:30 PM
Last Post: snippsat
  Help wanted with python imports petros21 3 2,480 Apr-07-2021, 07:16 PM
Last Post: snippsat
Question How to include Modules not found (conditional imports) in my setup.py when I want to cff 0 3,765 Mar-17-2021, 11:57 AM
Last Post: cff
  threading across imports Nickd12 2 2,104 Nov-09-2020, 01:59 AM
Last Post: Nickd12
  Compiling SlicerCAT flaviu2 1 1,804 Sep-21-2020, 08:38 AM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020