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

Got a program that plays well with SABnzbd? Share it here!
Post Reply
DictatorZero
Newbie
Newbie
Posts: 11
Joined: February 27th, 2013, 9:39 pm

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

Post 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.
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

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

Post 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.
DictatorZero
Newbie
Newbie
Posts: 11
Joined: February 27th, 2013, 9:39 pm

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

Post 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.
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

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

Post by sander »

OK ... and have you thought about what that means, and what the causes could be?
DictatorZero
Newbie
Newbie
Posts: 11
Joined: February 27th, 2013, 9:39 pm

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

Post by DictatorZero »

umm...yes, but I'm not certain as to why that is as I have installed 2 different versions of Python.
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

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

Post 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.
DictatorZero
Newbie
Newbie
Posts: 11
Joined: February 27th, 2013, 9:39 pm

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

Post 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.
DictatorZero
Newbie
Newbie
Posts: 11
Joined: February 27th, 2013, 9:39 pm

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

Post 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?
User avatar
sander
Release Testers
Release Testers
Posts: 8811
Joined: January 22nd, 2008, 2:22 pm

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

Post by sander »

So it was 'only' a python problem? Good to know.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

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

Post 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.
DictatorZero
Newbie
Newbie
Posts: 11
Joined: February 27th, 2013, 9:39 pm

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

Post 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?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

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

Post 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).
the_lamper
Newbie
Newbie
Posts: 1
Joined: April 12th, 2013, 3:13 pm

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

Post 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.
Post Reply