Results 1 to 10 of 10

Thread: No release Canidate

  1. #1
    Join Date
    Jan 2012
    Beans
    245

    No release Canidate

    Im trying to install some python packages in regards to learning python.

    The book came with an ubuntu installer (install.sh), which I ran:
    Code:
    glenn@design:~/book/hello_world$ chmod a+x install.sh
    glenn@design:~/book/hello_world$ ls -al
    total 28
    drwxr-xr-x  4 glenn glenn  4096 Jun 17  2009 .
    drwxrwxr-x  3 glenn glenn  4096 Jul 25 01:40 ..
    drwxr-xr-x  4 glenn glenn  4096 Jun 17  2009 easygui
    drwxr-xr-x 10 glenn glenn 12288 Jun 17  2009 examples
    -rwxr-xr-x  1 glenn glenn   353 Jun 17  2009 install.sh
    glenn@design:~/book/hello_world$ sudo ./install.sh
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Package python-numeric is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    
    E: Package 'python-numeric' has no installation candidate
    glenn@design:~/book/hello_world$
    But It came up with the error:

    Code:
    Package python-numeric is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    E: Package 'python-numeric' has no installation candidate
    Can someone tell me what that means please.

  2. #2
    Join Date
    Feb 2010
    Location
    Obscurial Springs
    Beans
    15,209
    Distro
    Ubuntu Budgie Development Release

    Re: No release Canidate

    The first output indicates 2009 packages so, they may be obsolete as the error message indicates. The massage also says the package has been renamed. you could check their website for more information but I only see the latest release.
    "Our intention creates our reality. "

    Ubuntu Documentation Search: Popular Pages
    Ubuntu: Security Basics
    Ubuntu: Flavors

  3. #3
    Join Date
    Apr 2008
    Location
    Australian in Germany
    Beans
    4,010
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: No release Canidate

    My guess is that the script is a couple of years old and is pointing to a package or source that is no longer there.

    Why not have a look in the script (open it with an editor) at what it is trying to do and see if you can't install the packages it wants, or the latest versions thereof, via the software centre or the synaptic package manager (which you will have to install first. It is not on 12.04 by default.)

    Any rate, I can see the package "python numeric" in both my software centre and my synaptic on this Ubuntu 10.10 install.
    Michael

  4. #4
    Join Date
    Jan 2012
    Beans
    245

    Re: No release Canidate

    I should have put this up first. Here is the script:
    Code:
    #!/bin/bash
    #standard python packages
    apt-get install python-numeric python-pygame python-pythoncard python-wxgtk2.8 spe
    
    #So uh, where is python anyway?
    export sitelib=`python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"`
    
    #easygui
    cp easygui/easygui.py $sitelib/easygui.py
    cp -R easygui $sitelib/easygui
    rm -Rf easygui
    Now I have had a look in Synaptic, and I have all the standard packages installed except python-numeric.
    It might well be obsolete, if so, is there a successor package?
    Im running Ubuntu 12.04.

  5. #5
    Join Date
    Jun 2012
    Location
    Sweden
    Beans
    324
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: No release Canidate

    Quote Originally Posted by Senior_Buckethead View Post
    I should have put this up first. Here is the script:
    Code:
    #!/bin/bash
    #standard python packages
    apt-get install python-numeric python-pygame python-pythoncard python-wxgtk2.8 spe
    
    #So uh, where is python anyway?
    export sitelib=`python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"`
    
    #easygui
    cp easygui/easygui.py $sitelib/easygui.py
    cp -R easygui $sitelib/easygui
    rm -Rf easygui
    Now I have had a look in Synaptic, and I have all the standard packages installed except python-numeric.
    It might well be obsolete, if so, is there a successor package?
    Im running Ubuntu 12.04.
    I found python-numpy.
    Quote Originally Posted by https://apps.ubuntu.com/cat/applications/python-numpy/
    Numpy contains a powerful N-dimensional array object, sophisticated
    (broadcasting) functions, tools for integrating C/C++ and Fortran
    code, and useful linear algebra, Fourier transform, and random number
    capabilities.

    Numpy replaces the python-numeric and python-numarray modules which are
    now deprecated and shouldn't be used except to support older
    software.
    Should be installed by defualt, otherwise run:
    Code:
    sudo apt-get install python-numpy

  6. #6
    Join Date
    Apr 2008
    Location
    Australian in Germany
    Beans
    4,010
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: No release Canidate

    Results of an internet search-

    http://sourceforge.net/projects/numpy/

    http://numpy.scipy.org/

    Before you try and install anything from outside, do some more searching in synaptic for the stuff on those pages. Chances are, it is all there somewhere.
    Michael

  7. #7
    Join Date
    Jan 2012
    Beans
    245

    Re: No release Canidate

    Turns out Ive got numpy
    Code:
    glenn@design:~$ sudo apt-get install python-numpy
    [sudo] password for glenn: 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    python-numpy is already the newest version.
    python-numpy set to manually installed.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    glenn@design:~$
    So do you reckon I could just rem out the apt-get line from the script and run it?

  8. #8
    Join Date
    Jun 2012
    Location
    Sweden
    Beans
    324
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: No release Canidate

    Quote Originally Posted by Senior_Buckethead View Post
    Turns out Ive got numpy
    Code:
    glenn@design:~$ sudo apt-get install python-numpy
    [sudo] password for glenn: 
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    python-numpy is already the newest version.
    python-numpy set to manually installed.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    glenn@design:~$
    So do you reckon I could just rem out the apt-get line from the script and run it?
    Yeah, you can always try. I'd do that.

  9. #9
    Join Date
    Jan 2012
    Beans
    245

    Re: No release Canidate

    Works. Thanks Guys.

    [SOLVED]

  10. #10
    Join Date
    Apr 2008
    Location
    Australian in Germany
    Beans
    4,010
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: No release Canidate

    Great. Have fun with python.
    Michael

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •