Skip to content

Qtbindings clipboard conflict #17722

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

Closed
dvincentwest opened this issue Sep 29, 2017 · 2 comments · Fixed by #17723
Closed

Qtbindings clipboard conflict #17722

dvincentwest opened this issue Sep 29, 2017 · 2 comments · Fixed by #17723
Labels
Compat pandas objects compatability with Numpy or Python functions IO Data IO issues that don't fit into a more specific label
Milestone

Comments

@dvincentwest
Copy link
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 IO Data IO issues that don't fit into a more specific label and removed 2/3 Compat labels Sep 29, 2017
@sinhrks
Copy link
Member

sinhrks commented Sep 29, 2017

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

@dvincentwest
Copy link
Contributor Author

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

@sinhrks sinhrks added the Compat pandas objects compatability with Numpy or Python functions label Sep 29, 2017
@jreback jreback added this to the 0.22.0 milestone Oct 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compat pandas objects compatability with Numpy or Python functions IO Data IO issues that don't fit into a more specific label
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants