VideoCache
Videocache is no longer in development.

Unable to install videocache - AttributeError

by Anonymous on 28 Feb 2009

What steps will reproduce the problem?
1. Ubuntu 8.04.2
2. Python 2.5.2
3. iniparse-0.3.0
4. videocache-1.9.tar.gz
5. while installing videocache iniparse errors out...

# python setup.py install
Traceback (most recent call last):
  File "setup.py", line 395, in <module>
    main(root)
  File "setup.py", line 333, in main
    mainconf =  readMainConfig(readStartupConfig(config_file, root))
  File "/home/dmonty/Download/videocache-1.9/videocache/config.py", line 710, in readStartupConfig
    parser.readfp(confpp_obj)
  File "/usr/lib/python2.5/site-packages/iniparse/compat.py", line 115, in readfp
    self.data._readfp(fp)
  File "/usr/lib/python2.5/site-packages/iniparse/ini.py", line 581, in _readfp
    cur_option.extend(pending_lines)
AttributeError: 'NoneType' object has no attribute 'extend'

11 Answers

by Bernardo on 28 Feb 2009

Yes, I went through the same problem.
iniparse-0.3.0 is the culprit!
Just rollback your iniparse to version 0.2.4 and it should install just fine.

by Dean Montgomery on 1 Mar 2009

I tried rolling back to 0.2.4 but it didn't help.

The initparse developer appears to be actively helping me fix the problem.

http://code.google.com/p/iniparse/issues/list

by Dean Montgomery on 2 Mar 2009

The developer has fixed the problem in svn.

by ezz on 12 Apr 2009

while install video cache-1.9.1 :
this error appeared to me and i can`t solve it :
sudo python setup.py install

Traceback (most recent call last):
  File "setup.py", line 396, in <module>
    main(root)
  File "setup.py", line 334, in main
    mainconf =  readMainConfig(readStartupConfig(config_file, root))
  File "/home/ezz/Desktop/videocache-1.9.1/videocache/config.py", line 697, in readStartupConfig
    parser.readfp(confpp_obj)
  File "/usr/lib/python2.5/site-packages/iniparse/compat.py", line 106, in readfp
    self.data.readfp(fp)
  File "/usr/lib/python2.5/site-packages/iniparse/ini.py", line 471, in readfp
    for line in fp:
TypeError: iteration over non-sequence

can any one help me !!

by Omartux on 12 Apr 2009

i have a transparent proxy with squid and iptables working.

INTERNET-----ADSL----PROXY----LAN----USER

when i install videocache, all is ok,
but
when i paste the "videocache config for squid" in squid.conf, and restart the services, the connection between the LAN and INTERNET fail.

On the other hand, the LAN can ping the ADSL router, but firefox is no working in LAN.

could you help me?
Omar

by Kulbir Saini on 12 Apr 2009

Ezz,

That looks like an iniparse error. Can you please check that with iniparse developers?

Thank You!

by Kulbir Saini on 12 Apr 2009

Omartux,

Does squid crashes after you paste the videocache config? If so, please check videocache log (/var/log/videocache/videocache.log) for errors or squid logs (cache.log) for python exceptions.

Thank You!

by Omartux on 12 Apr 2009

you right
the problem was the config file of videocache
you are the man dude, all is working now

thank you for your work,videocache is AWESOME
thank you again

Omar

by Kulbir Saini on 12 Apr 2009

Omartux,

Have fun caching all those videos :D

Thank You!

by hannah on 3 Jun 2009

i have been using older version of vc in the past few months. the last that i used to install is version 1.9 and it works just fine, until my box crashes and i need to redo from the start.

this current version (1.9.1) gives me the same problem as stated above...

it will be much appreciated if someone can send me a copy of the version 1.9? tnx....

by Kulbir Saini on 27 Jun 2009

Hannah,

Sorry for replying this late. You can download older version from here.

Thank you for using videocache.