Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'NoneType' object has no attribute 'extend' #11

Closed
GoogleCodeExporter opened this issue Apr 15, 2015 · 3 comments
Closed

Comments

@GoogleCodeExporter
Copy link

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'



Original issue reported on code.google.com by montgome...@gmail.com on 28 Feb 2009 at 3:39

@GoogleCodeExporter
Copy link
Author

Could you provide the INI file which leads to this error?

Original comment by psobe...@gmail.com on 28 Feb 2009 at 4:08

@GoogleCodeExporter
Copy link
Author

I believe this is caused by empty lines before the first option in a section.  
I've
been able to reproduce it.

Original comment by psobe...@gmail.com on 28 Feb 2009 at 4:18

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

Fixed in revision 115.

Original comment by psobe...@gmail.com on 28 Feb 2009 at 10:02

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant