Skip to content
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

traceback when drag and drop #727

Closed
mattrose opened this issue Mar 22, 2023 · 0 comments · Fixed by #728
Closed

traceback when drag and drop #727

mattrose opened this issue Mar 22, 2023 · 0 comments · Fixed by #728

Comments

@mattrose
Copy link
Member

This is just a direct copy and paste from https://bugzilla.redhat.com/show_bug.cgi?id=2180891

I came up against it myself a couple of days ago.

Description of problem:
drag and drop file from file gnome filemanager to terminator terminal.

Version-Release number of selected component:
terminator-2.1.3-1.fc37

Additional info:
reporter: libreport-2.17.4
cgroup: 0::/user.slice/user-1000.slice/[email protected]/app.slice/app-gnome-terminator-7783.scope
cmdline: /usr/bin/python3 -sP /usr/bin/terminator
crash_function: feed
exception_type: AttributeError
executable: /usr/bin/terminator
interpreter: python3-3.11.2-1.fc37.x86_64
kernel: 6.2.7-200.fc37.x86_64
runlevel: N 5
type: Python3
uid: 1000

Truncated backtrace:
terminal.py:1697:feed:AttributeError: 'bytes' object has no attribute 'encode'

Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/terminatorlib/terminal.py", line 1264, in on_drag_data_received
term.feed(txt.encode())
File "/usr/lib/python3.11/site-packages/terminatorlib/terminal.py", line 1697, in feed
self.vte.feed_child(text.encode())
^^^^^^^^^^^
AttributeError: 'bytes' object has no attribute 'encode'

Local variables in innermost frame:
self: <terminal.Terminal object at 0x7f9a0ca32180 (terminatorlib+terminal+Terminal at 0x55b51960a140)>
text: b'/home/herald/Documenten/MuseScore3/Partituren/cameranova/Twelve-days-of-Christmas-Ian-Humphris.pdf'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant