Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[gentoo-user] java-config, flaggie

25 views
Skip to first unread message

Silvio Siefke

unread,
Jun 13, 2013, 2:20:02 PM6/13/13
to
Hello,

i have problems when i start java-config --help or flaggie to set USE
Variables, i become the follow msg as error:

siefke@gentoo-mobile ~ $ flaggie
Traceback (most recent call last):
File "/usr/bin/flaggie", line 5, in <module>
from pkg_resources import load_entry_point
ImportError: No module named pkg_resources

siefke@gentoo-mobile ~ $ java-config --help
Traceback (most recent call last):
File "/usr/bin/java-config-2", line 5, in <module>
from pkg_resources import load_entry_point
ImportError: No module named pkg_resources


Can it be that the Python Installation is broke? I have try to install
Onboard (http://launchpad.net/onboard), since then is this problem. Has
someone an idea?


Thank you for help & Greetings
Silvio

Daniel Pielmeier

unread,
Jun 13, 2013, 2:30:01 PM6/13/13
to
pkg_resources is provided by setuptools. Maybe there is something wrong
with it.

--
Regards
Daniel


signature.asc

Silvio Siefke

unread,
Jun 13, 2013, 8:00:01 PM6/13/13
to
Hello,

On Thu, 13 Jun 2013 20:29:00 +0200 Daniel Pielmeier <bil...@gentoo.org>
wrote:

> pkg_resources is provided by setuptools. Maybe there is something
> wrong with it.

Yes i think so, now is the problem that they need python package in
version which is not in portage:

siefke@gentoo-mobile ~ $ flaggie
Traceback (most recent call last):
File "/usr/bin/flaggie", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/lib64/python3.2/site-packages/pkg_resources.py", line 2852, in <module>
working_set.require(__requires__)
File "/usr/lib64/python3.2/site-packages/pkg_resources.py", line 697, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib64/python3.2/site-packages/pkg_resources.py", line 595, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: setuptools==0.7.2

siefke@gentoo-mobile ~ $ java-config -help
Traceback (most recent call last):
File "/usr/bin/java-config-2", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/lib64/python3.2/site-packages/pkg_resources.py", line 2852, in <module>
working_set.require(__requires__)
File "/usr/lib64/python3.2/site-packages/pkg_resources.py", line 697, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib64/python3.2/site-packages/pkg_resources.py", line 595, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: setuptools==0.7.2

Can i install manual the tool in this version?

Thank you & Greetings
Silvio

Daniel Pielmeier

unread,
Jun 14, 2013, 5:00:03 AM6/14/13
to
2013/6/14 Silvio Siefke <siefke...@web.de>:
setuptools has been bumped recently to 0.7.2. However I don't know why
the packages should require a version which is not even available! I
think your problem must lie deeper. It looks like you have set python3
as main python interpreter. I recommend switching back to python2.

--
Regards
Daniel

Silvio Siefke

unread,
Jun 14, 2013, 7:00:02 AM6/14/13
to
Hello,

On Fri, 14 Jun 2013 10:50:19 +0200 Daniel Pielmeier <bil...@gentoo.org>
wrote:


> setuptools has been bumped recently to 0.7.2. However I don't know why
> the packages should require a version which is not even available! I
> think your problem must lie deeper. It looks like you have set python3
> as main python interpreter. I recommend switching back to python2.


Now come bigger problems, and i have all python modules build new, with
python_targets 2.7 and 3.2.

Python Interpreter:
gentoo-mobile ~ # eselect python list
Available Python interpreters:
[1] python2.7 *
[2] python3.2


* Messages for package dev-java/ant-core-1.8.4-r1:

*
* Can't run java-config --help
* Have you upgraded python recently but haven't
* run python-updater yet?
* ERROR: dev-java/ant-core-1.8.4-r1 failed (setup phase):
* Can't run java-config --help
*
* Call stack:
* ebuild.sh, line 93: Called pkg_setup
* ebuild.sh, line 324: Called java-pkg-2_pkg_setup
* java-pkg-2.eclass, line 53: Called java-pkg_init
* java-utils-2.eclass, line 2158: Called die
* The specific snippet of code:
* die "Can't run java-config --help"
*
* If you need support, post the output of `emerge --info '=dev-java/ant-core-1.8.4-r1'`,
* the complete build log and the output of `emerge -pqv '=dev-java/ant-core-1.8.4-r1'`.
* The complete build log is located at '/var/tmp/portage/dev-java/ant-core-1.8.4-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-java/ant-core-1.8.4-r1/temp/die.env'.
* Working directory: '/usr/lib64/portage/pym'
* S: '/var/tmp/portage/dev-java/ant-core-1.8.4-r1/work/apache-ant-1.8.4


gentoo-mobile ~ # emerge --info =dev-java/ant-core-1.8.4-r1
Portage 2.1.12.2 (default/linux/amd64/13.0/desktop, gcc-4.6.3, glibc-2.15-r3, 3.8.13-gentoo x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-3.8.13-gentoo-x86_64-Intel-R-_Atom-TM-_CPU_N550_@_1.50GHz-with-gentoo-2.2
KiB Mem: 1006208 total, 106820 free
KiB Swap: 2047996 total, 1986092 free
Timestamp of tree: Thu, 13 Jun 2013 16:00:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash: 4.2_p45
dev-java/java-config: 2.1.12-r1
dev-lang/python: 2.7.3-r3, 3.2.3-r2
dev-util/cmake: 2.8.10.2-r2
dev-util/pkgconfig: 0.28
sys-apps/baselayout: 2.2
sys-apps/openrc: 0.11.8
sys-apps/sandbox: 2.5
sys-devel/autoconf: 2.13, 2.69
sys-devel/automake: 1.10.3, 1.11.6, 1.12.6
sys-devel/binutils: 2.22-r1
sys-devel/gcc: 4.6.3
sys-devel/gcc-config: 1.7.3
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc: 2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=atom -mtune=atom -mssse3 -mfpmath=sse -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=atom -mtune=atom -mssse3 -mfpmath=sse -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
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"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.halifax.rwth-aachen.de/gentoo/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --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=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bindist bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk iconv ipv6 jpeg lcms libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds python qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vaapi vorbis wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="intel_hda" 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" 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 ubx" INPUT_DEVICES="evdev void synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en ar fr" NGINX_MODULES_HTTP="access spdy addition auth_basic autoindex browser charset dav empty_gif fastcgi geo geoip gzip gzip_static perl headers_more limit_req limit_zone map memcached proxy push realip referer rewrite scgi split_clients ssi stub_status sub upload upstream_ip_hash userid uwsgi xslt" OFFICE_IMPLEMENTATION
="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="intel vesa fbdev" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


gentoo-mobile ~ # emerge -pqv =dev-java/ant-core-1.8.4-r1
[ebuild N ] dev-java/ant-core-1.8.4-r1 USE="-doc -source"


What can do now? I understand nothing at the moment.

Neil Bothwick

unread,
Jun 14, 2013, 7:00:02 AM6/14/13
to
On Fri, 14 Jun 2013 12:51:51 +0200, Silvio Siefke wrote:

> * Can't run java-config --help
> * Have you upgraded python recently but haven't
> * run python-updater yet?

[snip]

> What can do now? I understand nothing at the moment.

Have you run python-updater? I was about to suggest that anyway, but the
ebuild beat me to it.


--
Neil Bothwick

How is it one careless match can start a forest fire, but it takes a
whole box to start a campfire?
signature.asc

Silvio Siefke

unread,
Jun 14, 2013, 4:40:01 PM6/14/13
to
Hello,

On Fri, 14 Jun 2013 11:59:04 +0100 Neil Bothwick <ne...@digimed.co.uk>
wrote:

> Have you run python-updater? I was about to suggest that anyway, but
> the ebuild beat me to it.

Yes at this moment is finished. I make env-update ; source /etc/profile ;
reboot but nothing change. Is the same result.

" pkg_resources.DistributionNotFound: setuptools==0.7.2 "

Silvio Siefke

unread,
Jun 14, 2013, 4:50:01 PM6/14/13
to
Hello,

On Fri, 14 Jun 2013 11:59:04 +0100 Neil Bothwick <ne...@digimed.co.uk>
wrote:

> Have you run python-updater? I was about to suggest that anyway, but
> the ebuild beat me to it.


Is this the tool which is needed?

https://pypi.python.org/pypi/setuptools/0.7.2

Silvio Siefke

unread,
Jun 14, 2013, 5:20:01 PM6/14/13
to
Hello,

so i have install this setuptools from the website. Flaggie and Java Config
work, i think but now trouble with the ant-core and i need the SWT Package.

* Messages for package dev-java/ant-core-1.8.4-r1:

* Unable to determine VM for building from dependencies:
* ERROR: dev-java/ant-core-1.8.4-r1 failed (setup phase):
* Failed to determine VM for building.
*
* Call stack:
* ebuild.sh, line 93: Called pkg_setup
* ebuild.sh, line 324: Called java-pkg-2_pkg_setup
* java-pkg-2.eclass, line 53: Called java-pkg_init
* java-utils-2.eclass, line 2187: Called java-pkg_switch-vm
* java-utils-2.eclass, line 2671: Called die
* The specific snippet of code:
* die "Failed to determine VM for building."
*
* If you need support, post the output of `emerge --info '=dev-java/ant-core-1.8.4-r1'`,
* the complete build log and the output of `emerge -pqv '=dev-java/ant-core-1.8.4-r1'`.
* The complete build log is located at '/var/tmp/portage/dev-java/ant-core-1.8.4-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-java/ant-core-1.8.4-r1/temp/die.env'.
* Working directory: '/usr/lib64/portage/pym'
* S: '/var/tmp/portage/dev-java/ant-core-1.8.4-r1/work/apache-ant-1.8.4'


gentoo-mobile ~ # emerge --info =dev-java/ant-core-1.8.4-r1
Portage 2.1.12.2 (default/linux/amd64/13.0/desktop, gcc-4.6.3, glibc-2.15-r3, 3.8.13-gentoo x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-3.8.13-gentoo-x86_64-Intel-R-_Atom-TM-_CPU_N550_@_1.50GHz-with-gentoo-2.2
KiB Mem: 1006208 total, 253640 free
KiB Swap: 2047996 total, 2033584 free
What should do? Since 3 weeks i try the install, ever come problems. Normal Linux
without Problems is not Linux, but with time im crazy.


Greetings & Thank you
Silvio

Daniel Pielmeier

unread,
Jun 15, 2013, 1:40:02 AM6/15/13
to
Silvio Siefke schrieb am 14.06.2013 23:11:
>
> so i have install this setuptools from the website. Flaggie and Java Config
> work, i think but now trouble with the ant-core and i need the SWT Package.

First of all you should not need to install setuptools-0.7.2 manual as
it is already in the portage tree. I strongly advise you to use the in
tree version.

Second if java-config works, have you been able to properly set your
system virtual machine? The output of ant-core suggests otherwise.

PS: I think your attempt of installing onboard or some other software
out side of the portage tree broke something. Maybe you should try to
investigate when this problems did start and what you did before to find
out possible causes.

--
Regards
Daniel Pielmeier

signature.asc
0 new messages