[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] PyQtDeploy Sysroot issues
From: Phil Thompson <phil () riverbankcomputing ! com>
Date: 2018-04-11 8:41:30
Message-ID: EE983C08-F8FB-4D8B-9221-E7BE993F3AAA () riverbankcomputing ! com
[Download RAW message or body]
On 11 Apr 2018, at 1:51 am, Kevin Kelly <kevin.kelly@sydaptic.com> wrote:
>
> i tried the vcsarall.bat and Inmade progress on one PC until I get this error:
>
> C:\Qt510\5.10.1\msvc2015\bin\qmake.exe -install qinstall \
> D:\demo\sysroot-win-32\build\PyQt5_gpl-5.10.1\sip\QtSensors\qtapsensor.sip \
> D:\demo\sysroot-win-32\share\sip\PyQt5\QtSensors\qtapsensor.sip \
> C:\Qt510\5.10.1\msvc2015\bin\qmake.exe -install qinstall \
> D:\demo\sysroot-win-32\build\PyQt5_gpl-5.10.1\sip\QtSensors\qtiltsensor.sip \
> D:\demo\sysroot-win-32\share\sip\PyQt5\QtSensors\qtiltsensor.sip Traceback (most \
> recent call last): File "c:\program files (x86)\python35-32\lib\runpy.py", line \
> 184, in _run_module_as_main "__main__", mod_spec)
> File "c:\program files (x86)\python35-32\lib\runpy.py", line 85, in _run_code
> exec(code, run_globals)
> File "C:\Program Files (x86)\Python35-32\Scripts\pyqtdeploy-build.exe\__main__.py", \
> line 9, in <module> File "c:\program files \
> (x86)\python35-32\lib\site-packages\pyqtdeploy\pyqtdeploybuild_main.py", line 93, \
> in main standard_library_dir=args.standard_library_dir)
> File "c:\program files \
> (x86)\python35-32\lib\site-packages\pyqtdeploy\builder\builder.py", line 141, in \
> build project.python_target_version, self._target) + 'python'
> File "c:\program files (x86)\python35-32\lib\site-packages\pyqtdeploy\windows.py", \
> line 38, in get_py_install_path reg_version = '{0}.{1}'.format((version >> 16) & \
> 0xff,
> TypeError: unsupported operand type(s) for >>: 'tuple' and 'int'
>
>
> Anybody with thoughts on this error? Also, sorry I can't seem to get this.
It's a bug. It should be fixed in tonight's snapshot. Untested patch attached.
Phil
["pyqtdeploy.patch" (pyqtdeploy.patch)]
diff -r c58edf9c3495 pyqtdeploy/sysroot/sysroot.py
--- a/pyqtdeploy/sysroot/sysroot.py Thu Apr 05 16:27:05 2018 +0100
+++ b/pyqtdeploy/sysroot/sysroot.py Wed Apr 11 09:38:23 2018 +0100
@@ -403,7 +403,8 @@
if version_nr is None:
version_nr = self.target_py_version_nr
- return get_py_install_path(version_nr, self._target)
+ return get_py_install_path(self.decode_version_nr(version_nr),
+ self._target)
@property
def host_arch_name(self):
diff -r c58edf9c3495 pyqtdeploy/windows.py
--- a/pyqtdeploy/windows.py Thu Apr 05 16:27:05 2018 +0100
+++ b/pyqtdeploy/windows.py Wed Apr 11 09:38:23 2018 +0100
@@ -1,4 +1,4 @@
-# Copyright (c) 2017, Riverbank Computing Limited
+# Copyright (c) 2018, Riverbank Computing Limited
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -35,9 +35,9 @@
from winreg import HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE, QueryValue
- reg_version = '{0}.{1}'.format((version >> 16) & 0xff,
- (version >> 8) & 0xff)
- if version >= 0x030500 and target.name.endswith('-32'):
+ major, minor, _ = version
+ reg_version = '{0}.{1}'.format(major, minor)
+ if (major, minor) >= (3, 5) and target.name.endswith('-32'):
reg_version += '-32'
sub_key_user = 'Software\\Python\\PythonCore\\{}\\InstallPath'.format(
[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