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.

copy to clipboard

See original GitHub issue

Description

What steps will reproduce the problem?

Just copying a pandas dataframe to clipboard with either ctrl+c or right-click copy. I am using df.to_clipboard() in the meantime.

Traceback

  File "C:\Users\Lenovo_student\Anaconda_3\lib\site-packages\spyder\widgets\variableexplorer\dataframeeditor.py", line 664, in copy
    obj.to_csv(output, sep='\t', index=index, header=header)
  File "C:\Users\Lenovo_student\Anaconda_3\lib\site-packages\pandas\core\generic.py", line 3007, in to_csv
    escape = config.get_option("display.latex.escape")
  File "C:\Users\Lenovo_student\Anaconda_3\lib\site-packages\pandas\io\formats\csvs.py", line 25, in <module>
    from pandas.io.common import (
ImportError: cannot import name 'get_compression_method' from 'pandas.io.common' (C:\Users\Lenovo_student\Anaconda_3\lib\site-packages\pandas\io\common.py)

Versions

  • Spyder version: 3.3.3
  • Python version: 3.7.3
  • Qt version: 5.9.6
  • PyQt5 version: 5.9.2
  • Operating System: Windows 10

Dependencies

pyflakes >=0.6.0  :  2.1.1 (OK)
pycodestyle >=2.3 :  2.5.0 (OK)
pygments >=2.0    :  2.3.1 (OK)
sphinx >=0.6.6    :  1.8.5 (OK)
rope >=0.9.4      :  0.12.0 (OK)
jedi >=0.9.0      :  0.13.3 (OK)
nbconvert >=4.0   :  5.4.1 (OK)
pandas >=0.13.1   :  0.24.2 (OK)
numpy >=1.7       :  1.16.2 (OK)
sympy >=0.7.3     :  1.3 (OK)
cython >=0.21     :  0.29.14 (OK)
qtconsole >=4.2.0 :  4.4.3 (OK)
IPython >=4.0     :  7.4.0 (OK)
matplotlib >=2.0.0:  3.0.3 (OK)
pylint >=0.25     :  2.3.1 (OK)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Mar 1, 2020

The issue was resolved after reinstallation… Thanks

0reactions
ghostcommented, Mar 2, 2020

just wanting to update you on the issue, I reverted back to an older spyder version (3.3.0) and seems everything works great again no more issues with opening up variables in the explorer…

Read more comments on GitHub >

github_iconTop Results From Across the Web

copy-to-clipboard - npm
Simple module exposing copy function that will try to use execCommand with fallback to IE-specific clipboardData interface and finally, resort ...
Read more >
How To Copy to Clipboard - W3Schools
Learn how to copy text to the clipboard with JavaScript. Click on the button to copy the text from the text field. Copy...
Read more >
Copy and paste using the Office Clipboard - Microsoft Support
Open the file that you want to copy items from. · Select the first item that you want to copy, and press CTRL+C....
Read more >
clipboard.js — Copy to clipboard without Flash
Copy text from another element. A pretty common use case is to copy content from another element. You can do that by adding...
Read more >
Copy to Clipboard - Apps on Google Play
Simple function, help copy photo from your gallery to clipboard. you can utilize Google Keyboard to paste to other apps that support pasting...
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