Skip to content
This repository has been archived by the owner on Mar 7, 2022. It is now read-only.

Certificate error #37

Closed
rubengr opened this issue Feb 26, 2019 · 10 comments
Closed

Certificate error #37

rubengr opened this issue Feb 26, 2019 · 10 comments

Comments

@rubengr
Copy link

rubengr commented Feb 26, 2019

When trying to create .exe file i get this error:

C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64
Using this signtool: C:\Program Files (x86)\Windows Kits\10\bin\10.0.17763.0\x64
Traceback (most recent call last):
File "setup.py", line 273, in
setup(**args)
File "setup.py", line 237, in setup
raise RuntimeError('Expected to find exactly one PFX in the outer dir, found this: %r' % pfx_path)
RuntimeError: Expected to find exactly one PFX in the outer dir, found this: []

Where i can find the .pfx file?
Thanks

@pavel-kirienko
Copy link
Member

You need to obtain one from a certifying agency, like this (not an ad, first result from Google): https://www.digicert.com/code-signing

@rubengr
Copy link
Author

rubengr commented Feb 27, 2019

Ok, so i need certificate to make the executable? Other question is, why i can't see the icons in GUI TOOL?
Thanks

@pavel-kirienko
Copy link
Member

Ok, so i need certificate to make the executable?

Sorry, I should have clarified that the certificate is only necessary if you want to produce a signed executable. Non-signed binaries work equally well, but if you tried to distribute them to other users, they'd get a nasty warning saying that the binary comes from an unidentified source and can't be trusted. Depending on your use case, this may be a non-issue, in which case just comment out the part of the build script that signs the binary.

Other question is, why i can't see the icons in GUI TOOL?

Maybe the fontawesome package is not installed right or is of a wrong version.

@rubengr
Copy link
Author

rubengr commented Feb 28, 2019

Thanks Pavel. After trying to create the .exe i need to define tcl and tk location manually (os.environ['TCL_LIBRARY'] = r'C:\Users...'). After this, i get this error:

copying C:\gui_tool\gui\DLLs\sqlite3.dll -> build\exe.win-amd64-3.7\sqlite3.dll
error: [Errno 2] No such file or directory: 'C:\gui_tool\gui\DLLs\sqlite3.dll'

Maybe the fontawesome package is not installed right or is of a wrong version.

I installed fontawesome and don't works..

@pavel-kirienko
Copy link
Member

copying C:\gui_tool\gui\DLLs\sqlite3.dll -> build\exe.win-amd64-3.7\sqlite3.dll
error: [Errno 2] No such file or directory: 'C:\gui_tool\gui\DLLs\sqlite3.dll'

Where did the first path (C:\gui_tool\gui\DLLs\sqlite3.dll) come from? Can you post the entire build log here please?

@rubengr
Copy link
Author

rubengr commented Feb 28, 2019

first path is my directory project/environment

C:\gui_tool> python setup.py bdist_msi

@rubengr
Copy link
Author

rubengr commented Feb 28, 2019

log.txt

@pavel-kirienko
Copy link
Member

This is insane. So I found this:

Line 2479:

copying C:\ProgramData\Anaconda3\Library\bin\sqlite3.dll -> build\exe.win-amd64-3.7\lib\sqlite3.dll

Line 8514:

copying C:\gui_tool\gui\DLLs\sqlite3.dll -> build\exe.win-amd64-3.7\sqlite3.dll

The path C:\gui_tool\gui\DLLs does not seem to appear anywhere else and I have no idea what component is trying to copy it. I'm afraid you will have to investigate that yourself. You've probably figured out by now that distributing Python Windows applications is a lot of fun. If you can't find a proper solution, just copy the DLL from build\exe.win-amd64-3.7\lib\sqlite3.dll to C:\gui_tool\gui\DLLs\sqlite3.dll manually.

@rubengr
Copy link
Author

rubengr commented Feb 28, 2019

After copy DLL and build again i'm able to install .msi file but .exe doesn't work. uavcan is install but gives this error:
image

@pavel-kirienko
Copy link
Member

What arch you're on -- x86 or amd64? If it's the former, the DLL is not working because it's built for amd64 (judging from the earlier logs). Otherwise, I can't help much; consider asking on StackOverflow. Sorry.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants