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.

Setting output to another pts gives error on Ubuntu 20.04

See original GitHub issue

Hi,

first, thanks for your really helpful project, I love and use it a lot.

Usually I use manjaro for my daily work, but at the moment I am forced to use WSL2 with Ubuntu 20.04 on my company laptop.

When trying to set the output to another pts, I get the following error:

Cannot write the dashboard
Traceback (most recent call last):
File "<string>", line 504, in render
TypeError: write() argument 1 must be unicode, not str

every time the dashboard gets refreshed.

I also tried it on another PC with native kubuntu 20.04.

I do the following with gdb-dashboard v0.13.0 from git:

  • open a new terminal with xterm, get the number with tty -> e.g. /dev/pts/6
  • start gdb session for arm (arm-none-eabi-gdb)
  • dashboard variables -output /dev/pts/6
  • Seems to be ok
  • step
  • The error occurs and nothing is put on the terminal

It does not matter if I set the output for variables or anything else. I tried xterm and konsole.

Please tell me if you need more information

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
hp-pepstercommented, May 19, 2021

The bin with python-support is called arm-none-eabi-gdb-py

0reactions
hp-pepstercommented, May 21, 2021

For me, the py2-version works as well. Thank you for the fix. Nevertheless I will stick to the py3-version of GDB.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pseudo Terminal Error :: "mesg: cannot open /dev/pts/2
On my Ubuntu 20.04.5 machine, I have a Perl script running under userA 's account. The script issues this command:
Read more >
DebuggingPrintingProblems - Ubuntu Wiki
The output shows whether the printers get found by CUPS or system-config-printer and with which device URIs and protocols. Run the command
Read more >
Getting input/output error running anything on remote desktop
If those methods don't help, you can try this. sudo apt-get install xfce4-terminal sudo update-alternatives --config x-terminal-emulator.
Read more >
How to redirect output of systemd service to a file
out for Ubuntu 18.04 and 20.04. – Ted Cahall. Aug 31, 2020 at 1:16. Wrong about ...
Read more >
How to write the output into the file in Linux - nixCraft
How do I save terminal output to a file? A command can receive input from ... In other words, the contents of the...
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