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

SciSciPy install fails if apt sources aren't updated #3

Open
bollu opened this issue Sep 20, 2015 · 0 comments
Open

SciSciPy install fails if apt sources aren't updated #3

bollu opened this issue Sep 20, 2015 · 0 comments

Comments

@bollu
Copy link

bollu commented Sep 20, 2015

Full traceback:

vagrant@vagrant-ubuntu-precise-64:~/sciscipy-1.0.0$ sudo ./install
  Installing Dependencies
    > Installing Scilab...
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  antlr ca-certificates-java default-jre default-jre-headless docbook-xml docbook-xsl fop gcj-4.6-base gcj-4.6-jre gcj-4.6-jre-headless gcj-4.6-jre-lib gcj-jre gcj-jre-headless
  hicolor-icon-theme icedtea-6-jre-cacao icedtea-6-jre-jamvm icedtea-netx icedtea-netx-common java-common java-wrappers javahelp2 libamd2.2.0 libantlr-java libapache-pom-java
  libasound2 libasyncns0 libatk-wrapper-java libatk-wrapper-java-jni libatk1.0-0 libatk1.0-data libavahi-client3 libavahi-common-data libavahi-common3 libavalon-framework-java
  libavcodec53 libavformat53 libavutil51 libbatik-java libbsf-java libcommons-io-java libcommons-logging-java libcommons-parent-java libcups2 libdc1394-22 libfftw3-3 libflac8
  libflexdock-java libfop-java libgcj-common libgcj12 libgcj12-awt libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common libgif4 libgl1-mesa-glx libglapi-mesa libgsm1 libgtk2.0-0
  libgtk2.0-bin libgtk2.0-common libhdf5-serial-1.8.4 libilmbase6 libjasper1 libjaxp1.3-java libjeuclid-core-java libjgoodies-common-java libjgoodies-looks-java libjgraphx-java
  libjhdf5-java libjhdf5-jni libjlatexmath-fop-java libjlatexmath-java libjline-java libjogl-java libjogl-jni libjrosetta-java libjson0 liblaf-plugin-java liblcms2-2 libmatio0
  libnspr4 libnss3 libnss3-1d libogg0 libopencv-calib3d2.3 libopencv-core2.3 libopencv-features2d2.3 libopencv-flann2.3 libopencv-highgui2.3 libopencv-imgproc2.3
  libopencv-objdetect2.3 libopencv-video2.3 libopenexr6 liborc-0.4-0 libpulse0 libpvm3 libraw1394-11 librhino-java libsaxon-java libschroedinger-1.0-0 libskinlf-java
  libsndfile1 libspeex1 libswscale2 libtheora0 libtiff4 libumfpack5.4.0 libutempter0 libv4l-0 libv4lconvert0 libva1 libvorbis0a libvorbisenc2 libvpx1 libx11-xcb1 libxalan2-java
  libxcb-glx0 libxcb-shape0 libxcursor1 libxerces2-java libxi6 libxinerama1 libxml-commons-external-java libxml-commons-resolver1.1-java libxmlgraphics-commons-java libxss1
  libxtst6 libxv1 libxxf86dga1 libxxf86vm1 openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib pvm rhino scilab-cli scilab-data scilab-doc scilab-full-bin scilab-include
  scilab-minimal-bin scilab-sivp sgml-data shared-mime-info tcl8.5 tk8.5 ttf-dejavu-extra tzdata-java unzip x11-utils xbitmaps xterm
Suggested packages:
  docbook docbook-dsssl docbook-defguide docbook-xsl-doc-html docbook-xsl-doc-pdf docbook-xsl-doc-text docbook-xsl-doc libxslthl-java docbook-xsl-saxon xalan dbtoepub fop-doc
  libservlet2.5-java fastjar gcj-4.6-jdk gcj-jdk equivs javahelp2-doc libasound2-plugins libasound2-python libavalon-framework-java-doc bsh libcommons-io-java-doc
  libcommons-logging-java-doc libexcalibur-logkit-java liblog4j1.2-java cups-common libfftw3-dev libflexdock-java-doc libflexdock-java-demo libgcj12-dbg librsvg2-common gvfs
  libjasper-runtime libjaxp1.3-java-gcj libjlatexmath-java-doc libjline-java-doc libjogl-java-doc liblcms2-utils pulseaudio libraw1394-doc libjdom1-java libsaxon-java-doc
  libskinlf-java-demo speex libxalan2-java-doc libxsltc-java libxerces2-java-doc libxerces2-java-gcj libxml-commons-resolver1.1-java-doc icedtea-plugin libnss-mdns
  sun-java6-fonts fonts-ipafont-gothic fonts-ipafont-mincho ttf-wqy-microhei ttf-wqy-zenhei ttf-indic-fonts-core ttf-telugu-fonts ttf-oriya-fonts ttf-kannada-fonts
  ttf-bengali-fonts librhino-java-doc scilab-doc-fr scilab-doc-pt-br scilab-doc-ja gfortran scilab-swt scilab-scimax scilab-plotlib scilab-ann perlsgml doc-html-w3 opensp
  libxml2-utils tclreadline zip mesa-utils xfonts-cyrillic
The following NEW packages will be installed:
  antlr ca-certificates-java default-jre default-jre-headless docbook-xml docbook-xsl fop gcj-4.6-base gcj-4.6-jre gcj-4.6-jre-headless gcj-4.6-jre-lib gcj-jre gcj-jre-headless
  hicolor-icon-theme icedtea-6-jre-cacao icedtea-6-jre-jamvm icedtea-netx icedtea-netx-common java-common java-wrappers javahelp2 libamd2.2.0 libantlr-java libapache-pom-java
  libasound2 libasyncns0 libatk-wrapper-java libatk-wrapper-java-jni libatk1.0-0 libatk1.0-data libavahi-client3 libavahi-common-data libavahi-common3 libavalon-framework-java
  libavcodec53 libavformat53 libavutil51 libbatik-java libbsf-java libcommons-io-java libcommons-logging-java libcommons-parent-java libcups2 libdc1394-22 libfftw3-3 libflac8
  libflexdock-java libfop-java libgcj-common libgcj12 libgcj12-awt libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common libgif4 libgl1-mesa-glx libglapi-mesa libgsm1 libgtk2.0-0
  libgtk2.0-bin libgtk2.0-common libhdf5-serial-1.8.4 libilmbase6 libjasper1 libjaxp1.3-java libjeuclid-core-java libjgoodies-common-java libjgoodies-looks-java libjgraphx-java
  libjhdf5-java libjhdf5-jni libjlatexmath-fop-java libjlatexmath-java libjline-java libjogl-java libjogl-jni libjrosetta-java libjson0 liblaf-plugin-java liblcms2-2 libmatio0
  libnspr4 libnss3 libnss3-1d libogg0 libopencv-calib3d2.3 libopencv-core2.3 libopencv-features2d2.3 libopencv-flann2.3 libopencv-highgui2.3 libopencv-imgproc2.3
  libopencv-objdetect2.3 libopencv-video2.3 libopenexr6 liborc-0.4-0 libpulse0 libpvm3 libraw1394-11 librhino-java libsaxon-java libschroedinger-1.0-0 libskinlf-java
  libsndfile1 libspeex1 libswscale2 libtheora0 libtiff4 libumfpack5.4.0 libutempter0 libv4l-0 libv4lconvert0 libva1 libvorbis0a libvorbisenc2 libvpx1 libx11-xcb1 libxalan2-java
  libxcb-glx0 libxcb-shape0 libxcursor1 libxerces2-java libxi6 libxinerama1 libxml-commons-external-java libxml-commons-resolver1.1-java libxmlgraphics-commons-java libxss1
  libxtst6 libxv1 libxxf86dga1 libxxf86vm1 openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib pvm rhino scilab scilab-cli scilab-data scilab-doc scilab-full-bin
  scilab-include scilab-minimal-bin scilab-sivp sgml-data shared-mime-info tcl8.5 tk8.5 ttf-dejavu-extra tzdata-java unzip x11-utils xbitmaps xterm
0 upgraded, 153 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,803 kB/161 MB of archives.
After this operation, 400 MB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Err http://archive.ubuntu.com/ubuntu/ precise-updates/main libgtk2.0-common all 2.24.10-0ubuntu6.1
  404  Not Found
Err http://archive.ubuntu.com/ubuntu/ precise-updates/main libgtk2.0-0 amd64 2.24.10-0ubuntu6.1
  404  Not Found
Err http://archive.ubuntu.com/ubuntu/ precise-updates/main libgtk2.0-bin amd64 2.24.10-0ubuntu6.1
  404  Not Found
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gtk+2.0/libgtk2.0-common_2.24.10-0ubuntu6.1_all.deb  404  Not Found
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gtk+2.0/libgtk2.0-0_2.24.10-0ubuntu6.1_amd64.deb  404  Not Found
Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/g/gtk+2.0/libgtk2.0-bin_2.24.10-0ubuntu6.1_amd64.deb  404  Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
    > Installing python-dev...
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    > Installing python-numpy...
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-numpy is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  Installing sciscipy
running build
running build_py
running build_ext
building 'sciscipy' extension
C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC

compile options: '-DSCI="/usr/local/share/scilab" -DSCIDEBUG=0 -DNUMPY=1 -I/usr/include/scilab -I/usr/include/scilab/core -I/usr/include/scilab/call_scilab -I/usr/share/scilab/../../include/scilab -I/usr/share/scilab/../../include/scilab/core -I/usr/share/scilab/../../include/scilab/call_scilab -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c'
gcc: deallocator.c
In file included from deallocator.c:7:0:
deallocator.h:5:24: fatal error: api_common.h: No such file or directory
compilation terminated.
In file included from deallocator.c:7:0:
deallocator.h:5:24: fatal error: api_common.h: No such file or directory
compilation terminated.
error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DSCI="/usr/local/share/scilab" -DSCIDEBUG=0 -DNUMPY=1 -I/usr/include/scilab -I/usr/include/scilab/core -I/usr/include/scilab/call_scilab -I/usr/share/scilab/../../include/scilab -I/usr/share/scilab/../../include/scilab/core -I/usr/share/scilab/../../include/scilab/call_scilab -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c deallocator.c -o build/temp.linux-x86_64-2.7/deallocator.o" failed with exit status 1
running install
running build
running build_py
running build_ext
building 'sciscipy' extension
C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC

compile options: '-DSCI="/usr/local/share/scilab" -DSCIDEBUG=0 -DNUMPY=1 -I/usr/include/scilab -I/usr/include/scilab/core -I/usr/include/scilab/call_scilab -I/usr/share/scilab/../../include/scilab -I/usr/share/scilab/../../include/scilab/core -I/usr/share/scilab/../../include/scilab/call_scilab -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c'
gcc: deallocator.c
In file included from deallocator.c:7:0:
deallocator.h:5:24: fatal error: api_common.h: No such file or directory
compilation terminated.
In file included from deallocator.c:7:0:
deallocator.h:5:24: fatal error: api_common.h: No such file or directory
compilation terminated.
error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DSCI="/usr/local/share/scilab" -DSCIDEBUG=0 -DNUMPY=1 -I/usr/include/scilab -I/usr/include/scilab/core -I/usr/include/scilab/call_scilab -I/usr/share/scilab/../../include/scilab -I/usr/share/scilab/../../include/scilab/core -I/usr/share/scilab/../../include/scilab/call_scilab -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c deallocator.c -o build/temp.linux-x86_64-2.7/deallocator.o" failed with exit status 1
  Setting up variables
  Appending .bashrc to source /etc/environment file...
  Testing...
running test
['tests.test_call', 'tests.test_read', 'tests.test_matrix']
Traceback (most recent call last):
  File "./setup.py", line 122, in <module>
    cmdclass = { 'test': TestCommand}
  File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "./setup.py", line 86, in run
    tests = TestLoader().loadTestsFromNames(testfiles)
  File "/usr/lib/python2.7/unittest/loader.py", line 128, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib/python2.7/unittest/loader.py", line 100, in loadTestsFromName
    parent, obj = obj, getattr(obj, part)
AttributeError: 'module' object has no attribute 'test_call'
vagrant@vagrant-ubuntu-precise-64:~/sciscipy-1.0.0$

Ideally, the shell script would stop if the apt-get install initiated by install failed. I'll try and fix this once I get sandhi up and running

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

No branches or pull requests

1 participant