can't freeze db2 python binding into executable2019 Community Moderator ElectionCalling an external command in PythonWhat are metaclasses in Python?Is there a way to run Python on Android?Finding the index of an item given a list containing it in PythonDifference between append vs. extend list methods in PythonHow can I safely create a nested directory in Python?Does Python have a ternary conditional operator?How to get the current time in PythonHow can I make a time delay in Python?Does Python have a string 'contains' substring method?
Find longest word in a string: are any of these algorithms good?
Does "Until when" sound natural for native speakers?
What Happens when Passenger Refuses to Fly Boeing 737 Max?
Declaring and defining template, and specialising them
Could you please stop shuffling the deck and play already?
Counting all the hearts
Does a warlock using the Darkness/Devil's Sight combo still have advantage on ranged attacks against a target outside the Darkness?
How can I ensure my trip to the UK will not have to be cancelled because of Brexit?
What is the magic ball of every day?
Vocabulary for giving just numbers, not a full answer
Do I really need to have a scientific explanation for my premise?
meaning and function of 幸 in "则幸分我一杯羹"
Word for a person who has no opinion about whether god exists
What problems would a superhuman have whose skin is constantly hot?
In the late 1940’s to early 1950’s what technology was available that could melt a LOT of ice?
In the quantum hamiltonian, why does kinetic energy turn into an operator while potential doesn't?
Are babies of evil humanoid species inherently evil?
How can The Temple of Elementary Evil reliably protect itself against kinetic bombardment?
Reverse string, can I make it faster?
How do I express some one as a black person?
Is "history" a male-biased word ("his+story")?
Filtering SOQL results with optional conditionals
An alternative proof of an application of Hahn-Banach
What's the "normal" opposite of flautando?
can't freeze db2 python binding into executable
2019 Community Moderator ElectionCalling an external command in PythonWhat are metaclasses in Python?Is there a way to run Python on Android?Finding the index of an item given a list containing it in PythonDifference between append vs. extend list methods in PythonHow can I safely create a nested directory in Python?Does Python have a ternary conditional operator?How to get the current time in PythonHow can I make a time delay in Python?Does Python have a string 'contains' substring method?
I'm using a Python program with PyQt based GUI, to connect to a database, everyting worked good while it's python script, but got problem while trying to compile it
https://github.com/pyinstaller/pyinstaller/
https://pypi.org/project/ibm_db/
such DB2 Python binding / connector got .dll / .pyd files, that failed to link
code piece
try:
import ibm_db
import ibm_db_dbi
logger.info("module loaded")
logger.info("ibm_db loaded from %s" % ibm_db.__file__)
logger.info("ibm_db_dbi loaded from %s" % ibm_db_dbi.__file__)
except:
logger.warn("failed to load db2 related modules")
logger.warn(traceback.format_exc())
try:
logger.info("environment variable are: %s" % str(os.environ))
except:
logger.warn(traceback.format_exc())
when execute as script
2019-03-06 14:22:39,032 | INFO: hello
D: dynamic load ibm_db from C:Python27libsite-packagesibm_db_dllsibm_db.dll
2019-03-06 14:22:39,825 | INFO: module loaded
2019-03-06 14:22:39,825 | INFO: ibm_db loaded from C:Python27libsite-packagesibm_db_dllsibm_db.dll
2019-03-06 14:22:39,825 | INFO: ibm_db_dbi loaded from C:Python27libsite-packagesibm_db_dbi.pyc
2019-03-06 14:22:39,825 | INFO: connecting ["DATABASE=testdb;HOSTNAME=172.25.31.153;PORT=50000;PROTOCOL=TCPIP;UID=db2inst1;PWD=password;", "", ""]
2019-03-06 14:22:40,776 | INFO: query SELECT * from SYSIBM.TABLES FETCH FIRST 5 ROWS ONLY
2019-03-06 14:22:40,776 | INFO: 'TABLE_TYPE': u'BASE TABLE', 'TABLE_SCHEMA': u'SYSIBM ', 'IS_INSERTABLE_INTO': u'YES', 'USER_DEFINED_TYPE_SCHEMA': None, 'TABLE_NAME': u'SYSTABLES', 'USER_DEFINED_TYPE_CATALOG': None, 'SELF_REFERENCING_COLUMN_NAME': None, 'TABLE_CATALOG': u'TESTDB', 'USER_DEFINED_TYPE_NAME': None, 'REFERENCE_GENERATION': None
when compiled using pyinstaller
C:Usersjack.wu>disttest_db2test_db2.exe
2019-03-06 14:23:17,769 | INFO: hello
D: dynamic load ibm_db from C:Usersjack.wudisttest_db2ibm_db_dllsibm_db.dll
2019-03-06 14:23:17,770 | WARNING: failed to load db2 related modules
2019-03-06 14:23:17,778 | WARNING: Traceback (most recent call last):
File "test_db2.py", line 27, in <module>
import ibm_db
File "C:Python27Libsite-packagesPyInstallerloaderpyimod03_importers.py", line 395, in load_module
exec(bytecode, module.__dict__)
File "site-packagesibm_db.py", line 12, in <module>
File "site-packagesibm_db.py", line 11, in __bootstrap__
ImportError: DLL load failed: The specified module could not be found.
I've tried few parameters like --add-binary
or --hidden-import
, both did not work, any idea / clue ?
[update 20190307] this problem mostly disappeard after run python setup.py install
of ibm_db, instead of just extract the folder statically and put it at same folder. the discussion happened at latter situation, lower priority, thanks for your time :)
python compilation db2 pyinstaller
add a comment |
I'm using a Python program with PyQt based GUI, to connect to a database, everyting worked good while it's python script, but got problem while trying to compile it
https://github.com/pyinstaller/pyinstaller/
https://pypi.org/project/ibm_db/
such DB2 Python binding / connector got .dll / .pyd files, that failed to link
code piece
try:
import ibm_db
import ibm_db_dbi
logger.info("module loaded")
logger.info("ibm_db loaded from %s" % ibm_db.__file__)
logger.info("ibm_db_dbi loaded from %s" % ibm_db_dbi.__file__)
except:
logger.warn("failed to load db2 related modules")
logger.warn(traceback.format_exc())
try:
logger.info("environment variable are: %s" % str(os.environ))
except:
logger.warn(traceback.format_exc())
when execute as script
2019-03-06 14:22:39,032 | INFO: hello
D: dynamic load ibm_db from C:Python27libsite-packagesibm_db_dllsibm_db.dll
2019-03-06 14:22:39,825 | INFO: module loaded
2019-03-06 14:22:39,825 | INFO: ibm_db loaded from C:Python27libsite-packagesibm_db_dllsibm_db.dll
2019-03-06 14:22:39,825 | INFO: ibm_db_dbi loaded from C:Python27libsite-packagesibm_db_dbi.pyc
2019-03-06 14:22:39,825 | INFO: connecting ["DATABASE=testdb;HOSTNAME=172.25.31.153;PORT=50000;PROTOCOL=TCPIP;UID=db2inst1;PWD=password;", "", ""]
2019-03-06 14:22:40,776 | INFO: query SELECT * from SYSIBM.TABLES FETCH FIRST 5 ROWS ONLY
2019-03-06 14:22:40,776 | INFO: 'TABLE_TYPE': u'BASE TABLE', 'TABLE_SCHEMA': u'SYSIBM ', 'IS_INSERTABLE_INTO': u'YES', 'USER_DEFINED_TYPE_SCHEMA': None, 'TABLE_NAME': u'SYSTABLES', 'USER_DEFINED_TYPE_CATALOG': None, 'SELF_REFERENCING_COLUMN_NAME': None, 'TABLE_CATALOG': u'TESTDB', 'USER_DEFINED_TYPE_NAME': None, 'REFERENCE_GENERATION': None
when compiled using pyinstaller
C:Usersjack.wu>disttest_db2test_db2.exe
2019-03-06 14:23:17,769 | INFO: hello
D: dynamic load ibm_db from C:Usersjack.wudisttest_db2ibm_db_dllsibm_db.dll
2019-03-06 14:23:17,770 | WARNING: failed to load db2 related modules
2019-03-06 14:23:17,778 | WARNING: Traceback (most recent call last):
File "test_db2.py", line 27, in <module>
import ibm_db
File "C:Python27Libsite-packagesPyInstallerloaderpyimod03_importers.py", line 395, in load_module
exec(bytecode, module.__dict__)
File "site-packagesibm_db.py", line 12, in <module>
File "site-packagesibm_db.py", line 11, in __bootstrap__
ImportError: DLL load failed: The specified module could not be found.
I've tried few parameters like --add-binary
or --hidden-import
, both did not work, any idea / clue ?
[update 20190307] this problem mostly disappeard after run python setup.py install
of ibm_db, instead of just extract the folder statically and put it at same folder. the discussion happened at latter situation, lower priority, thanks for your time :)
python compilation db2 pyinstaller
Is the file present at C:Usersjack.wudisttest_db2ibm_db_dllsibm_db.dll ?
– mao
Mar 6 at 10:14
Have you tried running pyinstaller with the --clean option ?
– mao
Mar 6 at 10:18
@mao the dll file is prepared, in all kinds of folder layouts, still not good, and my colleague came up with a solution
– Jack Wu
Mar 7 at 6:15
@mao the "good practise" my colleague did is, install the ibm_db properlly, with "python setup.py install" which seems regist dll and inject site-packages library, then the compile worked smooth, as long as we put the binary there, only .dll required
– Jack Wu
Mar 7 at 6:17
@mao the "bad practise" i did, is trying to hack the ibm_db python wrapper, since originally i don't have permission to do such installation / write system folder, even with this, seems the "path to find dll" is freezed permernantly, mostly due to there are some imp.load_dynamic within the wrapper, and pyinstaller had not parsed it well, and i did not explictly fill it correct
– Jack Wu
Mar 7 at 6:19
add a comment |
I'm using a Python program with PyQt based GUI, to connect to a database, everyting worked good while it's python script, but got problem while trying to compile it
https://github.com/pyinstaller/pyinstaller/
https://pypi.org/project/ibm_db/
such DB2 Python binding / connector got .dll / .pyd files, that failed to link
code piece
try:
import ibm_db
import ibm_db_dbi
logger.info("module loaded")
logger.info("ibm_db loaded from %s" % ibm_db.__file__)
logger.info("ibm_db_dbi loaded from %s" % ibm_db_dbi.__file__)
except:
logger.warn("failed to load db2 related modules")
logger.warn(traceback.format_exc())
try:
logger.info("environment variable are: %s" % str(os.environ))
except:
logger.warn(traceback.format_exc())
when execute as script
2019-03-06 14:22:39,032 | INFO: hello
D: dynamic load ibm_db from C:Python27libsite-packagesibm_db_dllsibm_db.dll
2019-03-06 14:22:39,825 | INFO: module loaded
2019-03-06 14:22:39,825 | INFO: ibm_db loaded from C:Python27libsite-packagesibm_db_dllsibm_db.dll
2019-03-06 14:22:39,825 | INFO: ibm_db_dbi loaded from C:Python27libsite-packagesibm_db_dbi.pyc
2019-03-06 14:22:39,825 | INFO: connecting ["DATABASE=testdb;HOSTNAME=172.25.31.153;PORT=50000;PROTOCOL=TCPIP;UID=db2inst1;PWD=password;", "", ""]
2019-03-06 14:22:40,776 | INFO: query SELECT * from SYSIBM.TABLES FETCH FIRST 5 ROWS ONLY
2019-03-06 14:22:40,776 | INFO: 'TABLE_TYPE': u'BASE TABLE', 'TABLE_SCHEMA': u'SYSIBM ', 'IS_INSERTABLE_INTO': u'YES', 'USER_DEFINED_TYPE_SCHEMA': None, 'TABLE_NAME': u'SYSTABLES', 'USER_DEFINED_TYPE_CATALOG': None, 'SELF_REFERENCING_COLUMN_NAME': None, 'TABLE_CATALOG': u'TESTDB', 'USER_DEFINED_TYPE_NAME': None, 'REFERENCE_GENERATION': None
when compiled using pyinstaller
C:Usersjack.wu>disttest_db2test_db2.exe
2019-03-06 14:23:17,769 | INFO: hello
D: dynamic load ibm_db from C:Usersjack.wudisttest_db2ibm_db_dllsibm_db.dll
2019-03-06 14:23:17,770 | WARNING: failed to load db2 related modules
2019-03-06 14:23:17,778 | WARNING: Traceback (most recent call last):
File "test_db2.py", line 27, in <module>
import ibm_db
File "C:Python27Libsite-packagesPyInstallerloaderpyimod03_importers.py", line 395, in load_module
exec(bytecode, module.__dict__)
File "site-packagesibm_db.py", line 12, in <module>
File "site-packagesibm_db.py", line 11, in __bootstrap__
ImportError: DLL load failed: The specified module could not be found.
I've tried few parameters like --add-binary
or --hidden-import
, both did not work, any idea / clue ?
[update 20190307] this problem mostly disappeard after run python setup.py install
of ibm_db, instead of just extract the folder statically and put it at same folder. the discussion happened at latter situation, lower priority, thanks for your time :)
python compilation db2 pyinstaller
I'm using a Python program with PyQt based GUI, to connect to a database, everyting worked good while it's python script, but got problem while trying to compile it
https://github.com/pyinstaller/pyinstaller/
https://pypi.org/project/ibm_db/
such DB2 Python binding / connector got .dll / .pyd files, that failed to link
code piece
try:
import ibm_db
import ibm_db_dbi
logger.info("module loaded")
logger.info("ibm_db loaded from %s" % ibm_db.__file__)
logger.info("ibm_db_dbi loaded from %s" % ibm_db_dbi.__file__)
except:
logger.warn("failed to load db2 related modules")
logger.warn(traceback.format_exc())
try:
logger.info("environment variable are: %s" % str(os.environ))
except:
logger.warn(traceback.format_exc())
when execute as script
2019-03-06 14:22:39,032 | INFO: hello
D: dynamic load ibm_db from C:Python27libsite-packagesibm_db_dllsibm_db.dll
2019-03-06 14:22:39,825 | INFO: module loaded
2019-03-06 14:22:39,825 | INFO: ibm_db loaded from C:Python27libsite-packagesibm_db_dllsibm_db.dll
2019-03-06 14:22:39,825 | INFO: ibm_db_dbi loaded from C:Python27libsite-packagesibm_db_dbi.pyc
2019-03-06 14:22:39,825 | INFO: connecting ["DATABASE=testdb;HOSTNAME=172.25.31.153;PORT=50000;PROTOCOL=TCPIP;UID=db2inst1;PWD=password;", "", ""]
2019-03-06 14:22:40,776 | INFO: query SELECT * from SYSIBM.TABLES FETCH FIRST 5 ROWS ONLY
2019-03-06 14:22:40,776 | INFO: 'TABLE_TYPE': u'BASE TABLE', 'TABLE_SCHEMA': u'SYSIBM ', 'IS_INSERTABLE_INTO': u'YES', 'USER_DEFINED_TYPE_SCHEMA': None, 'TABLE_NAME': u'SYSTABLES', 'USER_DEFINED_TYPE_CATALOG': None, 'SELF_REFERENCING_COLUMN_NAME': None, 'TABLE_CATALOG': u'TESTDB', 'USER_DEFINED_TYPE_NAME': None, 'REFERENCE_GENERATION': None
when compiled using pyinstaller
C:Usersjack.wu>disttest_db2test_db2.exe
2019-03-06 14:23:17,769 | INFO: hello
D: dynamic load ibm_db from C:Usersjack.wudisttest_db2ibm_db_dllsibm_db.dll
2019-03-06 14:23:17,770 | WARNING: failed to load db2 related modules
2019-03-06 14:23:17,778 | WARNING: Traceback (most recent call last):
File "test_db2.py", line 27, in <module>
import ibm_db
File "C:Python27Libsite-packagesPyInstallerloaderpyimod03_importers.py", line 395, in load_module
exec(bytecode, module.__dict__)
File "site-packagesibm_db.py", line 12, in <module>
File "site-packagesibm_db.py", line 11, in __bootstrap__
ImportError: DLL load failed: The specified module could not be found.
I've tried few parameters like --add-binary
or --hidden-import
, both did not work, any idea / clue ?
[update 20190307] this problem mostly disappeard after run python setup.py install
of ibm_db, instead of just extract the folder statically and put it at same folder. the discussion happened at latter situation, lower priority, thanks for your time :)
python compilation db2 pyinstaller
python compilation db2 pyinstaller
edited Mar 7 at 6:25
Jack Wu
asked Mar 6 at 6:27
Jack WuJack Wu
19610
19610
Is the file present at C:Usersjack.wudisttest_db2ibm_db_dllsibm_db.dll ?
– mao
Mar 6 at 10:14
Have you tried running pyinstaller with the --clean option ?
– mao
Mar 6 at 10:18
@mao the dll file is prepared, in all kinds of folder layouts, still not good, and my colleague came up with a solution
– Jack Wu
Mar 7 at 6:15
@mao the "good practise" my colleague did is, install the ibm_db properlly, with "python setup.py install" which seems regist dll and inject site-packages library, then the compile worked smooth, as long as we put the binary there, only .dll required
– Jack Wu
Mar 7 at 6:17
@mao the "bad practise" i did, is trying to hack the ibm_db python wrapper, since originally i don't have permission to do such installation / write system folder, even with this, seems the "path to find dll" is freezed permernantly, mostly due to there are some imp.load_dynamic within the wrapper, and pyinstaller had not parsed it well, and i did not explictly fill it correct
– Jack Wu
Mar 7 at 6:19
add a comment |
Is the file present at C:Usersjack.wudisttest_db2ibm_db_dllsibm_db.dll ?
– mao
Mar 6 at 10:14
Have you tried running pyinstaller with the --clean option ?
– mao
Mar 6 at 10:18
@mao the dll file is prepared, in all kinds of folder layouts, still not good, and my colleague came up with a solution
– Jack Wu
Mar 7 at 6:15
@mao the "good practise" my colleague did is, install the ibm_db properlly, with "python setup.py install" which seems regist dll and inject site-packages library, then the compile worked smooth, as long as we put the binary there, only .dll required
– Jack Wu
Mar 7 at 6:17
@mao the "bad practise" i did, is trying to hack the ibm_db python wrapper, since originally i don't have permission to do such installation / write system folder, even with this, seems the "path to find dll" is freezed permernantly, mostly due to there are some imp.load_dynamic within the wrapper, and pyinstaller had not parsed it well, and i did not explictly fill it correct
– Jack Wu
Mar 7 at 6:19
Is the file present at C:Usersjack.wudisttest_db2ibm_db_dllsibm_db.dll ?
– mao
Mar 6 at 10:14
Is the file present at C:Usersjack.wudisttest_db2ibm_db_dllsibm_db.dll ?
– mao
Mar 6 at 10:14
Have you tried running pyinstaller with the --clean option ?
– mao
Mar 6 at 10:18
Have you tried running pyinstaller with the --clean option ?
– mao
Mar 6 at 10:18
@mao the dll file is prepared, in all kinds of folder layouts, still not good, and my colleague came up with a solution
– Jack Wu
Mar 7 at 6:15
@mao the dll file is prepared, in all kinds of folder layouts, still not good, and my colleague came up with a solution
– Jack Wu
Mar 7 at 6:15
@mao the "good practise" my colleague did is, install the ibm_db properlly, with "python setup.py install" which seems regist dll and inject site-packages library, then the compile worked smooth, as long as we put the binary there, only .dll required
– Jack Wu
Mar 7 at 6:17
@mao the "good practise" my colleague did is, install the ibm_db properlly, with "python setup.py install" which seems regist dll and inject site-packages library, then the compile worked smooth, as long as we put the binary there, only .dll required
– Jack Wu
Mar 7 at 6:17
@mao the "bad practise" i did, is trying to hack the ibm_db python wrapper, since originally i don't have permission to do such installation / write system folder, even with this, seems the "path to find dll" is freezed permernantly, mostly due to there are some imp.load_dynamic within the wrapper, and pyinstaller had not parsed it well, and i did not explictly fill it correct
– Jack Wu
Mar 7 at 6:19
@mao the "bad practise" i did, is trying to hack the ibm_db python wrapper, since originally i don't have permission to do such installation / write system folder, even with this, seems the "path to find dll" is freezed permernantly, mostly due to there are some imp.load_dynamic within the wrapper, and pyinstaller had not parsed it well, and i did not explictly fill it correct
– Jack Wu
Mar 7 at 6:19
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55016888%2fcant-freeze-db2-python-binding-into-executable%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55016888%2fcant-freeze-db2-python-binding-into-executable%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Is the file present at C:Usersjack.wudisttest_db2ibm_db_dllsibm_db.dll ?
– mao
Mar 6 at 10:14
Have you tried running pyinstaller with the --clean option ?
– mao
Mar 6 at 10:18
@mao the dll file is prepared, in all kinds of folder layouts, still not good, and my colleague came up with a solution
– Jack Wu
Mar 7 at 6:15
@mao the "good practise" my colleague did is, install the ibm_db properlly, with "python setup.py install" which seems regist dll and inject site-packages library, then the compile worked smooth, as long as we put the binary there, only .dll required
– Jack Wu
Mar 7 at 6:17
@mao the "bad practise" i did, is trying to hack the ibm_db python wrapper, since originally i don't have permission to do such installation / write system folder, even with this, seems the "path to find dll" is freezed permernantly, mostly due to there are some imp.load_dynamic within the wrapper, and pyinstaller had not parsed it well, and i did not explictly fill it correct
– Jack Wu
Mar 7 at 6:19