Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
setuptools and java-config failed to compile with python 2.7
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
dark-wulf
n00b
n00b


Joined: 02 Feb 2006
Posts: 29

PostPosted: Tue Dec 17, 2013 6:00 pm    Post subject: setuptools and java-config failed to compile with python 2.7 Reply with quote

I am not sure if it is the fault of a system crash i had some days ago where the complete ext4 journal of my root drive was restored and "corrected" but setuptools and java-config don’t compile any more and i can’t update my system, also there are some packages emerge wants to install as "new" but they are all ready installed.

Tried different python 2 and setuptool versions but no success.

setuptools error
Code:
>>> Compiling source in /media/temp/portage/temp/portage/dev-python/setuptools-1.1.6/work/setuptools-1.1.6 ...
 * python3_3: running distutils-r1_run_phase distutils-r1_python_compile
 * python2_7: running distutils-r1_run_phase distutils-r1_python_compile
/usr/bin/python2.7 setup.py build
/usr/bin/python3.3 setup.py build
Traceback (most recent call last):
  File "setup.py", line 30, in <module>
    from setuptools.command.test import test as _test
  File "/media/temp/portage/temp/portage/dev-python/setuptools-1.1.6/work/setuptools-1.1.6-python2_7/setuptools/command/test.py", line 6, in <module>
    from unittest import TestLoader, main
  File "/usr/lib64/python2.7/unittest/__init__.py", line 61, in <module>
    from .suite import BaseTestSuite, TestSuite
ImportError: cannot import name BaseTestSuite
 * ERROR: dev-python/setuptools-1.1.6::gentoo failed (compile phase):
 *   (no error message)


javasetup error
Code:
>>> Compiling source in /media/temp/portage/temp/portage/dev-java/java-config-2.2.0/work/java-config-2.2.0 ...
 * python3_3: running distutils-r1_run_phase distutils-r1_python_compile
 * python2_7: running distutils-r1_run_phase distutils-r1_python_compile
/usr/bin/python3.3 setup.py build
/usr/bin/python2.7 setup.py build
Traceback (most recent call last):
  File "setup.py", line 11, in <module>
    import fileinput, os, subprocess, sys, unittest
  File "/usr/lib64/python2.7/unittest/__init__.py", line 61, in <module>
    from .suite import BaseTestSuite, TestSuite
ImportError: cannot import name BaseTestSuite
 * ERROR: dev-java/java-config-2.2.0::gentoo failed (compile phase):
 *   (no error message)


eselect python list
Code:
Available Python interpreters:
  [1]   python2.7 *
  [2]   python3.2
  [3]   python3.3


emerge --info
Code:
Portage 2.2.7 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.17, 3.12.5-gentoo x86_64)
=================================================================
System uname: Linux-3.12.5-gentoo-x86_64-AMD_Phenom-tm-_II_X4_970_Processor-with-gentoo-2.2
KiB Mem:     8180464 total,   4700952 free
KiB Swap:    4194300 total,   4194300 free
Timestamp of tree: Tue, 17 Dec 2013 14:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.2.5-r3, 3.3.3
dev-util/cmake:           2.8.12.1-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.6, 1.14
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1, 4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.12 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo vdr-devel vdr-testing owncloud-client zugaina steam-overlay bitcoin x-portage
ACCEPT_KEYWORDS="amd64 ~amd64 ~x86"
ACCEPT_LICENSE="* -@EULA NVIDIA-CUDA license(s) TeamViewer license(s) Google-TOS license(s) google-chrome DOOM3 AdobeFlash-11.x NVIDIA PUEL Q3AEULA dlj-1.1 skype-4.0.0.7-copyright googleearth Oracle-BCLA-JavaSE Intel-SDP MakeMKV-EULA license(s)"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fforce-addr -fprefetch-loop-arrays -mabm -msse -msse2 -msse3 -mmmx -m3dnow -msse4a -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
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.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -fforce-addr -fprefetch-loop-arrays -mabm -msse -msse2 -msse3 -mmmx -m3dnow -msse4a -fomit-frame-pointer"
DISTDIR="/media/temp/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n -j2 --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 strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.netcologne.de/gentoo/"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -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="/media/temp/portage/temp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/vdr-devel /var/lib/layman/vdr-testing /var/lib/layman/owncloud-client /var/lib/layman/zugaina /var/lib/layman/steam /var/lib/layman/bitcoin /usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aacs acl acpi alisp alsa amd64 amr apache2 bash-completion berkdb binary-drivers bluetooth bluray branding bzip2 cairo cdda cddb cdio cdparanoia cdr chipcard cli colordiff consolekit corefonts cracklib crypt css cuda cups cxx dbus divx4linux dri dts dv dvb dvbplayer dvbsetup dvd dvdr dvdread eapi-2 emboss encode esd exif extensions faac faad fam fame fat ffmpeg firefox flac fortran fuse gd gdbm gif glitz gnutls gpg gpm gsm gstreamer gtk guile h224 h281 h323 hbci howl iconv id3 id3tag ipv6 java jepg jpeg json jumpplay kate lame lcms ldap libnotify liemikuutio lm_sensors mad matroska mdnsresponder-compat midi mjpeg mkv mmx mmxext mng mp2 mp3 mp4 mp4live mpeg mpeg2 msn mudflap multilib musepack mysql nano-syntax nat ncurses networking nforce2 nls nptl nptlonly nsplugin nvidia objc ogg opencl opengl openmp pae pam pango pcre pdf pidgin pmu png pni ppds python python3 qt3support qt4 quicktime readline sasl savedconfig sdl secure-delete semantic-desktop session simplexml sip smp spell sqlite sse sse2 sse3 sse4a ssl ssse3 startup-notification steamruntime subtitles svg symlink taglib tagwriting tcpd theora threads thunar thunderbird tiff timidity tk truetype udev udisks unicode upower usb v4l v4l2 vaapi vboxwebsrv vcd vdpau vdr vdradmin-am video videos virtualbox vorbis wav wavpack win32codecs wxwidgets x264 xcb xine xinerama xml xorg xulrunner xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="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" DVB_CARDS="usb-dib0700" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="arm x86_64 i386" QEMU_USER_TARGETS="arm x86_64 i386" RUBY_TARGETS="ruby19 ruby18" SANE_BACKENDS="net genesys" USERLAND="GNU" VIDEO_CARDS="nvidia" XFCE_PLUGINS="logout menu trash" 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"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


Thanks for any help

greetings
_________________
Gentoo rulez!!!
Gentoo for every one!!!
Gentoo for president!!!


Last edited by dark-wulf on Thu Dec 19, 2013 10:52 am; edited 1 time in total
Back to top
View user's profile Send private message
dark-wulf
n00b
n00b


Joined: 02 Feb 2006
Posts: 29

PostPosted: Wed Dec 18, 2013 12:42 pm    Post subject: Reply with quote

I remerged everything i could what is python and downloaded setuptools from the python page and run it with different python versions

Code:
# python2.7 setup.py
Traceback (most recent call last):
  File "setup.py", line 28, in <module>
    from setuptools.command.test import test as _test
  File "/root/src/setuptools/command/test.py", line 6, in <module>
    from unittest import TestLoader, main
  File "/usr/lib64/python2.7/unittest/__init__.py", line 61, in <module>
    from .suite import BaseTestSuite, TestSuite
ImportError: cannot import name BaseTestSuite


Code:
# python3.3 setup.py
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: no commands supplied


So there must be something wrong with python 2.7 :-(

No one got a hint for me?
_________________
Gentoo rulez!!!
Gentoo for every one!!!
Gentoo for president!!!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum