question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing QtPrintSupport

See original GitHub issue

Hi,

I am unable to find a reason for why this would be missing and am hoping somebody can enlighten me.

import Qt
print Qt.__binding__
print Qt.__binding_version__
from Qt import QtPrintSupport

PySide2
2.0.0~alpha0
# Error: ImportError: file <maya console> line 5: No module named QtPrintSupport # 

And in the same session:

import PySide2
from PySide2 import QtPrintSupport
QtPrintSupport
# Result: <module 'PySide2.QtPrintSupport' from '/[removed]/autodesk/maya/2018/maya/lib/python2.7/site-packages/PySide2/QtPrintSupport.so'> # 

I see the same result in PyQt4, where the member also exists.

Best, Alex

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:18 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
MHendrickscommented, Jan 20, 2018

I think QtPrintSupport is similar to how QtGui was separated into QtGui and QtWidgets. How are you handling that?

All of these are tested on windows. Houdini 16.5.323, Maya 2017, 3dsMax 2018:

>>> from PySide2 import QtPrintSupport
>>> dir(QtPrintSupport)
['QAbstractPrintDialog', 'QPageSetupDialog', 'QPrintDialog', 'QPrintEngine', 'QPrintPreviewDialog', 'QPrintPreviewWidget', 'QPrinter', 'QPrinterInfo', '__doc__', '__file__', '__name__', '__package__']

Houdini 16.0.557, Maya 2016.0:

>>> from PySide import QtGui
>>> for name in ['QAbstractPrintDialog', 'QPageSetupDialog', 'QPrintDialog', 'QPrintEngine', 'QPrintPreviewDialog', 'QPrintPreviewWidget', 'QPrinter', 'QPrinterInfo']: print getattr(QtGui, name)
<type 'PySide.QtGui.QAbstractPrintDialog'>
<type 'PySide.QtGui.QPageSetupDialog'>
<type 'PySide.QtGui.QPrintDialog'>
<type 'PySide.QtGui.QPrintEngine'>
<type 'PySide.QtGui.QPrintPreviewDialog'>
<type 'PySide.QtGui.QPrintPreviewWidget'>
<type 'PySide.QtGui.QPrinter'>
<type 'PySide.QtGui.QPrinterInfo'>

The Qt.py unit tests pass when adding QtPrintSupport to _common_members and updating _misplaced_members for Qt4 support. tests.test_membership()

1reaction
boredstiffcommented, Jan 20, 2018

Nuke 10.5v6 and Houdini 15:

from PySide.QtGui import QPrinter
# Result: QPrinter
<type 'PySide.QtGui.QPrinter'>
Read more comments on GitHub >

github_iconTop Results From Across the Web

macos - QT printsupport lib missing from plugins - how to get it?
I build this project on windows with no problem. My plugin dir on osx lacks the "printsupport" folder (present on windows). How can...
Read more >
762217 – net-im/vacuum-1.3.0_pre20180105
Bug 762217 - net-im/vacuum-1.3.0_pre20180105: missing dependencies: dev-qt/qtprintsupport:5, dev-qt/qtsvg:5, dev-qt/qtwidgets:5.
Read more >
[#QTBUG-79124] QtPrintsupport missing from ios build - Qt Bug ...
A change related to this issue was integrated. This issue was re-opened before, the bot will not close this issue, please close it...
Read more >
Thread: Where is QtPrintSupport framework - Qt Centre Forum
Just compiled an app on Mac os and I've #included QtPrintSupport and ... is the library/framework missing from the Qt install or something ......
Read more >
JTSDK@groups.io | QtPrintSupport.dll "missing"
QtPrintSupport.dll "missing" ... I'm a bit lost here: ... I then get this error: The code execution cannot proceed because QtPrintSupport.dll was not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found