Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 537090 - dev-python/pyopengl-3.0.2-r1 - ImportError: No module named 'version'
Summary: dev-python/pyopengl-3.0.2-r1 - ImportError: No module named 'version'
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-19 23:09 UTC by Peter Asplund
Modified: 2015-10-12 13:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Asplund 2015-01-19 23:09:21 UTC
dev-python/pyopengl-3.0.2-r1 fails to install using Python 3.3:

[Lots of removed lines]
...
...
byte-compiling /var/tmp/portage/dev-python/pyopengl-3.0.2-r1/image//_python3.3/usr/lib64/python3.3/site-packages/OpenGL/GL/SGIX/list_priority.py to list_priority.cpython-33.pyc
byte-compiling /var/tmp/portage/dev-python/pyopengl-3.0.2-r1/image//_python3.3/usr/lib64/python3.3/site-packages/OpenGL/Tk/__init__.py to __init__.cpython-33.pyc
byte-compiling /var/tmp/portage/dev-python/pyopengl-3.0.2-r1/image//_python3.3/usr/lib64/python3.3/site-packages/OpenGL/lazywrapper.py to lazywrapper.cpython-33.pyc
byte-compiling /var/tmp/portage/dev-python/pyopengl-3.0.2-r1/image//_python3.3/usr/lib64/python3.3/site-packages/OpenGL/AGL/__init__.py to __init__.cpython-33.pyc
byte-compiling /var/tmp/portage/dev-python/pyopengl-3.0.2-r1/image//_python3.3/usr/lib64/python3.3/site-packages/OpenGL/converters.py to converters.cpython-33.pyc
byte-compiling /var/tmp/portage/dev-python/pyopengl-3.0.2-r1/image//_python3.3/usr/lib64/python3.3/site-packages/OpenGL/images.py to images.cpython-33.pyc
writing byte-compilation script '/var/tmp/portage/dev-python/pyopengl-3.0.2-r1/temp/tmp4cowi4.py'
/usr/bin/python3.3 -OO /var/tmp/portage/dev-python/pyopengl-3.0.2-r1/temp/tmp4cowi4.py
removing /var/tmp/portage/dev-python/pyopengl-3.0.2-r1/temp/tmp4cowi4.py
running install_egg_info
running egg_info
Traceback (most recent call last):
  File "setup.py", line 71, in <module>
    **metadata.metadata
  File "/usr/lib64/python3.3/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib64/python3.3/distutils/dist.py", line 930, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python3.3/distutils/dist.py", line 949, in run_command
    cmd_obj.run()
  File "/usr/lib64/python3.3/site-packages/setuptools/command/install.py", line 61, in run
    return orig.install.run(self)
  File "/usr/lib64/python3.3/distutils/command/install.py", line 581, in run
    self.run_command(cmd_name)
  File "/usr/lib64/python3.3/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib64/python3.3/distutils/dist.py", line 949, in run_command
    cmd_obj.run()
  File "/usr/lib64/python3.3/site-packages/setuptools/command/install_egg_info.py", line 33, in run
    self.run_command('egg_info')
  File "/usr/lib64/python3.3/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib64/python3.3/distutils/dist.py", line 949, in run_command
    cmd_obj.run()
  File "/usr/lib64/python3.3/site-packages/setuptools/command/egg_info.py", line 171, in run
    writer = ep.load(installer=installer)
  File "/usr/lib64/python3.3/site-packages/pkg_resources/__init__.py", line 2310, in load
    return self.resolve()
  File "/usr/lib64/python3.3/site-packages/pkg_resources/__init__.py", line 2316, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
ImportError: No module named 'version'
 * ERROR: dev-python/pyopengl-3.0.2-r1::gentoo failed (install phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_install
 *   environment, line 3813:  Called distutils-r1_src_install
 *   environment, line 1223:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_install'
 *   environment, line  317:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_install'
 *   environment, line 3378:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_install'
 *   environment, line 2504:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_install'
 *   environment, line 2502:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_install'
 *   environment, line  777:  Called distutils-r1_run_phase 'distutils-r1_python_install'
 *   environment, line 1192:  Called distutils-r1_python_install
 *   environment, line 1119:  Called esetup.py 'install' '--root=/var/tmp/portage/dev-python/pyopengl-3.0.2-r1/image//_python3.3'
 *   environment, line 1673:  Called die
 * The specific snippet of code:
 *       "${@}" || die
 * 
 * If you need support, post the output of `emerge --info '=dev-python/pyopengl-3.0.2-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/pyopengl-3.0.2-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-python/pyopengl-3.0.2-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/pyopengl-3.0.2-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/pyopengl-3.0.2-r1/work/PyOpenGL-3.0.2'
 * S: '/var/tmp/portage/dev-python/pyopengl-3.0.2-r1/work/PyOpenGL-3.0.2'

--------------------------------------------------------

$ emerge --info '=dev-python/pyopengl-3.0.2-r1::gentoo'
Portage 2.2.15 (python 3.3.5-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.8.4, glibc-2.20-r1, 3.18.1-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.18.1-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_920_@_2.67GHz-with-gentoo-2.2
KiB Mem:    12304288 total,   2642332 free
KiB Swap:   12418208 total,  12418208 free
Timestamp of tree: Sun, 18 Jan 2015 11:30:01 +0000
sh bash 4.3_p33
ld GNU ld (Gentoo 2.24 p1.4) 2.24
ccache version 3.2.1 [disabled]
app-shells/bash:          4.3_p33
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1-r4
dev-lang/python:          2.7.9-r1, 3.3.5-r1, 3.4.2
dev-util/ccache:          3.2.1-r1
dev-util/cmake:           3.1.0
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.7
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6-r1, 1.13.4, 1.14.1, 1.15
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.4
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.4
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.18 (virtual/os-headers)
sys-libs/glibc:           2.20-r1
Repositories: AzP x11 multimedia sunrise seden qt steam-overlay dotnet java gnome gentoo
Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=50 --keep-going"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://trumpetti.atm.tut.fi/gentoo/ http://ftp.ntua.gr/pub/linux/gentoo/ ftp://ftp.linux.ee/pub/gentoo/distfiles/ http://ftp.uoi.gr/mirror/OS/gentoo/"
LANG="en_EN.UTF-8"
LDFLAGS="-Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /var/lib/layman/x11 /var/lib/layman/multimedia /var/lib/layman/sunrise /var/lib/layman/seden /var/lib/layman/qt /var/lib/layman/steam /var/lib/layman/dotnet /var/lib/layman/java /var/lib/layman/gnome /usr/portage"
USE="3dnow 3dnowext 64bit S3TC X a52 aac aalib acl acpi ads alsa amazon amd64 amr amrnb amrwb apng asf aspell autoipd avahi avi bash-completion bidi binary-drivers bineditor bluetooth bookmarks branding btrfs bzip2 c++0x cairo ccache cdda cdr cg cgi cleartype cli clutter cmake colord cover coverart cracklib crypt css cue cups curl custom-optimization cxx daap dbus dconf debugger device-mapper devil dga dhclient dirac divx dmx dns dri dts dvd dvdr dvdread egl emboss encode evo exif f2fs fakevim fam fastcgi fat fbcon ffmpeg firefox flac fluidsynth fontconfig fortran fpm freeimage ftp fuse g3dvl gaim gbm gd gdbm gdu gflags ggi gif gimp git glamor glib glut gmail gmailtimestamps gmedia gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk2 gtk3 gtkhtml gvim gzip h224 h281 h323 howl-compat hpijs hwdb iconv icq icu idn imap inotify introspection iphone ipod ipv6 jabber java java6 jingle jpeg jpeg2k kde kdrive lame lcms ldap libnotify libsecret libsexy libssh2 libv4l libv4l2 llvm llvm-shared-libs lm_sensors mad madwifi mbox md5sum mdnsresponder-compat mh midi mikmod mime minizip mmx mmxext mng moc mod modplug modules mozembed mozilla moznocompose moznoirc moznomail moznoroaming mozsha1 mozsvg mp2 mp3 mp4 mp4live mpeg msn multimedia musepack musicbrainz nas nautilus ncurses nemesi networkmanager new-hpcups nfsv41 nls nptl nsplugin ntfs ntfsprogs nx ofa ogg openal opencore-amr opengl openmp openssl opensslcrypt optimization pam pango pcntl pcre pdf pdflib perl php pidgin pipechan png pnm policykit pop ppds private-headers pulseaudio pvr python python3 qml qt3support qt4 qtscript quicktime radio raw rdesktop rdp readline realmedia reiser4 reiserfs rtc s3tc samba sasl schroedinger scintilla sdl secure-delete session sid sip sndfile socialweb sockets spell sql sqlite srt sse sse2 sse3 sse4 sse4.1 sse4.2 sse4_1 sse4_2 ssh ssl ssse3 startup-notification static-analyzer steamruntime subtitles subversion suid svg systemd tcpd telepathy teletext tga theora threads tiff tls transcode truetype udev udisks unicode upcall upnp upower usb v4l v4l2 vaapi valgrind vdpau video videos vim vim-pager vim-syntax vim-with-x vorbis vte wav wavpack webdav webdav-neon webdav-serf webkit webkit2 webm wifi winbind wma wma-fixed wmf wmp wxwidgets x264 xanim xattr xcb xcomposite xdmcp xext xfs xinerama xkb xml xrandr xv xvid xvmc zeitgeist zeroconf zip zlib zoran" ABI_X86="64" ALSA_CARDS="emu10k1 hda_intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en sv" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_4" QEMU_SOFTMMU_TARGETS="i386 arm x86_64" QEMU_USER_TARGETS="i386 arm x86_64" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.3"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC

--------------------------------------------------------

$ emerge -pqv '=dev-python/pyopengl-3.0.2-r1::gentoo'
[ebuild  N    ] dev-python/pyopengl-3.0.2-r1  USE="-tk" PYTHON_TARGETS="python2_7 python3_3 python3_4"
Comment 1 Ian Delaney (RETIRED) gentoo-dev 2015-02-03 10:28:20 UTC
~/cvsPortage/gentoo-x86/dev-python/pyopengl $ ebuild pyopengl-3.0.2-r1.ebuild clean install

>>> Completed installing pyopengl-3.0.2-r1 into /mnt/gen2/TmpDir/portage/dev-python/pyopengl-3.0.2-r1/image/

This has got setuptools written all over it, particularly if you're relying on stable versions.  My setuptools installed in my system is the latest unstable.
Yours?
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2015-02-03 10:30:40 UTC
hmm also
Comment 3 Peter Asplund 2015-02-03 20:06:37 UTC
This happened when I tried installing the package for the first time, it was not part of an update, so I guess it doesn't help to remove it (since it's not installed) and try to install it again.

Setuptools:
root@skare$ eix setuptools
[U] dev-python/setuptools
     Available versions:  2.2 7.0 (~)8.0.1 (~)8.2.1 (~)9.1 (~)12.0.1 (~)12.0.3 (~)12.0.5 **9999 {test PYTHON_TARGETS="pypy pypy3 python2_7 python3_3 python3_4"}
     Installed versions:  12.0.1^t(14:26:10 2015-01-18)(-test PYTHON_TARGETS="python2_7 python3_3 python3_4 -pypy -pypy3")
     Homepage:            http://pypi.python.org/pypi/setuptools
     Description:         a collection of extensions to Distutils
Comment 4 Peter Asplund 2015-02-03 20:42:15 UTC
Removing python-daemon & setuptools allowed for setuptools and python-daemon to be installed successfully!
Comment 5 Peter Asplund 2015-02-03 20:44:54 UTC
It also allowed pyopengl to install successfully!
Comment 6 Peter Asplund 2015-10-12 12:06:45 UTC
I guess this can be closed since everything works with workarounds.
Comment 7 Justin Lecher (RETIRED) gentoo-dev 2015-10-12 13:30:22 UTC
So closing it then