Skip to content

Maak een .exe bestand aan#21

Closed
Tomeriko96 wants to merge 3 commits intomainfrom
10-opportunity-executables
Closed

Maak een .exe bestand aan#21
Tomeriko96 wants to merge 3 commits intomainfrom
10-opportunity-executables

Conversation

@Tomeriko96
Copy link
Copy Markdown
Contributor

Deze PR introduceert een github workflow die een executable file aanmaakt voor dit project gebaseerd op main.R. Daarnaast maakt de workflow een release aan. Dit wordt getriggered door het maken van een nieuwe tag.

git tag v1.0.0
git push origin v1.0.0

Zie output in de actions tab https://github.com/cedanl/studentprognose/actions/workflows/publish-windows-exe.yml en de nieuw aangemaakte release: https://github.com/cedanl/studentprognose/releases. Note: de release kan je daarna nog editen.

Graag reviewen op gewenst gedrag en dat het draait op Windows, wellicht het beste deze PR pas te mergen nadat de grote bugs er uit zijn gehaald.

@Tomeriko96 Tomeriko96 linked an issue Feb 13, 2026 that may be closed by this pull request
@aslamht
Copy link
Copy Markdown
Collaborator

aslamht commented Feb 16, 2026

Installeren van .exe werkt. Krijg wel de volgende error melding:

Traceback (most recent call last):
  File "main.py", line 7, in <module>
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "pyimod02_importers.py", line 457, in exec_module
  File "scripts\dataholder\individual.py", line 8, in <module>
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "pyimod02_importers.py", line 457, in exec_module
  File "xgboost\__init__.py", line 6, in <module>
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "pyimod02_importers.py", line 457, in exec_module
  File "xgboost\tracker.py", line 9, in <module>
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "pyimod02_importers.py", line 457, in exec_module
  File "xgboost\core.py", line 269, in <module>
  File "xgboost\core.py", line 194, in _load_lib
  File "xgboost\libpath.py", line 73, in find_lib_path
xgboost.libpath.XGBoostLibraryNotFound: Cannot find XGBoost Library in the candidate path.  List of candidates:
- C:\Users\Aslam\AppData\Local\Temp\_MEI234202\xgboost\lib\xgboost.dll
- C:\Users\Aslam\AppData\Local\Temp\_MEI234202\xgboost\..\..\lib\xgboost.dll
- C:\Users\Aslam\AppData\Local\Temp\_MEI234202\lib\xgboost.dll
- C:\Users\Aslam\AppData\Local\Temp\_MEI234202\bin\xgboost.dll
- C:\Users\Aslam\AppData\Local\Temp\_MEI234202\Library\xgboost.dll
- C:\Users\Aslam\AppData\Local\Temp\_MEI234202\Library\bin\xgboost.dll
- C:\Users\Aslam\AppData\Local\Temp\_MEI234202\Library\lib\xgboost.dll
- C:\Users\Aslam\AppData\Local\Temp\_MEI234202\Library\mingw-w64\xgboost.dll
- C:\Users\Aslam\AppData\Local\Temp\_MEI234202\Library\mingw-w64\bin\xgboost.dll
- C:\Users\Aslam\AppData\Local\Temp\_MEI234202\Library\mingw-w64\lib\xgboost.dll
XGBoost Python package path: C:\Users\Aslam\AppData\Local\Temp\_MEI234202\xgboost
sys.base_prefix: C:\Users\Aslam\AppData\Local\Temp\_MEI234202
See: https://xgboost.readthedocs.io/en/stable/install.html for installing XGBoost.
[PYI-27508:ERROR] Failed to execute script 'main' due to unhandled exception!

@Tomeriko96
Copy link
Copy Markdown
Contributor Author

Installeren van .exe werkt. Krijg wel de volgende error melding:

Traceback (most recent call last):
  File "main.py", line 7, in <module>
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "pyimod02_importers.py", line 457, in exec_module
  File "scripts\dataholder\individual.py", line 8, in <module>
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "pyimod02_importers.py", line 457, in exec_module
  File "xgboost\__init__.py", line 6, in <module>
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "pyimod02_importers.py", line 457, in exec_module
  File "xgboost\tracker.py", line 9, in <module>
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "pyimod02_importers.py", line 457, in exec_module
  File "xgboost\core.py", line 269, in <module>
  File "xgboost\core.py", line 194, in _load_lib
  File "xgboost\libpath.py", line 73, in find_lib_path
xgboost.libpath.XGBoostLibraryNotFound: Cannot find XGBoost Library in the candidate path.  List of candidates:
- C:\Users\Aslam\AppData\Local\Temp\_MEI234202\xgboost\lib\xgboost.dll
- C:\Users\Aslam\AppData\Local\Temp\_MEI234202\xgboost\..\..\lib\xgboost.dll
- C:\Users\Aslam\AppData\Local\Temp\_MEI234202\lib\xgboost.dll
- C:\Users\Aslam\AppData\Local\Temp\_MEI234202\bin\xgboost.dll
- C:\Users\Aslam\AppData\Local\Temp\_MEI234202\Library\xgboost.dll
- C:\Users\Aslam\AppData\Local\Temp\_MEI234202\Library\bin\xgboost.dll
- C:\Users\Aslam\AppData\Local\Temp\_MEI234202\Library\lib\xgboost.dll
- C:\Users\Aslam\AppData\Local\Temp\_MEI234202\Library\mingw-w64\xgboost.dll
- C:\Users\Aslam\AppData\Local\Temp\_MEI234202\Library\mingw-w64\bin\xgboost.dll
- C:\Users\Aslam\AppData\Local\Temp\_MEI234202\Library\mingw-w64\lib\xgboost.dll
XGBoost Python package path: C:\Users\Aslam\AppData\Local\Temp\_MEI234202\xgboost
sys.base_prefix: C:\Users\Aslam\AppData\Local\Temp\_MEI234202
See: https://xgboost.readthedocs.io/en/stable/install.html for installing XGBoost.
[PYI-27508:ERROR] Failed to execute script 'main' due to unhandled exception!

@Muhammet369 komt deze error jou bekend voor?

@Muhammet369
Copy link
Copy Markdown
Contributor

@Tomeriko96 Ik heb geen Windows OS. Ik zal het binnen installeren zodat ik het ook kan testen

@CorneeldH CorneeldH requested review from CorneeldH and removed request for Muhammet369, aslamht and radboudir March 26, 2026 13:19
@CorneeldH
Copy link
Copy Markdown
Contributor

BIj mij op Parallels beef deze exe https://github.com/cedanl/studentprognose/releases/tag/v1.0.1002 bij eerste poging hangen.
Na als admin het op te starten, kreeg ik wel output (zie onder). Een xgboost error, mogelijk wordt hier niet op gevalideerd bij het installeren (misschien is het ook al verholpen).

Zelf denk ik dat een .exe nu geen prio heeft, vanwege die admin rechten. Ook is de vraag of we dit per repo willen doen. Persoonlijk vind ik het om die redenen niet direct iets voor main of een release, maar ik heb hier geen sterke mening over. Als anderen denken dat dit wel waarde toevoegt dan vind ik het prima @Muhammet369 @Tomeriko96

Traceback (most recent call last):
  File "main.py", line 7, in <module>
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "pyimod02_importers.py", line 457, in exec_module
  File "scripts\dataholder\individual.py", line 8, in <module>
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "pyimod02_importers.py", line 457, in exec_module
  File "xgboost\__init__.py", line 6, in <module>
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "pyimod02_importers.py", line 457, in exec_module
  File "xgboost\tracker.py", line 9, in <module>
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "pyimod02_importers.py", line 457, in exec_module
  File "xgboost\core.py", line 269, in <module>
  File "xgboost\core.py", line 194, in _load_lib
  File "xgboost\libpath.py", line 73, in find_lib_path
xgboost.libpath.XGBoostLibraryNotFound: Cannot find XGBoost Library in the candidate path.  List of candidates:
- C:\Users\CORNEE~1\AppData\Local\Temp\_MEI11082\xgboost\lib\xgboost.dll
- C:\Users\CORNEE~1\AppData\Local\Temp\_MEI11082\xgboost\..\..\lib\xgboost.dll
- C:\Users\CORNEE~1\AppData\Local\Temp\_MEI11082\lib\xgboost.dll
- C:\Users\CORNEE~1\AppData\Local\Temp\_MEI11082\bin\xgboost.dll
- C:\Users\CORNEE~1\AppData\Local\Temp\_MEI11082\Library\xgboost.dll
- C:\Users\CORNEE~1\AppData\Local\Temp\_MEI11082\Library\bin\xgboost.dll
- C:\Users\CORNEE~1\AppData\Local\Temp\_MEI11082\Library\lib\xgboost.dll
- C:\Users\CORNEE~1\AppData\Local\Temp\_MEI11082\Library\mingw-w64\xgboost.dll
- C:\Users\CORNEE~1\AppData\Local\Temp\_MEI11082\Library\mingw-w64\bin\xgboost.dll
- C:\Users\CORNEE~1\AppData\Local\Temp\_MEI11082\Library\mingw-w64\lib\xgboost.dll
XGBoost Python package path: C:\Users\CORNEE~1\AppData\Local\Temp\_MEI11082\xgboost
sys.base_prefix: C:\Users\CORNEE~1\AppData\Local\Temp\_MEI11082
See: https://xgboost.readthedocs.io/en/stable/install.html for installing XGBoost.
[PYI-3352:ERROR] Failed to execute script 'main' due to unhandled exception!

@CorneeldH CorneeldH requested review from Muhammet369 and removed request for CorneeldH April 8, 2026 17:43
@CorneeldH CorneeldH removed the request for review from Muhammet369 April 8, 2026 17:44
@Muhammet369 Muhammet369 deleted the 10-opportunity-executables branch April 14, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Opportunity: Executables

4 participants