You are hereForums / Support / Cannot pass step: videocache-1.9.1 # python setup.py install

Finally, the wait is over!!! Videocache 2.0.0 is here :-) Check changelog for changes and new features in this version. Contact Us for your free upgrade!!

Cannot pass step: videocache-1.9.1 # python setup.py install


2 replies [Last post]
Offline
Joined: Jun 18 2009
Cannot pass step: videocache-1.9.1 # python setup.py install

I have installed squid and its running fine
now i am trying to install videocache

First i did # python setup.py install [in videocache-1.9.1 folder]
But at that time python-iniparse was not installed

I then installed iniparse, but now when i try to do # python setup.py install i get the following errors:

vpro:/home/ztel/videocache-1.9.1# python setup.py install
Traceback (most recent call last):
File "setup.py", line 397, in
setup(root)
File "setup.py", line 288, in setup
if not dir_perms_and_ownership(new_dir, squid_user, squid_group):
File "setup.py", line 76, in dir_perms_and_ownership
user = pwd.getpwnam(user)[2]
KeyError: 'getpwnam(): name not found: squid'
vpro:/home/ztel/videocache-1.9.1#

and here is the videocache setup log

2009-06-17 13:03:15,039 INFO Directory /etc/apache2/conf.d already exists.
2009-06-17 13:03:15,039 INFO Directory /etc already exists.
2009-06-17 13:03:15,039 INFO Directory /usr/share already exists.
2009-06-17 13:03:15,039 INFO Directory /usr/share/man/man8 already exists.
2009-06-17 13:03:15,039 INFO Directory /usr/sbin already exists.
2009-06-17 13:03:15,040 INFO Directory /var/log/videocache already exists.

Please tell me how i can overcome this.
Thank you very much

Offline
Joined: Jun 19 2009

When videocache tries to install its files by default it attempts to 'chown' them to the 'squid' user on the machine. In your case, this user does not exist. Please modify setup.py (lines 33 and 35) to reflect the user which you run Squid under.

admin's picture
Offline
Joined: Nov 2 2008

Marklodge,

I guess you are using Debian or a derivative. In your case squid is run by user proxy and not squid (in Red Hat derivatives). So you need to change the user and group to proxy before attempting installation.

Thank You!

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <code>
  • Lines and paragraphs break automatically.
  • HTML tags will be transformed to conform to HTML standards.
  • Search Engines will index and follow ONLY links to allowed domains.

More information about formatting options

CAPTCHA
Are you a human visitor ?
Image CAPTCHA
Enter the characters shown in the image.

My Book on Squid

Purchase/Renew

Go to Pricing page to purchase a new license or renew your existing license.

Recent comments

Who's online

There are currently 0 users and 163 guests online.