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

Qtbindings clipboard conflict #17722

Closed
dvincentwest opened this Issue Sep 29, 2017 · 2 comments

Comments

Projects
None yet
3 participants
@dvincentwest
Contributor

dvincentwest commented Sep 29, 2017

In the clipboard package, I see pandas is using pyperclip

the problem is that pyperclip uses PyQt4 when deciding to use Qt for the linux clipboard, which can create a conflict if trying to embed pandas into a PyQt5 or PySide application for example

I think the simplest solution is to use qtpy from the Spyder team, so replace:

from PyQt4.QtGui import QApplication

with

from qtpy.QtWidgets import QApplication

I am currently working on a PyQt5 based pandas data visualization program and this is a problem I have encountered in the past.

@sinhrks sinhrks added 2/3 Compat Data IO and removed 2/3 Compat labels Sep 29, 2017

@sinhrks

This comment has been minimized.

Member

sinhrks commented Sep 29, 2017

Thanks for the report. Do you have a link from Spyder team answer? Also, PR is appreciated.

@dvincentwest

This comment has been minimized.

Contributor

dvincentwest commented Sep 29, 2017

link added and I have created a pull request #17723 , which only touches 2 lines of code that I have used successfully with a different project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment