Does invalid module named error lead to ModuleNotFoundError

56 views
Skip to first unread message

Robert Gottesman

unread,
Jul 8, 2019, 2:54:43 AM7/8/19
to PyInstaller
I am trying to wade through my errors with PyInstaller and was doing a decent job until I ran across this error.

ModuleNotFoundError: No module named 'concurrent.futures._base'
[15692] Failed to execute script run

I had seen that kind of error before but adding paths to my spec file seemed to work. But not in this case.

When I looked at the warn-run.txt file I saw this message as well

invalid module named concurrent.futures._base - imported by concurrent.futures (top-level), concurrent.futures.thread (top-level), concurrent.futures.process (top-level), C:\Users\suppo\Documents\Technology\Programming\Python\Projects\WikiExporter\run.py (top-level)

I assume this is the cause of my ModuleNotFoundError.  I have tried adding to my hiddenimports spec entry as follows: hiddenimports=['concurrent.futures'].  But that did not change the message.  Adding log-level=DEBUG also did not yield any info.

I have attached my warn-run.txt file.. The full error message is below.

  File "run.py", line 1, in <module>
  File "c:\pythons\python3.7\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
    exec(bytecode, module.__dict__)
  File "WikiExporter\RESOMain.py", line 9, in <module>
    from WikiExporter.ddwiki_exporter import DDWikiExporter, EXPGeneratedError
  File "c:\pythons\python3.7\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
    exec(bytecode, module.__dict__)
  File "WikiExporter\ddwiki_exporter.py", line 10, in <module>
    from WikiExporter.confluence_to_xml import DDWikiConfluenceToXML, CTXGeneratedError
  File "c:\pythons\python3.7\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
    exec(bytecode, module.__dict__)
  File "WikiExporter\confluence_to_xml.py", line 7, in <module>
    from WikiExporter.confluence_api_wrapper import ConfluenceConnection, CAWGeneratedError
  File "c:\pythons\python3.7\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
    exec(bytecode, module.__dict__)
  File "WikiExporter\confluence_api_wrapper.py", line 6, in <module>
    from PythonConfluenceAPI import ConfluenceAPI  # PythonConfluenceAPI: https://goo.gl/C1Ce6t
  File "c:\pythons\python3.7\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\PythonConfluenceAPI\__init__.py", line 12, in <module>
  File "c:\pythons\python3.7\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\PythonConfluenceAPI\cfapi.py", line 9, in <module>
  File "c:\pythons\python3.7\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\requests_futures\sessions.py", line 23, in <module>
  File "c:\pythons\python3.7\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
    exec(bytecode, module.__dict__)
  File "site-packages\concurrent\futures\__init__.py", line 8, in <module>
ModuleNotFoundError: No module named 'concurrent.futures._base'
[15692] Failed to execute script run


Can someone give me some hints of where I go from here?

warn-run.txt

Robert Gottesman

unread,
Jul 10, 2019, 5:08:17 AM7/10/19
to PyInstaller
Forgot to mention, I am running the newest version (3.5) on Windows 10.

Robert Gottesman

unread,
Jul 23, 2019, 6:36:23 AM7/23/19
to PyInstaller
ok, my problem is fixed (but not with an elegant solution).  Testing modules individually had PyInstaller working  .. however, together as a total package I was getting errors as listed.  Digging into this deeper there seemed to be a namespace issue on how one module was setup.  I worked around by just not using that module in error.
Reply all
Reply to author
Forward
0 new messages