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

TypeError when clicking on a process #9

Open
Tinche opened this issue Aug 29, 2014 · 4 comments
Open

TypeError when clicking on a process #9

Tinche opened this issue Aug 29, 2014 · 4 comments

Comments

@Tinche
Copy link

Tinche commented Aug 29, 2014

Ubuntu 14.04, Python 2.7.

When selected a process in the list of processes:

Traceback (most recent call last):
  File "/home/tin/pg/pyrasite-gui/local/lib/python2.7/site-packages/pyrasite_gui/gui.py", line 599, in selection_cb
    self.generate_description(title)
  File "/home/tin/pg/pyrasite-gui/local/lib/python2.7/site-packages/pyrasite_gui/gui.py", line 469, in generate_description
    """ % (self.proc.title, p.status, p.getcwd(), ' '.join(p.cmdline),
TypeError
@TheBengineer
Copy link

I also have this problem.

@spaceone
Copy link

spaceone commented Apr 5, 2016

This is basically a duplicate of Issue #8.
Downgrading psutil to version 1 will help. Otherwise here is a patch for using with psutil2: develop...spaceone:patch-1

@con-f-use
Copy link

Very similar on Ubuntu 18.04, right after starting:

/usr/local/lib/python2.7/dist-packages/pyrasite_gui/gui.py:43: PyGIWarning: Pango was imported without specifying a version first. Use gi.require_version('Pango', '1.0') before import to ensure that the right version gets loaded.
  from gi.repository import GLib, GObject, Pango, Gtk, WebKit
/usr/local/lib/python2.7/dist-packages/pyrasite_gui/gui.py:43: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import GLib, GObject, Pango, Gtk, WebKit
/usr/local/lib/python2.7/dist-packages/pyrasite_gui/gui.py:43: PyGIWarning: WebKit was imported without specifying a version first. Use gi.require_version('WebKit', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import GLib, GObject, Pango, Gtk, WebKit

(pyrasite-gui:23788): Gtk-CRITICAL **: 18:01:56.732: gtk_box_pack: assertion '_gtk_widget_get_parent (child) == NULL' failed

then when clicking a process:

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/pyrasite_gui/gui.py", line 599, in selection_cb
    self.generate_description(title)
  File "/usr/local/lib/python2.7/dist-packages/pyrasite_gui/gui.py", line 469, in generate_description
    """ % (self.proc.title, p.status, p.getcwd(), ' '.join(p.cmdline),
AttributeError: 'Process' object has no attribute 'getcwd'

@programmin1
Copy link

"get" is no longer in the method name anymore I see, and I made a PR with the file I was working on - #26

However it still hangs.

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

No branches or pull requests

5 participants