PyQt6 v6.5.2, Qt v6.5.2 etc Available on Local PyPI Server
Detlev Offenbach
detlev at die-offenbachs.de
Sat Jul 22 14:48:39 BST 2023
Hi,
it's me again. This time I found an issue. pylupdate6 of the latest
snapshot is crashing (see attached traceback). The solution could be to
add the following after line 158 of python_source.py
else:
name = ""
Regards,
Detlev
Am 22.07.23 um 09:14 schrieb Phil Thompson:
> PyQt6 v6.5.2, Qt v6.5.2, SIP v6.7.10, PyQt-builder v1.15.2 and the
> latest versions of the sip module are now available on the local PyPI
> server...
>
> https://www.riverbankcomputing.com/pypi/
>
> The final release will be early next week.
>
> Phil
--
Detlev Offenbach
detlev at die-offenbachs.de
-------------- next part --------------
Traceback (most recent call last):
File ".../environments/py311qt6dev_env/lib/python3.11/site-packages/PyQt6/lupdate/pylupdate.py", line 60, in main
lupdate(args.file, args.ts, args.no_obsolete, args.no_summary,
File ".../environments/py311qt6dev_env/lib/python3.11/site-packages/PyQt6/lupdate/lupdate.py", line 56, in lupdate
PythonSource(filename=filename,
File ".../environments/py311qt6dev_env/lib/python3.11/site-packages/PyQt6/lupdate/python_source.py", line 77, in __init__
visitor.visit(tree)
File "/usr/lib/python3.11/ast.py", line 418, in visit
return visitor(node)
^^^^^^^^^^^^^
File "/usr/lib/python3.11/ast.py", line 426, in generic_visit
self.visit(item)
File "/usr/lib/python3.11/ast.py", line 418, in visit
return visitor(node)
^^^^^^^^^^^^^
File ".../environments/py311qt6dev_env/lib/python3.11/site-packages/PyQt6/lupdate/python_source.py", line 185, in visit_ClassDef
self.generic_visit(node)
File "/usr/lib/python3.11/ast.py", line 426, in generic_visit
self.visit(item)
File "/usr/lib/python3.11/ast.py", line 418, in visit
return visitor(node)
^^^^^^^^^^^^^
File "/usr/lib/python3.11/ast.py", line 426, in generic_visit
self.visit(item)
File "/usr/lib/python3.11/ast.py", line 418, in visit
return visitor(node)
^^^^^^^^^^^^^
File "/usr/lib/python3.11/ast.py", line 426, in generic_visit
self.visit(item)
File "/usr/lib/python3.11/ast.py", line 418, in visit
return visitor(node)
^^^^^^^^^^^^^
File "/usr/lib/python3.11/ast.py", line 426, in generic_visit
self.visit(item)
File "/usr/lib/python3.11/ast.py", line 418, in visit
return visitor(node)
^^^^^^^^^^^^^
File "/usr/lib/python3.11/ast.py", line 426, in generic_visit
self.visit(item)
File "/usr/lib/python3.11/ast.py", line 418, in visit
return visitor(node)
^^^^^^^^^^^^^
File "/usr/lib/python3.11/ast.py", line 426, in generic_visit
self.visit(item)
File "/usr/lib/python3.11/ast.py", line 418, in visit
return visitor(node)
^^^^^^^^^^^^^
File "/usr/lib/python3.11/ast.py", line 426, in generic_visit
self.visit(item)
File "/usr/lib/python3.11/ast.py", line 418, in visit
return visitor(node)
^^^^^^^^^^^^^
File "/usr/lib/python3.11/ast.py", line 428, in generic_visit
self.visit(value)
File "/usr/lib/python3.11/ast.py", line 418, in visit
return visitor(node)
^^^^^^^^^^^^^
File ".../environments/py311qt6dev_env/lib/python3.11/site-packages/PyQt6/lupdate/python_source.py", line 161, in visit_Call
if name == 'tr':
^^^^
UnboundLocalError: cannot access local variable 'name' where it is not associated with a value
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xBD1F26A5DA8A6150.asc
Type: application/pgp-keys
Size: 660 bytes
Desc: OpenPGP public key
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20230722/2d652013/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 236 bytes
Desc: OpenPGP digital signature
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20230722/2d652013/attachment.sig>
More information about the PyQt
mailing list