Closed ExcaliburZero closed 9 years ago
This seems to be an issue with the gi
module of Python not being installed. This module seems to be related to the GObject
and Gtk
modules.
It seems that PyGObject
needs to be installed via Pip.
This question on AskUbuntu may be helpful:
This issue on another project seems to be relevant:
The following repository's Travis CI config seems to be able to solve this problem:
It seems that this commit in another repository was able to fix this same error:
It looks like the issue is that apt-get can be used to install Python dependencies but they are not noticed by Travis CI unless the following code is in the config file.
virtualenv:
system_site_packages: true
See: http://danielnouri.org/notes/2012/11/23/use-apt-get-to-install-python-dependencies-for-travis-ci/
I think the issue has now been fixed. I just need to rebase and squash the commits and then I can work on the next error.
However this seems to have caused another problem which causes Python versions 2.6, 3.3, 3.4, and nightly to not even get to the install process.
Example (Python 3.3):
$ source ~/virtualenv/python3.3_with_system_site_packages/bin/activate
/home/travis/build.sh: line 41: /home/travis/virtualenv/python3.3_with_system_site_packages/bin/activate: No such file or directory
The command "source ~/virtualenv/python3.3_with_system_site_packages/bin/activate" failed and exited with 1 during .
I attempted to add sudo: required
to the Travis CI config in attempt to fix the problems, however that didn't work.
This issue from the Travis CI repository is related:
This issue may also be relevant:
According to the user dstufft in the Travis CI issue 2231, a solution like the following could work:
$ sudo add-apt-repository -y ppa:fkrull/deadsnakes
$ sudo apt-get -y update
$ sudo apt-get install python3.3 python3.3-dev
$ virtualenv -p /usr/bin/python3.3 ~/virtualenvs/3.3_debian
$ source ~/virtualenvs/3.3_debian/bin/activate
I tried implementing dsufft's solution, but I have not gotten it to work yet.
This page may be helpful:
After doing so more tests I decided to revert to using system_site_packages: true
to allow the installation of Python libraries. However, I did have to remove testing for all versions of Python except 3.2 and 2.7, as the others did not allow the use of this method.
The following errors are currently showing up in Travis CI. Python seems unable to import
gi.repository
.