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

Cannot find shredder #171

Closed
iainrs opened this Issue Feb 28, 2016 · 8 comments

Comments

Projects
None yet
5 participants
@iainrs

iainrs commented Feb 28, 2016

I've just installed rmlint on my Linux Mint 17.3 system
(compile included 'shredder.c')

It runs from command line (apparently ?) OK
creates rmlint.sh

but when I run

  ...>rmlint --gui

I get
/usr/bin/python3: No module named shredder

.. >rmlint --version
version 2.4.2 compiled: Feb 28 2016 at [20:26:30] "Myopic Micrathene" (rev unknown)
compiled with: +mounts +nonstripped +fiemap +sha512 +bigfiles +intl +replay +xattr +btrfs-support

rmlint was written by Christopher Pahl and Daniel Thomas.
The code at https://github.com/sahib/rmlint is licensed under the terms of the GPLv3.

there exists a folder : ./usr/lib/python3.4/site-packages/shredder/
with the expected contents
& a file : Shredder-2.4.2.Myopic.Micrathene-py3.4.egg-info
but no entry in ./usr/lib/python3.4/site-packages as I would have expected

however my default python system is 2.7 (needed for Linux Mint)

But cannot run 'shredder'

@iainrs

This comment has been minimized.

iainrs commented Feb 28, 2016

Sorry the above is garbled (I'm new to editing these entries)

@sahib

This comment has been minimized.

Owner

sahib commented Feb 28, 2016

We had this a few times already: #167 (comment). This seems only to affect Debian based distros, as explained there.

Short version; use this to get it started:

# This is only temporary, put this in .bashrc if you want it persistent:
$ export PYTHONPATH=$PYTHONPATH:/usr/lib/python3.4/site-packages/

If you're a bit unlucky, you might need to do these beforehand:

$ sudo apt-get install gir1.2-polkit-1.0
$ sudo apt-get install gir1.2-gtksource-3.0

P.S: shredder.c is not the GUI.

@gorn

This comment has been minimized.

gorn commented Mar 9, 2016

I have tried the workaround, but I am getting this

$ rmlint --gui
Could not import colorlog
Traceback (most recent call last):
File "/usr/lib/python3.4/runpy.py", line 170, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.4/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/lib/python3.4/site-packages/shredder/main.py", line 23, in
from shredder.application import Application
File "/usr/lib/python3.4/site-packages/shredder/application.py", line 28, in
from shredder.views.runner import RunnerView
File "/usr/lib/python3.4/site-packages/shredder/views/runner.py", line 21, in
from shredder.chart import ChartStack
File "/usr/lib/python3.4/site-packages/shredder/chart.py", line 19, in
import cairo
ImportError: No module named 'cairo'

I am on stable debian.

@SeeSpotRun

This comment has been minimized.

Contributor

SeeSpotRun commented Mar 9, 2016

try sudo apt-get install python-cairo

@tomtroughton

This comment has been minimized.

tomtroughton commented Mar 20, 2016

On Xubuntu 14.04:
python-cairo, gir1.2-polkit-1.0, gir1.2-gtksource-3.0 are installed.

$ export PYTHONPATH=$PYTHONPATH:/usr/lib/python3.4/site-packages/
$ rmlint --gui
Could not import colorlog
Traceback (most recent call last):
  File "/usr/lib/python3.4/runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.4/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/lib/python3.4/site-packages/shredder/__main__.py", line 23, in <module>
    from shredder.application import Application
  File "/usr/lib/python3.4/site-packages/shredder/application.py", line 28, in <module>
    from shredder.views.runner import RunnerView
  File "/usr/lib/python3.4/site-packages/shredder/views/runner.py", line 29, in <module>
    class ResultActionBar(Gtk.ActionBar):
  File "/usr/lib/python3/dist-packages/gi/module.py", line 320, in __getattr__
    return getattr(self._introspection_module, name)
  File "/usr/lib/python3/dist-packages/gi/module.py", line 139, in __getattr__
    self.__name__, name))
AttributeError: 'gi.repository.Gtk' object has no attribute 'ActionBar'

EDIT: So I guess it is possible I am at GTK+ 3.10, and I can't find a clear answer if I can upgrade XUbuntu 14.04 LTS to 3.12 or higher. Anyone know, and can point me to a how-to? Or is there some other workaround? Thanks!

EDIT: If this problem is because I am at 3.10 I will wait for 16.04 LTS to see if the upgrade takes care of it. If there is another fix let me know. Thanks!

@sahib

This comment has been minimized.

Owner

sahib commented Mar 20, 2016

Yes, Gtk.ActionBar was added in GTK+ 3.12 (from 2013...), we should probably document
the dependencies clearly (which includes gtk+ >= 3.12).

I think it will be probably troublesome to update just GTK+ since many packages in Xubuntu depend on it - it's likely the easiest to update your whole distro in that case. 😞

Im afraid, but we depend on ActionBar and it's a bit hard to substitute (especially since that sort of problem solves itself by waiting...).

@tomtroughton

This comment has been minimized.

tomtroughton commented Mar 21, 2016

Thanks for the quick response. I'll just use the command line while I wait. Shouldn't be that long before the next XUbuntu LTS is out.

Tom
Sent from my iPhone

On Mar 20, 2016, at 19:12, Chris Pahl notifications@github.com wrote:

Yes, Gtk.ActionBar was added in GTK+ 3.12 (from 2013...), we should probably document
the dependencies clearly (which includes gtk+ >= 3.12).

I think it will be probably troublesome to update just GTK+ since many packages in Xubuntu depend on it - it's likely the easiest to update your whole distro in that case.

Im afraid, but we depend on ActionBar and it's a bit hard to substitute (especially since that sort of problem solves itself by waiting...).


You are receiving this because you commented.
Reply to this email directly or view it on GitHub

@sahib

This comment has been minimized.

Owner

sahib commented Mar 21, 2016

No problem. I tried to clarify the install instructions a bit in 6f84844.
Closing for now, feel free to re-open when the problem persists after the upgrade.

@sahib sahib closed this Mar 21, 2016

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