Installation of genesis fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Genesis Sync |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Genesis cannot be installed because configobj is not installed automatically (you should add this dependency to the setuptools dependencies so it's solved automatically).
Further, genesis can not be started because there's no /usr/share/
Original Exception:
$ genesis
Traceback (most recent call last):
File "/usr/local/
genesis.main()
File "/usr/local/
g = Genesis(si)
File "/usr/local/
self.config = GenesisConfig()
File "/usr/local/
self.config = configobj.
File "/var/lib/
self.
File "/var/lib/
self.
File "/var/lib/
raise IOError('Reading configspec failed: %s' % e)
IOError: Reading configspec failed: Config file not found: "/usr/share/
(Both on Ubuntu Jaunty)
Related branches
- Frederik Elwert: Pending requested
-
Diff: 601 lines (+385/-83)5 files modifiedGenesis/genesis.py (+62/-39)
Genesis/ui/preferences_dialog.ui (+1/-1)
bin/genesis (+13/-3)
locale/templates/genesis.pot (+250/-0)
setup.py (+59/-40)
Changed in genesis-sync: | |
status: | Confirmed → Fix Committed |
Changed in genesis-sync: | |
status: | Fix Committed → Fix Released |
Thanks for your report.
I guess you installed genesis via »python setup.py install«? If you are on Ubuntu Jaunty, it should generally be easier to install genesis via deb-Package.
Regarding the dependency resolution: I don’t use setuptools at all, but rather plain distutils. So depenencies are not resolved at all, you should get the information about required modules from the README file. Dependency resolution is done at the packaging level, and the genesis-sync.deb depends on python-configobj. So I don’t regard this as a bug.
So there remains the issue with genesis.spec.ini. This is caused by setup.py installing to /usr/local, while Genesis expects the data to be in sys.prefix, which is /usr in Ubuntu. So you could work around this by installing genesis from the .deb package or with »python setup.py install --prefix /usr«.
I currently don’t know of a way to reliably check for the prefix where Genesis is installed. If anyone has an idea how to add support for varying prefixes, I’ll add this. Otherwise, a hint regarding the --prefix should at least be added to the README.