On Fri, Dec 12, 2014 at 05:45:33PM -0800, Austin Lowery wrote: > Hey Gals and Guys, > > I'm just starting out in python (coming from PHP) and I I've got Qtile up > and running. To give you an idea of where I am starting from here is my > setup. > I wanted a fresh pallet to start from so I did the minimal server install > of Ubuntu 14.04 and installed qtile with apt from there. > python --version says that I have 2.7 as the default and whereis python > gives me the the idea that I've got both 3.4 and 2.7 installed. > > I don't know a whole lot about python, but I do know enough to know that > whenever you install libraries through pip you should be doing so in a > virtualEnv so you don't muddy up the waters for your default python install. > > I just tried to add the wlan widget to my config and got the following > error when trying to start x: > ImportError: No module named pythonwifi.iwlibs > > I'm assuming the easy fix would be to just pip install iwlib. > > But that would mean that the library would be installed to my vanilla > python environment and not the qtile one right? > > Whats the best way to get those libs installed? I like to RTFM, so if > someone wouldn't mind pointing to the right page, I would be grateful! :D
I don't know that we have a page for it, but if you install everything (including qtile) into your virtualenv and then put the bin directory for that virtual env in your path and run it from there [1], you should be ok. > As a side note, I ran qsh and ran the help command just to see if there > might be some sort of command already built for installing libs, but there > wasn't one. I think it would be cool to have a command there, if that would > be the right place for it. The reason we've traditionally avoided installing all dependencies for the widgets is just because there are a lot of them, and not everyone uses every widget. We could maintain a requirements.txt for the widgets themselves, if people would find that useful. I'm not sure what the best way to expose that as a command would be, though. qtile/qsh have specific functions, so they don't seem like the right place. Maybe just another command in /usr/share or something? Tycho [1]: http://virtualenv.readthedocs.org/en/latest/virtualenv.html#activate-script -- 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.
