-
My program works fine if I run the program.py file in a python environment. Any code, even a single, one line print command throws this error Traceback (most recent call last): |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
Are you by any chance using the executable from |
Beta Was this translation helpful? Give feedback.
-
No. using from dist directory only. |
Beta Was this translation helpful? Give feedback.
-
Does the application's dist directory contain any |
Beta Was this translation helpful? Give feedback.
-
This is the \dist\test1 directory listing. Yes there are .pyd files 27-04-2021 16:50 776,948 base_library.zip 03-03-2021 11:39 3,399,200 libcrypto-1_1.dll 03-03-2021 11:39 32,792 libffi-7.dll 03-03-2021 11:39 689,184 libssl-1_1.dll 03-03-2021 11:39 188,944 pyexpat.pyd 22-02-2021 17:35 4,457,488 python39.dll 22-02-2021 17:35 27,152 select.pyd 27-04-2021 16:50 2,028,817 test1.exe 27-04-2021 16:50 1,493 test1.exe.manifest 22-02-2021 17:35 1,119,760 unicodedata.pyd 22-02-2021 17:35 101,672 VCRUNTIME140.dll 03-03-2021 11:39 63,504 _asyncio.pyd 03-03-2021 11:39 85,008 _bz2.pyd 03-03-2021 11:39 270,352 _decimal.pyd 03-03-2021 11:39 161,296 _lzma.pyd 22-02-2021 17:35 28,688 _multiprocessing.pyd 03-03-2021 11:39 45,072 _overlapped.pyd 03-03-2021 11:39 28,176 _queue.pyd 18 File(s) 13,505,546 bytes |
Beta Was this translation helpful? Give feedback.
-
Hm, can you try adding |
Beta Was this translation helpful? Give feedback.
-
Did hiddenimport for _socket. Error still there.
…On Tue, 27 Apr 2021, 17:29 Rok Mandeljc ***@***.*** wrote:
Hm, can you try adding --hiddenimport _socket to your pyinstaller command
and see if _socket.pyd gets collected?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5776 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APN5ABIRUAAC22MOO6V3O6TTK2RIXANCNFSM43UZRU6A>
.
|
Beta Was this translation helpful? Give feedback.
-
Can you run: python -c "from _socket import __file__; print(__file__)" And tell us what the output is? |
Beta Was this translation helpful? Give feedback.
-
Output for python -c "from _socket import file; print(file)" is |
Beta Was this translation helpful? Give feedback.
Can you run:
And tell us what the output is?