Skip to content

traceback when drag and drop #727

Closed

Description

@mattrose

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/user@1000.service/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'

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions