Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AddonManager: failing to load workbenches with Qt6 / PySide 6 #14083

Closed
2 tasks done
pieterhijma opened this issue May 17, 2024 · 1 comment · Fixed by #14141
Closed
2 tasks done

AddonManager: failing to load workbenches with Qt6 / PySide 6 #14083

pieterhijma opened this issue May 17, 2024 · 1 comment · Fixed by #14141
Assignees
Labels
3rd party: Qt 6 Issue related to Qt 6 Addon Manager Bug This issue or PR is related to a bug

Comments

@pieterhijma
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Problem description

The Addon Manager cannot load the list of workbenches due to a small change in the QNetworkRequest:

12:11:39  Traceback (most recent call last):
12:11:39    File "/home/pieter/build-freecad-main-debug/Mod/AddonManager/addonmanager_workers_installation.py", line 92, in run
12:11:39      index = NetworkManager.AM_NETWORK_MANAGER.submit_unmonitored_get(
12:11:39              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12:11:39    File "/home/pieter/build-freecad-main-debug/Mod/AddonManager/NetworkManager.py", line 338, in submit_unmonitored_get
12:11:39      current_index, self.__create_get_request(url, timeout_ms), track_progress=False
12:11:39                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12:11:39    File "/home/pieter/build-freecad-main-debug/Mod/AddonManager/NetworkManager.py", line 431, in __create_get_request
12:11:39      request.setTransferTimeout(timeout_ms)
12:11:39  TypeError: 'PySide6.QtNetwork.QNetworkRequest.setTransferTimeout' called with wrong argument types:
  PySide6.QtNetwork.QNetworkRequest.setTransferTimeout(TransferTimeoutConstant)
Supported signatures:
  PySide6.QtNetwork.QNetworkRequest.setTransferTimeout(int)

Full version info

OS: Arch Linux
Word size of FreeCAD: 64-bit
Version: 0.22.0dev.37347 (Git)
Build type: Unknown
Branch: main
Hash: 18c85a58aeb0fa9d69fae1b70de85d7fff9e0eb3
Python 3.12.3, Qt 6.7.0, Coin 4.0.2, Vtk 9.3.0, OCC 7.7.2
Locale: English/United States (en_US)

Subproject(s) affected?

Addon Manager

Anything else?

#13303 is related.
#13997 seems to be related as @obelisk79 reports the Addon Manager to be working.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@maxwxyz
Copy link
Collaborator

maxwxyz commented May 17, 2024

@chennes FYI

@maxwxyz maxwxyz added Bug This issue or PR is related to a bug Addon Manager 3rd party: Qt 6 Issue related to Qt 6 labels May 17, 2024
@chennes chennes self-assigned this May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3rd party: Qt 6 Issue related to Qt 6 Addon Manager Bug This issue or PR is related to a bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants