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 byte obj to clipboard

See original GitHub issue

Description

What steps will reproduce the problem?

  1. create an obj, type = bytes
  2. Copying the byte oject to the clipboard
  3. Faliure of copy

Traceback

  File "C:\Users\Steven\tmp\lib\site-packages\spyder\plugins\variableexplorer\widgets\collectionseditor.py", line 1071, in copy
    obj = to_text_string(obj, 'utf8')
  File "C:\Users\Steven\tmp\lib\site-packages\spyder\py3compat.py", line 162, in to_text_string
    return str(obj, encoding)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte

Versions

  • Spyder version: 4.0.1
  • Python version: 3.7.3
  • Qt version: 5.9.6
  • PyQt5 version: 5.9.2
  • Operating System: Windows 7

Dependencies

atomicwrites >=1.2.0         :  1.3.0 (OK)
chardet >=2.0.0              :  3.0.4 (OK)
cloudpickle >=0.5.0          :  0.8.0 (OK)
diff_match_patch >=20181111  :  20181111 (OK)
intervaltree                 :  None (OK)
IPython >=4.0                :  7.4.0 (OK)
jedi =0.14.1                 :  0.14.1 (OK)
nbconvert >=4.0              :  5.4.1 (OK)
numpydoc >=0.6.0             :  0.8.0 (OK)
pexpect >=4.4.0              :  4.8.0 (OK)
pickleshare >=0.4            :  0.7.5 (OK)
psutil >=0.3                 :  5.6.1 (OK)
pygments >=2.0               :  2.3.1 (OK)
pylint >=0.25                :  2.3.1 (OK)
pyls >=0.31.2;<0.32.0        :  0.31.7 (OK)
zmq >=17                     :  18.0.0 (OK)
qdarkstyle >=2.7             :  2.8 (OK)
qtawesome >=0.5.7            :  0.5.7 (OK)
qtconsole >=4.6.0            :  4.6.0 (OK)
qtpy >=1.5.0                 :  1.7.0 (OK)
rtree >=0.8.3                :  0.8.3 (OK)
sphinx >=0.6.6               :  1.8.5 (OK)
spyder_kernels >=1.8.1;<2.0.0:  1.8.1 (OK)
watchdog                     :  None (OK)
cython >=0.21                :  0.29.6 (OK)
matplotlib >=2.0.0           :  3.0.3 (OK)
numpy >=1.7                  :  1.16.2 (OK)
pandas >=0.13.1              :  0.24.2 (OK)
scipy >=0.17.0               :  1.2.1 (OK)
sympy >=0.7.3                :  1.3 (OK)

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
dalthvizcommented, Feb 21, 2020

Thanks for the info @aazz0099a !

1reaction
goanpecacommented, Feb 13, 2020

Ok, I tested on Mac only. @dalthviz could you test on windowS?

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - Copy binary data to clipboard - Stack Overflow
First one, and by far the simplest one: you simply put the byte array into the clipboard. This will automatically serialize the byte...
Read more >
How to retrieve byte array from clipboard? - MSDN - Microsoft
I have a C# program that copies a simple byte array onto the clipboard. The array comprises a null terminated ASCII text header...
Read more >
C# how to copy all elements in array to clipboard? - CodeProject
Try: C#. Clipboard.Clear(); Clipboard.SetText( string.Join("\n", trueBenchScoreList.Select(t => t.ToString())));.
Read more >
[Solved]-Copy byte array into clipboard-C# - appsloveworld
Coding example for the question Copy byte array into clipboard-C#. ... Be warned that supporting file copy/paste instead of having an option to...
Read more >
Motif Programming Manual (Volume 6A): 21 - The Clipboard
An object that wishes to place data on the clipboard or read data from it is ... bytes into buffer and sets num_bytes...
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