Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyInstaller fails when upgrading from Pyomo 6.7.1->6.7.3 #3283

Open
vpranjal opened this issue Jun 4, 2024 · 0 comments
Open

PyInstaller fails when upgrading from Pyomo 6.7.1->6.7.3 #3283

vpranjal opened this issue Jun 4, 2024 · 0 comments
Labels

Comments

@vpranjal
Copy link

vpranjal commented Jun 4, 2024

Summary

The executable developed via pyinstaller on Pyomo 6.7.3 does not work properly and errors out on execution.

Steps to reproduce the issue

Ran a pyomo 6.7.1 model and tried to build an executable with .spec file (iteratively adding the missing hidden imports). This was successful and the executable worked as expected. However, when upgrading to 6.7.3 on the same project the executable does not work as expected and throws error.

Error Message

When running executable developed with 6.7.3:

File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 921, in _load_unlocked
File "", line 813, in module_from_spec
File "pyomo\common\dependencies.py", line 468, in create_module
AttributeError: 'NoneType' object has no attribute 'create_module'
[10928] Failed to execute script 'main' due to unhandled exception!

Information on your system

Pyomo version: 6.7.1 and 6.7.3
Python version: 3.12
Operating system: Windows 11
How Pyomo was installed (PyPI, conda, source): PyPI
Solver (if applicable): Highs

Additional information

Reverting as on now to 6.7.1 for executable developments, however would like this to work on 6.7.3 as well.
Tested on two different PCs to ensure this is replicable and the same issue persisted with 6.7.3 (while 6.7.1 worked fine) with PyInstaller.

@vpranjal vpranjal added the bug label Jun 4, 2024
@vpranjal vpranjal changed the title PyInstaller fails when upgrading from 6.7.1->6.7.3 Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 participant