Welcome!

The kernel problem with recent updates has been solved. Find the solution here

Important information
-- Required MX 15/16 Repository Changes
-- Information on torrent hosting changes
-- Information on MX15/16 GPG Keys
-- Spectre and Meltdown vulnerabilities

News
-- Introducing our new Website
-- MX Linux on social media: here

Current releases
-- MX-18.3 Point Release release info here
-- Migration Information to MX-18 here
-- antiX-17.4.1 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

[ICONS] AnyColorYouLike Simple : smashing a bug...

Show us how you are setting up MX
Post Reply
User avatar
k_sz
Forum Regular
Forum Regular
Posts: 171
Joined: Mon Jan 29, 2018 7:11 am

[ICONS] AnyColorYouLike Simple : smashing a bug...

#1

Post by k_sz » Fri Mar 02, 2018 4:32 pm

Hi there,

I tried to install this lovely AnyColorYouLike Simple (ACYLS) iconset and its equaly lovable python3 script

Code: Select all

~/.icons/ACYLS/scripts
$ python3 run.py
that should result in a excellent GUI, useful to customize, colorize, chisel or mess with one of the 9 scalable iconsets included in this pack, to provide delicious (or not) eyecandy to the happy Linux community, who really needs enjoyment in these dark times of systemding kernels and poetterizing everything - but i digress and here isn't the place to discuss Baal-Zebeb and vogon poetry. Back to the subject.

So, no matter the way I installed it (git clone, dl/extract .zip) it had alway the same output :

Code: Select all

Traceback (most recent call last):
  File "run.py", line 23, in <module>
    from acyls.lib.mainwindow import MainWindow
ImportError: No module named 'acyls.lib'
Here must i quote ACYLS dev :
worron wrote:Seems like you have some system installed python module 'scripts', while my program used to load its local 'scripts' directory as module.
So, if something goes wrong, the following might be the solution, freshly provided by teh Master of ACYLS himself.
  • First : check your gtk3, python3 and python3-lxml versions :

    Code: Select all

    $ dpkg -s libgtk-3-0|grep '^Version'
    Version: 3.22.11-1
    $ python3 -V
    Python 3.5.3
    $ dpkg -s python3-lxml|grep '^Version'
    Version: 4.1.0-1~mx17+1 
  • If one of the above is missing, just install it, then edit the run.py script, eg. with nano

    Code: Select all

    ~/.icons/ACYLS/scripts
    $ nano run.py
  • ... delete everything and replace it with the following :

    Code: Select all

    #!/usr/bin/env python3
    # -*- Mode: Python; indent-tabs-mode: t; python-indent: 4; tab-width: 4 -*-
    
    import os
    import sys
    import imp
    
    # Check requirements
    import gi
    gi.require_version('Gtk', '3.0')
    from gi.repository import Gtk
    
    if sys.version_info < (3, 4):
    	sys.stdout.write("Requires Python 3.x\n")
    	sys.exit(1)
    
    # Load content of 'scrips' folder as 'acyls' module
    # just don't want change current directory structure with 'scripts' and 'scalable' pair
    scripts = imp.load_source('scripts', os.path.join(os.path.dirname(os.path.abspath(__file__)), "__init__.py"))
    sys.modules['acyls'] = scripts
    
    # Load main app
    from acyls.lib.mainwindow import MainWindow
    
    # Set current working directory to be able use relative path in config
    os.chdir(os.path.join(os.path.dirname(os.path.abspath(__file__)), ".."))
    
    # Run application
    if __name__ == "__main__":
    	MainWindow()
    	Gtk.main()
  • Save it, and run your brand new run.py \o/
Here we go :
Image
Image
Image
Image
Happy iconing !
> Desktop : AMD 64 bits (unknowned monocore model :P looking for an AM2+ 4cores Phenom) | RAM 4Go DDR2 | MX17.1@daily updates
> Laptop : Work In Progress, Celeron monocore | DDR2 | Probably antiX ^^

User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 19561
Joined: Fri Dec 15, 2006 8:07 pm

Re: [ICONS] AnyColorYouLike Simple : smashing a bug...

#2

Post by Stevo » Fri Mar 02, 2018 7:52 pm

Thanks! It looks like the run.py script in github now matches yours.

User avatar
k_sz
Forum Regular
Forum Regular
Posts: 171
Joined: Mon Jan 29, 2018 7:11 am

Re: [ICONS] AnyColorYouLike Simple : smashing a bug...

#3

Post by k_sz » Fri Mar 02, 2018 10:19 pm

Great ! worron has been very reactive and efficient.
> Desktop : AMD 64 bits (unknowned monocore model :P looking for an AM2+ 4cores Phenom) | RAM 4Go DDR2 | MX17.1@daily updates
> Laptop : Work In Progress, Celeron monocore | DDR2 | Probably antiX ^^

Post Reply

Return to “Themes and Screenshots”