[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] pydeployqt: No 'ntpath' module
From: Phil Thompson <phil () riverbankcomputing ! com>
Date: 2018-05-29 13:27:34
Message-ID: 1946D162-1E74-4962-A9C6-3BC5D3D45BFD () riverbankcomputing ! com
[Download RAW message or body]
On 29 May 2018, at 12:31 pm, anton.kustov <anton.kustov@banuba.com> wrote:
>
> pyqtdeploy UI configurator application doesn't have "ntpath" package in list
> on on "Standard Library" tab. As result I can't launch my compiled
> application. I've got an error:
>
> File ":/pathlib.py", line 4, in <module>
> File "bootstrap.py", line 971, in _find_and_load
> File "bootstrap.py", line 953, in _find_and_load_unlocked
> ModuleNotFoundError: No module named 'ntpath'
>
> I tried to manually add "<StdlibModule name="ntpath"/>" element inside
> "Project" element in my "my_application.pdy", but the result didn't change.
> There is still no "ntpath" package in "pyqtdeploy-build" output while
> Freezing.
> "pyqtdeploy-build" version is 2.1.
>
> host and target: macos-64
> PyQt5_gpl-5.10.1.tar.gz
> Qt5 installed version is 5.10.1
> Python-3.6.4.tar.xz
> sip-4.19.8.tar.gz
>
> How can I solve the issue?
The attached patch should fix it.
Phil
["ntpath.patch" (ntpath.patch)]
diff -r 6d2c701a60fe pyqtdeploy/metadata/python_metadata.py
--- a/pyqtdeploy/metadata/python_metadata.py Wed May 02 09:45:58 2018 +0100
+++ b/pyqtdeploy/metadata/python_metadata.py Tue May 29 14:26:55 2018 +0100
@@ -4488,7 +4488,7 @@
CoreExtensionModule(internal=True, target='win'),
'ntpath':
- PythonModule(internal=True, target='win',
+ PythonModule(internal=True,
deps=('genericpath', 'nt', 'os', 'stat', 'string',
'warnings')),
[Attachment #4 (text/plain)]
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic