Page 1 of 1

LazyLibrarian - can't get it to run Windows 7 64

Posted: March 1st, 2013, 1:38 pm
by DictatorZero
ok, well I've been trying to use LazyLibrarian. I've tried running the .py file and all that happens is a command prompt window pops up and then closes. I've tried running the file from the command prompt as well as through the python console and I just get the same thing. I'm running Windows 7 ultimate 64-bit and I have both python 3.3 and 2.7 installed.

Re: LazyLibrarian - can't get it to run Windows 7 64

Posted: March 1st, 2013, 2:48 pm
by sander
Do this:

Open a terminal.
Type

Code: Select all

python -V
(capital V!!!), and post the output here

Then CD to the directory where the file LazyLibrarian.py is, and type

Code: Select all

python LazyLibrarian.py 
and post the output here.

Re: LazyLibrarian - can't get it to run Windows 7 64

Posted: March 2nd, 2013, 8:37 am
by DictatorZero
C:\>python -V
'python' is not recognized as an internal or external command,
operable program or batch file.

**********
C:\>python LazyLibrarian.py
'python' is not recognized as an internal or external command,
operable program or batch file.

Re: LazyLibrarian - can't get it to run Windows 7 64

Posted: March 2nd, 2013, 8:53 am
by sander
OK ... and have you thought about what that means, and what the causes could be?

Re: LazyLibrarian - can't get it to run Windows 7 64

Posted: March 2nd, 2013, 10:10 am
by DictatorZero
umm...yes, but I'm not certain as to why that is as I have installed 2 different versions of Python.

Re: LazyLibrarian - can't get it to run Windows 7 64

Posted: March 2nd, 2013, 10:17 am
by sander
DictatorZero wrote:umm...yes, but I'm not certain as to why that is as I have installed 2 different versions of Python.
Apparently Windows can't find them. Or, more correctly: "python" is not in your Windows path. That's strange: I would expect that installing python on Windows would put it into the path.

I can help you with SABnzbd stuff, I can try to help with LayyLibrarian stuff, but finding out how you can setup and use python on your Windows is a bit off for me; I don't use Windows.

Re: LazyLibrarian - can't get it to run Windows 7 64

Posted: March 2nd, 2013, 1:06 pm
by DictatorZero
I'll do some research on windows/python integration to see if I can hunt down why windows doesn't seem to notice it's there and then try everything again.

Re: LazyLibrarian - can't get it to run Windows 7 64

Posted: March 2nd, 2013, 1:51 pm
by DictatorZero
ok, got it working. if anyone else has this problem go to:

http://pythoncentral.org/how-to-install ... l-command/

and that will tell you how to fix it in Windows.

On a side note...any idea why most of my WebUI tools (LazyLibrarian, Gamez, HeadPhones) would keep sending me to a google "Localhost" search?

Re: LazyLibrarian - can't get it to run Windows 7 64

Posted: March 3rd, 2013, 3:40 am
by sander
So it was 'only' a python problem? Good to know.

Re: LazyLibrarian - can't get it to run Windows 7 64

Posted: March 3rd, 2013, 6:06 am
by shypike
DictatorZero wrote: On a side note...any idea why most of my WebUI tools (LazyLibrarian, Gamez, HeadPhones) would keep sending me to a google "Localhost" search?
Because your system's DNS forgot what "localhost" means.
Check the file c:\Windows\System32\drivers\etc\hosts
It should contain an entry for localhost.

Or because the URL points to a service that isn't running currently.
List one of those URLs.

Re: LazyLibrarian - can't get it to run Windows 7 64

Posted: March 3rd, 2013, 6:16 am
by DictatorZero
Because your system's DNS forgot what "localhost" means.
Check the file c:\Windows\System32\drivers\etc\hosts
It should contain an entry for localhost.
Ok...and if it doesn't, which mine doesn't for some reason?

Re: LazyLibrarian - can't get it to run Windows 7 64

Posted: March 4th, 2013, 3:03 pm
by shypike
SABnzbd tries to find out whether localhost is defined. If not it should fall back to 127.0.0.1.
I'm not sure if every other program has the same fall back.
(Also not whether SABnzbd always does it right).

The easiest fix is to add this line to the end of the hosts file:
127.0.0.1 localhost
(You need admin rights to do this).

Re: LazyLibrarian - can't get it to run Windows 7 64

Posted: April 12th, 2013, 3:16 pm
by the_lamper
I might be a noob, but three tips for other noobs on this topic:
1. Run cmd as administrator
2. Run "python LazyLibrarian.py -d" instead of "python LazyLibrarian.py -daemon"
3. And use Python 2.7 not 3 or above.