Closed ThorvaldAagaard closed 11 months ago
Hi,
Yeah that is valid. You can avoid loading dds by just commenting out the large try block at the top of _dds/__init__.py
which picks up the library (and then will probably get an AttributeError
at the point you try and call anything which uses it which should solve your problem), but this is probably something which might be nice to be made switchable, perhaps an env var ENDPLAY_NO_DDS
or something?
I am using dds in other solutions and there is no problem including it
Lorand Dali has this implementation: https://github.com/lorserker/ben/blob/main/src/ddsolver/dds.py but I am not sure if that requires the Anaconda-environment.
BUT I think the problem might be PyInstaller not picking up the DLL, and will make some more testing and return
Yes, I was right. I found a way to add the dll, so now it is working
pyinstaller --add-binary "C:\Python311\Lib\site-packages\endplay\_dds\dds.dll;." TMPbn2LinVG.py -F --onefile
I have written a small application, that is using Endplay, and wrapped that application in a standalone executable.
When I try to execute the application I get this error
Now before I start the compiler it would be more interesting if I could just avoid loading dds as I am not using the dds at all.
My platform is: ('64bit', 'WindowsPE') AMD64