Closed gllmhyt closed 9 years ago
I've been able to reproduce it manually.. how did you install/upgrade Isso in the first place? When I do
~> mktmpenv --python python2.7 # temporary virtualenv
[*]/t/venv.CXVr> pip install isso
[*]/t/venv.CXVr> pip freeze | grep configparser
configparser==3.3.0r2
It installs an older version of configparser
. Now, when I manually upgrade configparser
:
[*]/t/venv.CXVr> pip install configparser==3.5.0b1
[*]/t/venv.CXVr> isso -c ~/dev/isso/sample.cfg run
Traceback (most recent call last):
File "/tmp/venv.CXVr/bin/isso", line 9, in <module>
load_entry_point('isso==0.9.7', 'console_scripts', 'isso')()
File "/tmp/venv.CXVr/lib/python2.7/site-packages/isso/__init__.py", line 219, in main
conf = Config.load(args.conf)
File "/tmp/venv.CXVr/lib/python2.7/site-packages/isso/core.py", line 130, in load
rv.read_file(io.StringIO(u'\n'.join(Config.default)))
AttributeError: IssoParser instance has no attribute 'read_file'
It is appearently an issue with the recent rewrite of configparser
: https://bitbucket.org/ambv/configparser/issue/8/configparser-import-broken-on-py27.
But the recent Travis CI run also produces the exception. I don't know how to workaround this issue. Both versions are not compatible and install differently (the previous version contained a hack to replace the default configparser
).
Ok. A bit tricky but I think I made it work by first deleting the system-wide installation of configparser, maybe a leftover of a previous installation of Isso before I installed it in a virtual environment. Then reinstalled Isso in a fresh virtalenv.
I made a small patch and it seems to work with Travis CI. You were not the only person with that error message. I'll release a new version today and try to run Travis CI each time a dependency changes (automatically).
I've uploaded a new version to PyPi that handles the newer version of configparser
. Unfortunately, you're still stuck with some leftovers from the older configparser
version.
Additionally, I submitted a Travis CI daily ping [1] to discover broken dependencies in the future.
Configuration file as default as possible; virtualenv in /var/www/isso; launched with supervisor as www-data; environment is PATH=/var/www/isso/bin and ISSO_SETTINGS="/var/www/isso/isso.cfg", ... The output is:
isso.conf
supervisor