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

installation fails on Gentoo #38

Closed
jhoblitt opened this issue Jul 29, 2012 · 5 comments
Closed

installation fails on Gentoo #38

jhoblitt opened this issue Jul 29, 2012 · 5 comments

Comments

@jhoblitt
Copy link

jhoblitt@dull ~ $ sudo pip install rapid-spring --upgrade
Downloading/unpacking rapid-spring
Downloading rapid-spring-0.6.0.tar.gz
Running setup.py egg_info for package rapid-spring
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'executables'
warnings.warn(msg)

Downloading/unpacking bitarray (from rapid-spring)
Downloading bitarray-0.8.0.tar.gz (46Kb): 46Kb downloaded
Running setup.py egg_info for package bitarray

Installing collected packages: rapid-spring, bitarray
Running setup.py install for rapid-spring
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'executables'
warnings.warn(msg)
changing mode of build/scripts-2.7/rapid from 600 to 755
changing mode of build/scripts-2.7/rapid-gui from 600 to 755

changing mode of /usr/bin/rapid to 755
changing mode of /usr/bin/rapid-gui to 755

Running setup.py install for bitarray
building 'bitarray._bitarray' extension
x86_64-pc-linux-gnu-gcc -pthread -fPIC -I/usr/include/python2.7 -c bitarray/_bitarray.c -o build/temp.linux-x86_64-2.7/bitarray/_bitarray.o
x86_64-pc-linux-gnu-gcc -pthread -shared build/temp.linux-x86_64-2.7/bitarray/_bitarray.o -L/usr/lib64 -lpython2.7 -o build/lib.linux-x86_64-2.7/bitarray/_bitarray.so

Successfully installed rapid-spring bitarray
Cleaning up...
jhoblitt@dull ~ $ rapid -v Zero-K test-7550
Traceback (most recent call last):
File "/usr/bin/rapid", line 4, in
from rapid.ui.text.main import main
ImportError: No module named rapid.ui.text.main
jhoblitt@dull ~ $ /usr/bin/rapid
Traceback (most recent call last):
File "/usr/bin/rapid", line 4, in
from rapid.ui.text.main import main
ImportError: No module named rapid.ui.text.main

@tvo
Copy link
Owner

tvo commented Jul 30, 2012

Thanks for the report! Strange issue on first sight though. Can't reproduce here yet (on Fedora), though then again the whole sudo pip-python install rapid-spring --upgrade fails for me at the moment.

@jhoblitt
Copy link
Author

On 07/30/2012 12:19 PM, Tobi Vollebregt wrote:

Thanks for the report! Strange issue on first sight though. Can't reproduce here yet (on Fedora), though then again the whole sudo pip-python install rapid-spring --upgrade fails for me at the moment.


Reply to this email directly or view it on GitHub:
#38 (comment)

I was trying to rule out something in the env being different with sudo
and it looks like there is some sort of permissions issue.

dull ~ # pip uninstall rapid-spring
Uninstalling rapid-spring:
/usr/bin/rapid
/usr/bin/rapid-gui
/usr/lib64/python2.7/site-packages/rapid
/usr/lib64/python2.7/site-packages/rapid_spring-0.6.0-py2.7.egg-info
Proceed (y/n)? y
Successfully uninstalled rapid-spring
dull ~ # pip install rapid-spring
Downloading/unpacking rapid-spring
Downloading rapid-spring-0.6.0.tar.gz
Running setup.py egg_info for package rapid-spring
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown
distribution option: 'executables'
warnings.warn(msg)

Requirement already satisfied (use --upgrade to upgrade): bitarray in
/usr/lib64/python2.7/site-packages (from rapid-spring)
Installing collected packages: rapid-spring
Running setup.py install for rapid-spring
/usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown
distribution option: 'executables'
warnings.warn(msg)
changing mode of build/scripts-2.7/rapid from 644 to 755
changing mode of build/scripts-2.7/rapid-gui from 644 to 755

changing mode of /usr/bin/rapid-gui to 755
changing mode of /usr/bin/rapid to 755

Successfully installed rapid-spring
Cleaning up...
dull ~ # /usr/bin/rapid
Usage: rapid [options...] [arguments...]

Where the different verbs and their arguments are:

  • upgrade: Install the latest package for all pinned tags.
  • clean-upgrade: Equivalent to 'upgrade' followed by
    'uninstall-unpinned'.
  • pin <tag(s)>: Pins tags and installs the latest packages for those
    tags.
  • unpin <tag(s)>: Unpins tags. Does not uninstall any packages.
  • install <package(s)>: Install packages. Does not pin any tags.
  • uninstall <package(s)>: Uninstall packages. Unpins their tags if any.
  • list-tags [tag]: List all tags that match tag.
  • list-pinned-tags [tag]: Idem, but only pinned tags.
  • list-packages [package]: List all packages whose name contains
    package.
  • list-installed-packages [package]: Idem, but only installed packages.
  • uninstall-unpinned: Keep only the pinned tags and all dependencies.
  • collect-pool: Remove pool files not needed by any installed package.
  • make-sdd <tag|package> <dir>: Extract pool files of a package into
    ~/.spring/games/<dir>.

Examples:

rapid pin xta:latest # installs latest XTA
rapid pin s44:latest # installs latest Spring: 1944
rapid upgrade # upgrade all pinned tags

Other commands are for power users mostly, e.g.:

rapid list-tags '^(?!ba).*:(latest|stable|test)$' --regex
# This displays all tags ending with ':latest', ':stable' or ':test',
# which do not start with the string 'ba'.

dull ~ #
jhoblitt@dull ~ $ /usr/bin/rapid
Traceback (most recent call last):
File "/usr/bin/rapid", line 4, in
from rapid.ui.text.main import main
File "/usr/lib64/python2.7/site-packages/rapid/ui/text/main.py", line
6, in
from rapid.main import *
File "/usr/lib64/python2.7/site-packages/rapid/main.py", line 6, in

import rapid
File "/usr/lib64/python2.7/site-packages/rapid/rapid.py", line 4, in

from bitarray import bitarray
ImportError: No module named bitarray

@jhoblitt
Copy link
Author

And it appears that reinstalling bitarray as root fixes it. There is
obviously some sort of bug with pip here that's not rapid's issue. Not
sure if I have enough information to file a useful pip bug thou.

dull ~ # pip uninstall bitarray
Uninstalling bitarray:
/usr/lib64/python2.7/site-packages/bitarray
/usr/lib64/python2.7/site-packages/bitarray-0.8.0-py2.7.egg-info
Proceed (y/n)? y
Successfully uninstalled bitarray
dull ~ # pip install bitarray
Downloading/unpacking bitarray
Downloading bitarray-0.8.0.tar.gz (46Kb): 46Kb downloaded
Running setup.py egg_info for package bitarray

Installing collected packages: bitarray
Running setup.py install for bitarray
building 'bitarray._bitarray' extension
x86_64-pc-linux-gnu-gcc -pthread -fPIC -I/usr/include/python2.7 -c
bitarray/_bitarray.c -o build/temp.linux-x86_64-2.7/bitarray/_bitarray.o
x86_64-pc-linux-gnu-gcc -pthread -shared
build/temp.linux-x86_64-2.7/bitarray/_bitarray.o -L/usr/lib64
-lpython2.7 -o build/lib.linux-x86_64-2.7/bitarray/_bitarray.so

Successfully installed bitarray
Cleaning up...
dull ~ # su - jhoblitt
jhoblitt@dull ~ $ rapid
Usage: rapid [options...] [arguments...]

Where the different verbs and their arguments are:

  • upgrade: Install the latest package for all pinned tags.
  • clean-upgrade: Equivalent to 'upgrade' followed by
    'uninstall-unpinned'.
  • pin <tag(s)>: Pins tags and installs the latest packages for those
    tags.
  • unpin <tag(s)>: Unpins tags. Does not uninstall any packages.
  • install <package(s)>: Install packages. Does not pin any tags.
  • uninstall <package(s)>: Uninstall packages. Unpins their tags if any.
  • list-tags [tag]: List all tags that match tag.
  • list-pinned-tags [tag]: Idem, but only pinned tags.
  • list-packages [package]: List all packages whose name contains
    package.
  • list-installed-packages [package]: Idem, but only installed packages.
  • uninstall-unpinned: Keep only the pinned tags and all dependencies.
  • collect-pool: Remove pool files not needed by any installed package.
  • make-sdd <tag|package> <dir>: Extract pool files of a package into
    ~/.spring/games/<dir>.

Examples:

rapid pin xta:latest # installs latest XTA
rapid pin s44:latest # installs latest Spring: 1944
rapid upgrade # upgrade all pinned tags

Other commands are for power users mostly, e.g.:

rapid list-tags '^(?!ba).*:(latest|stable|test)$' --regex
# This displays all tags ending with ':latest', ':stable' or ':test',
# which do not start with the string 'ba'.

jhoblitt@dull ~ $

@tvo
Copy link
Owner

tvo commented Aug 2, 2012

Okay, great you were able to fix this yourself. Remains a strange issue though, didn't see this before.

@tvo tvo closed this as completed Aug 2, 2012
@QBarry
Copy link

QBarry commented Aug 19, 2012

For the record: same happend to me when python switched to 3.2 after an update, after switching it back to 2.7 (eselect python set <..>) all worked again:

eselect python list

Available Python interpreters:
[1] python2.7 *
[2] python3.2

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

3 participants