Hi Martin,

On Tue, Apr 07, 2015 at 09:12:24AM -0700, Martin wrote:
> Things are still very confusing. I tried to remove all the pip installed 
> packages required for Qtile using pip uninstall... and using find -iname to 
> find anything related to any of the pip libraries. I am basically 
> attempting to purge qtile from my system and all associated dependecies to 
> start over from scratch.
> 
> I am unable to remove libpangocairo-1.0-0, even though I am pretty certain 
> I only installed it for installing qtile from the source. 
> 
> sudo apt-get remove libpangocairo-1.0-0 
> Reading package lists... Done
> Building dependency tree       
> Reading state information... Done
> Some packages could not be installed. This may mean that you have
> requested an impossible situation or if you are using the unstable
> distribution that some required packages have not yet been created
> or been moved out of Incoming.
> The following information may help to resolve the situation:
> 
> The following packages have unmet dependencies:
>  default-jre : Depends: openjdk-7-jre (>= 7~u3-2.1.1) but it is not going 
> to be installed
> E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused 
> by held packages.
> 
> So this is concerning. I really hate when Ubuntu does this crap, I wonder 
> if Debian or Red Hat based distros are less suceptible to this. 

Try running:

sudo apt-get install -f

and then uninstalling what you want.

> Anyway, now when I attempt to install everything and run Qtile from 
> ./scripts/xephyr I got an error complaining about missing trollius and 
> references to asyncio. This is strange, as I installed Qtile from python3.4 
> and should not need to worry about this. Anyway, I installed anything I 
> could find following the installation instructions and now I get a brand 
> new error when I try to run Qtile:
> 
> Traceback (most recent call last):
>   File "/home/martin/Downloads/qtile/scripts/../bin/qtile", line 29, in 
> <module>
>     from libqtile.log_utils import init_log
>   File "/home/martin/Downloads/qtile/bin/libqtile/__init__.py", line 39, in 
> <module>
>     import asyncio
>   File "/usr/local/lib/python2.7/dist-packages/asyncio/__init__.py", line 
> 9, in <module>
>     from . import selectors
>   File "/usr/local/lib/python2.7/dist-packages/asyncio/selectors.py", line 
> 39
>     "{!r}".format(fileobj)) from None
>                                ^
> SyntaxError: invalid syntax
> 
> I tried a lot of different things to keep getting the error posted above, 
> but this one is new.

asyncio doesn't support python2 (as you noticed, viz. the syntax
errors). If you do:

head -n 1 /home/martin/Downloads/qtile/scripts/../bin/qtile

you probably see something about `python` or `python2`. Unless your
system python is python3 (it isn't if you're on ubuntu), then you're
running qtile with python2.

> Anyway, I tried to remove asyncio and now I get the same old error
> 
> 2015-04-07 12:10:37,635 qtile init_log:100  Starting Qtile
> 2015-04-07 12:10:37,945 qtile safe_import:49  Can't Import Widget: 
> '.mpdwidget.Mpd', No module named mpd
> 2015-04-07 12:10:37,960 qtile safe_import:49  Can't Import Widget: 
> '.wlan.Wlan', No module named pythonwifi.iwlibs
> 2015-04-07 12:05:30,007 qtile make_qtile:109  Error while reading config 
> file
> Traceback (most recent call last):
>   File "/home/martin/Downloads/qtile/scripts/../bin/qtile", line 107, in 
> make_qtile
>     c = confreader.File(options.configfile, is_restart=options.no_spawn)
>   File "/home/martin/Downloads/qtile/bin/libqtile/confreader.py", line 46, 
> in __init__
>     from .resources import default_config
>   File 
> "/home/martin/Downloads/qtile/bin/libqtile/resources/default_config.py", 
> line 114, in <module>
>     widget.Prompt(),
>   File "/home/martin/Downloads/qtile/bin/libqtile/widget/prompt.py", line 
> 351, in __init__
>     self.history = pickle.load(f)
>   File "/usr/lib/python2.7/pickle.py", line 1378, in load
>     return Unpickler(file).load()
>   File "/usr/lib/python2.7/pickle.py", line 858, in load
>     dispatch[key](self)
>   File "/usr/lib/python2.7/pickle.py", line 1090, in load_global
>     klass = self.find_class(module, name)
>   File "/usr/lib/python2.7/pickle.py", line 1126, in find_class
>     klass = getattr(mod, name)
> AttributeError: 'module' object has no attribute 'deque'
> Traceback (most recent call last):
>   File "/home/martin/Downloads/qtile/scripts/../bin/qtile", line 130, in 
> <module>
>     q = make_qtile()
>   File "/home/martin/Downloads/qtile/scripts/../bin/qtile", line 107, in 
> make_qtile
>     c = confreader.File(options.configfile, is_restart=options.no_spawn)
>   File "/home/martin/Downloads/qtile/bin/libqtile/confreader.py", line 46, 
> in __init__
>     from .resources import default_config
>   File 
> "/home/martin/Downloads/qtile/bin/libqtile/resources/default_config.py", 
> line 114, in <module>
>     widget.Prompt(),
>   File "/home/martin/Downloads/qtile/bin/libqtile/widget/prompt.py", line 
> 351, in __init__
>     self.history = pickle.load(f)
>   File "/usr/lib/python2.7/pickle.py", line 1378, in load
>     return Unpickler(file).load()
>   File "/usr/lib/python2.7/pickle.py", line 858, in load
>     dispatch[key](self)
>   File "/usr/lib/python2.7/pickle.py", line 1090, in load_global
>     klass = self.find_class(module, name)
>   File "/usr/lib/python2.7/pickle.py", line 1126, in find_class
>     klass = getattr(mod, name)
> AttributeError: 'module' object has no attribute 'deque'
> 
> I thought about the version of python I am using, I have both Python2.7 and 
> Python3.4. I have tried installing qtile using python setup.py... python2 
> setup.py... python3 setup.py python3.4 setup.py
> I have no idea of what happens when you use python setup.py, but I asume it 
> uses 3.4? Even if I install using python2 I still get errors with asyncio 
> and have to make sure it is not installed on my system.

It installs to whatever python version you invoked it with. So, if you
want to install a python3 version, you should use python3 setup.py
install.

Tycho

> Some thoughts on this? Why am I unable to get Qtile running again no matter 
> what I try? It used to work
> 
> 
> On Monday, April 6, 2015 at 3:00:05 PM UTC-4, Martin wrote:
> >
> > Well, I tried to apply the patch, but suddenly running xephyr was 
> > completely broken. This was very weird, because I could easily restart my 
> > own running instance of Qtile and everything worked fine.
> >
> > I tried to remove Qtile and xcffib and reinstall them. Now Qtile doesn't 
> > work anymore (I am back to running gnome) and I get the same error from 
> > xephyr:
> >
> > ./qtile/scripts/xephyr 
> > Initializing built-in extension Generic Event Extension
> > Initializing built-in extension SHAPE
> > Initializing built-in extension MIT-SHM
> > Initializing built-in extension XInputExtension
> > Initializing built-in extension XTEST
> > Initializing built-in extension BIG-REQUESTS
> > Initializing built-in extension SYNC
> > Initializing built-in extension XKEYBOARD
> > Initializing built-in extension XC-MISC
> > Initializing built-in extension SECURITY
> > Initializing built-in extension XINERAMA
> > Initializing built-in extension XFIXES
> > Initializing built-in extension RENDER
> > Initializing built-in extension RANDR
> > Initializing built-in extension COMPOSITE
> > Initializing built-in extension DAMAGE
> > Initializing built-in extension MIT-SCREEN-SAVER
> > Initializing built-in extension DOUBLE-BUFFER
> > Initializing built-in extension RECORD
> > Initializing built-in extension DPMS
> > Initializing built-in extension Present
> > Initializing built-in extension DRI3
> > Initializing built-in extension X-Resource
> > Initializing built-in extension XVideo
> > Initializing built-in extension XVideo-MotionCompensation
> > Initializing built-in extension SELinux
> > Initializing built-in extension GLX
> > [dix] Could not init font path element /usr/share/fonts/X11/cyrillic, 
> > removing from list!
> > [dix] Could not init font path element 
> > /usr/share/fonts/X11/100dpi/:unscaled, removing from list!
> > [dix] Could not init font path element /usr/share/fonts/X11/100dpi, 
> > removing from list!
> > 2015-04-06 14:50:31,084 qtile init_log:100  Starting Qtile
> > 2015-04-06 14:50:31,383 qtile safe_import:49  Can't Import Widget: 
> > '.mpdwidget.Mpd', No module named mpd
> > 2015-04-06 14:50:31,397 qtile safe_import:49  Can't Import Widget: 
> > '.wlan.Wlan', No module named pythonwifi.iwlibs
> > 2015-04-06 14:50:31,461 qtile make_qtile:109  Error while reading config 
> > file
> > Traceback (most recent call last):
> >   File "/home/martin/qtile/scripts/../bin/qtile", line 107, in make_qtile
> >     c = confreader.File(options.configfile, is_restart=options.no_spawn)
> >   File "/home/martin/qtile/bin/libqtile/confreader.py", line 46, in 
> > __init__
> >     from .resources import default_config
> >   File "/home/martin/qtile/bin/libqtile/resources/default_config.py", line 
> > 114, in <module>
> >     widget.Prompt(),
> >   File "/home/martin/qtile/bin/libqtile/widget/prompt.py", line 351, in 
> > __init__
> >     self.history = pickle.load(f)
> >   File "/usr/lib/python2.7/pickle.py", line 1378, in load
> >     return Unpickler(file).load()
> >   File "/usr/lib/python2.7/pickle.py", line 858, in load
> >     dispatch[key](self)
> >   File "/usr/lib/python2.7/pickle.py", line 1090, in load_global
> >     klass = self.find_class(module, name)
> >   File "/usr/lib/python2.7/pickle.py", line 1126, in find_class
> >     klass = getattr(mod, name)
> > AttributeError: 'module' object has no attribute 'deque'
> > Traceback (most recent call last):
> >   File "/home/martin/qtile/scripts/../bin/qtile", line 130, in <module>
> >     q = make_qtile()
> >   File "/home/martin/qtile/scripts/../bin/qtile", line 107, in make_qtile
> >     c = confreader.File(options.configfile, is_restart=options.no_spawn)
> >   File "/home/martin/qtile/bin/libqtile/confreader.py", line 46, in 
> > __init__
> >     from .resources import default_config
> >   File "/home/martin/qtile/bin/libqtile/resources/default_config.py", line 
> > 114, in <module>
> >     widget.Prompt(),
> >   File "/home/martin/qtile/bin/libqtile/widget/prompt.py", line 351, in 
> > __init__
> >     self.history = pickle.load(f)
> >   File "/usr/lib/python2.7/pickle.py", line 1378, in load
> >     return Unpickler(file).load()
> >   File "/usr/lib/python2.7/pickle.py", line 858, in load
> >     dispatch[key](self)
> >   File "/usr/lib/python2.7/pickle.py", line 1090, in load_global
> >     klass = self.find_class(module, name)
> >   File "/usr/lib/python2.7/pickle.py", line 1126, in find_class
> >     klass = getattr(mod, name)
> > AttributeError: 'module' object has no attribute 'deque'
> >
> > This is both with and without the patch, something has gone horribly wrong.
> > I am a bit confused that the error appears to be in the default config 
> > file. Xephyr usually loads my own config in .config/qtile/config.py
> >
> > Why is my Qtile broken? I don't know what happened :(
> >
> > I applied the patch to the __init.py__ files
> > ./usr/local/lib/python2.7/dist-packages/xcffib/__init__.py
> >
> > ./usr/local/lib/python3.4/dist-packages/xcffib-0.2.2-py3.4-linux-x86_64.egg/xcffib/__init__.py
> > by removing line 565 in both files
> >
> > :(
> >
> > On Monday, April 6, 2015 at 1:26:29 PM UTC-4, Tycho Andersen wrote:
> >>
> >> On Mon, Apr 06, 2015 at 10:22:32AM -0700, Martin wrote: 
> >> > I get this 
> >>
> >> Oh, hah; I forgot about that. Probably easiest to just apply the patch 
> >> manually (i.e. open the file and delete the one line that the patch 
> >> deletes yourself). 
> >>
> >> Tycho 
> >>
> >> > sudo -H pip install 
> >> > https://github.com/tych0/xcffib/zipball/has-error-not-connected 
> >> > 
> >> > Collecting 
> >> https://github.com/tych0/xcffib/zipball/has-error-not-connected 
> >> >   Downloading 
> >> > https://github.com/tych0/xcffib/zipball/has-error-not-connected (64kB) 
> >> >     100% |################################| 65kB 978kB/s 
> >> >     It looks like you need to generate the binding. 
> >> >     please run 'make xcffib' or 'make check'. 
> >> >     Complete output from command python setup.py egg_info: 
> >> >     running egg_info 
> >> >     
> >> >     creating pip-egg-info/xcffib.egg-info 
> >> >     
> >> >     writing requirements to pip-egg-info/xcffib.egg-info/requires.txt 
> >> >     
> >> >     writing pip-egg-info/xcffib.egg-info/PKG-INFO 
> >> >     
> >> >     writing top-level names to 
> >> pip-egg-info/xcffib.egg-info/top_level.txt 
> >> >     
> >> >     writing dependency_links to 
> >> > pip-egg-info/xcffib.egg-info/dependency_links.txt 
> >> >     
> >> >     writing manifest file 'pip-egg-info/xcffib.egg-info/SOURCES.txt' 
> >> >     
> >> >     warning: manifest_maker: standard file '-c' not found 
> >> > 
> >> >     It looks like you need to generate the binding. 
> >> >     
> >> >     please run 'make xcffib' or 'make check'. 
> >> >     
> >> >     ---------------------------------------- 
> >> >     Command "python setup.py egg_info" failed with error code 1 in 
> >> > /tmp/pip-aIasDv-build 
> >> > 
> >> > 
> >> > On Monday, April 6, 2015 at 11:41:56 AM UTC-4, Tycho Andersen wrote: 
> >> > > 
> >> > > On Mon, Apr 06, 2015 at 08:39:53AM -0700, Martin wrote: 
> >> > > > git clone https://github.com/tych0/xcffib 
> >> > > > cd xcffib 
> >> > > > python setup.py install 
> >> > > >   running install 
> >> > > >   It looks like you need to generate the binding. 
> >> > > >   please run 'make xcffib' or 'make check'. 
> >> > > > make xcffib 
> >> > > >   cabal --config-file=/dev/null configure --enable-tests 
> >> > > >   make: cabal: Command not found 
> >> > > >   make: *** [dist] Error 127 
> >> > > > make 
> >> > > >   cabal --config-file=/dev/null configure --enable-tests 
> >> > > >   make: cabal: Command not found 
> >> > > >   make: *** [dist] Error 127 
> >> > > > make check 
> >> > > >   cabal --config-file=/dev/null configure --enable-tests 
> >> > > >   make: cabal: Command not found 
> >> > > >   make: *** [dist] Error 127 
> >> > > > make install 
> >> > > >   make: *** No rule to make target `install'.  Stop. 
> >> > > > 
> >> > > > It appears I cannot install xcffib from source 
> >> > > 
> >> > > Right, you'll need all the haskell stuff. Probably the easiest is to 
> >> > > just use pip. 
> >> > > 
> >> > > > -- 
> >> > > > You received this message because you are subscribed to the Google 
> >> > > Groups "qtile-dev" group. 
> >> > > > To unsubscribe from this group and stop receiving emails from it, 
> >> send 
> >> > > an email to [email protected] <javascript:>. 
> >> > > > For more options, visit https://groups.google.com/d/optout. 
> >> > > 
> >> > > 
> >> > 
> >> > -- 
> >> > You received this message because you are subscribed to the Google 
> >> Groups "qtile-dev" group. 
> >> > To unsubscribe from this group and stop receiving emails from it, send 
> >> an email to [email protected]. 
> >> > For more options, visit https://groups.google.com/d/optout. 
> >>
> >>
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "qtile-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"qtile-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to