Terminal not opening when double clicked using mouse on Jetson AGX Xavier

Hi All,

All of a sudden I am not able to open the terminal window , when I double click on the terminal icon on the desktop on my Jetdon AGX Xavier.

One of the major change I see is, I reflashed my root file system on the external NVMe ddrive.

Please let me know how to fix this issue.

Note; I can open the terminal window, when i right click the mouse and select “open termina” from the menu

I don’t think this has anything to do with Jetson.
When you cannot open the terminal GUI app, mostly it’s some error in bashrc setting file.
See if you can still ssh into the device.

It’s opening when I right click the mouse and choose “open terminal”

But the terminal icon on the desktop is not responding when I double click.

Are you doing this with SDK Manager?

Does dmesg or syslog show anything after this?

No.I am using flash script command

Will check and let you know.

There is no change in the dmesg log.

But in the /var/log/syslog file, I could see the below error message, when we click on the “terminal” icon on the gnome desktop.

May 2 10:19:18 localhost xdg-desktop-por[5026]: Failed to get application states: GDBus.Error:org.freedesktop.portal.Error.Failed: Could not get window list
May 2 10:20:50 localhost gnome-shell[4031]: ALSA lib seq_hw.c:466:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory
May 2 10:21:04 localhost gnome-shell[5114]: Traceback (most recent call last):
May 2 10:21:04 localhost gnome-shell[5114]: File “/usr/bin/gnome-terminal”, line 9, in
May 2 10:21:04 localhost gnome-shell[5114]: from gi.repository import GLib, Gio
May 2 10:21:04 localhost gnome-shell[5114]: File “/usr/lib/python3/dist-packages/gi/init.py”, line 42, in
May 2 10:21:04 localhost gnome-shell[5114]: from . import _gi
May 2 10:21:04 localhost gnome-shell[5114]: ImportError: cannot import name ‘_gi’ from partially initialized module ‘gi’ (most likely due to a circular import) (/usr/lib/python3/dist-packages/gi/init.py)
May 2 10:21:05 localhost gnome-shell[5118]: Traceback (most recent call last):
May 2 10:21:05 localhost gnome-shell[5118]: File “/usr/bin/gnome-terminal”, line 9, in
May 2 10:21:05 localhost gnome-shell[5118]: from gi.repository import GLib, Gio
May 2 10:21:05 localhost gnome-shell[5118]: File “/usr/lib/python3/dist-packages/gi/init.py”, line 42, in
May 2 10:21:05 localhost gnome-shell[5118]: from . import _gi
May 2 10:21:05 localhost gnome-shell[5118]: ImportError: cannot import name ‘_gi’ from partially initialized module ‘gi’ (most likely due to a circular import) (/usr/lib/python3/dist-packages/gi/init.py)
May 2 10:21:08 localhost gnome-shell[5121]: Traceback (most recent call last):
May 2 10:21:08 localhost gnome-shell[5121]: File “/usr/bin/gnome-terminal”, line 9, in
May 2 10:21:08 localhost gnome-shell[5121]: from gi.repository import GLib, Gio
May 2 10:21:08 localhost gnome-shell[5121]: File “/usr/lib/python3/dist-packages/gi/init.py”, line 42, in
May 2 10:21:08 localhost gnome-shell[5121]: from . import _gi
May 2 10:21:08 localhost gnome-shell[5121]: ImportError: cannot import name ‘_gi’ from partially initialized module ‘gi’ (most likely due to a circular import) (/usr/lib/python3/dist-packages/gi/init.py)

Pls let us know how to fix this issue.

Some more change I did was I rebuilt, pytorch, trochvision, tensor flow for Python 3.9 than default Python 3.8 which was there as part of Jetpack 5.1.2.

It’s not a Jetson issue at all.
Google gives you:

Link your /usr/bin/python3 against 3.8 if it now becomes 3.9.

Thanks for the updates.

If I change the link to python 3.9 my tensor flow, torchvision and pytorch tools and frameworks will get effected as, I have built them against Python 3.9 and I need to maintain python3.9 as by default version on my Jetson device.

To fix this issue, I found one more solution as per below link, which says to just to modify the gnome-terminal python script and edit the first line to change the python version to python 3.8 as shown below. This worked for me.

1 Like

OK, glad you found it.
That’s great.

1 Like