Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Python breakdown

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
Toffer
n00b
n00b
User avatar
Posts: 14
Joined: Sun Nov 04, 2007 10:18 pm
Location: Norway

Python breakdown

  • Quote

Post by Toffer » Sun Feb 15, 2009 7:39 pm

Sorry for the blurry subject. I'v somewhat killed python in my environment, or atleast hurt it.

It began with Deluge suddenly wouldn't start, and output som errors about python modules. (I can't remember if I did any changes, but it's of course likely.)
Having no or less clue, i began messing with things i should'nt have, the most genious action was to unmerge python. :roll:

Now atleast python is back in and emerge works again, but a lot of python related stuff crashes. I've done emerge world, re-emerged python after manual install, re-emerged pyGTK, some modules i can't even remember wich deluge asked for, and finally gobject.
Now Deluge(also re-emerged) still says:
kristoffer@desktop ~ $ deluge
[INFO ] 20:17:39 main:85 Deluge ui 1.0.7
[DEBUG ] 20:17:39 main:86 options: {'config': None, 'logfile': None, 'ui': None}
[DEBUG ] 20:17:39 main:87 args: []
Traceback (most recent call last):
File "/usr/local/bin/deluge", line 8, in <module>
load_entry_point('deluge==1.0.7', 'console_scripts', 'deluge')()
File "/usr/local/lib/python2.5/site-packages/deluge/main.py", line 89, in start_ui
from deluge.ui.ui import UI
File "/usr/local/lib/python2.5/site-packages/deluge/ui/ui.py", line 26, in <module>
import deluge.configmanager
File "/usr/local/lib/python2.5/site-packages/deluge/configmanager.py", line 26, in <module>
import gobject
ImportError: No module named gobject
And emerging vuze and its first dependency also fails with python-related files:
>>> Emerging (1 of 4) dev-java/log4j-1.2.15-r1
* apache-log4j-1.2.15.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* Using: sun-jdk-1.6
>>> Unpacking source...
>>> Unpacking apache-log4j-1.2.15.tar.gz to /var/tmp/portage/dev-java/log4j-1.2.15-r1/work
tar: A lone zero block at 28567
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-java/log4j-1.2.15-r1/work/apache-log4j-1.2.15 ...
Changing ignoresystemclasses to true for available tasks in /var/tmp/portage/dev-java/log4j-1.2.15-r1/work/apache-log4j-1.2.15/build.xml
Rewriting /var/tmp/portage/dev-java/log4j-1.2.15-r1/work/apache-log4j-1.2.15/build.xml
Traceback (most recent call last):
File "/usr/lib/javatoolkit/bin/xml-rewrite-2.py", line 305, in <module>
rewriter.process(f)
File "/usr/lib/javatoolkit/bin/xml-rewrite-2.py", line 194, in process
parse(in_stream, self)
File "/usr/lib/python2.5/site-packages/_xmlplus/sax/__init__.py", line 28, in parse
parser = make_parser()
File "/usr/lib/python2.5/site-packages/_xmlplus/sax/sax2exts.py", line 37, in make_parser
return XMLParserFactory.make_parser(parser_list)
File "/usr/lib/python2.5/site-packages/_xmlplus/sax/saxexts.py", line 75, in make_parser
sys.modules[parser_name].create_parser = _create_parser
KeyError: 'xml.sax.drivers2.drv_pyexpat'
*
* ERROR: dev-java/log4j-1.2.15-r1 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 4030: Called java-pkg-2_src_compile
* environment, line 2193: Called eant 'jar' '-f' 'build.xml' '-Djaxp-present=true'
* environment, line 804: Called java-ant-2_src_configure
* environment, line 1982: Called java-ant_ignore-system-classes '/var/tmp/portage/dev-java/log4j-1.2.15-r1/work/apache-log4j-1.2.15/build.xml'
* environment, line 2124: Called java-ant_xml-rewrite '-f' '/var/tmp/portage/dev-java/log4j-1.2.15-r1/work/apache-log4j-1.2.15/build.xml' '--change' '-e' 'available' '-a' 'ignoresystemclasses' '-v' 'true'
* environment, line 2149: Called die
* The specific snippet of code:
* ${gen2_1} "${@}" || die "${gen2_1} failed";
* The die message:
* /usr/lib/javatoolkit/bin/xml-rewrite-2.py failed
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/dev-java/log4j-1.2.15-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-java/log4j-1.2.15-r1/temp/environment'.
*
!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.6 CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.11"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
and of course, the output of emerge --info

>>> Failed to emerge dev-java/log4j-1.2.15-r1, Log file:

>>> '/var/tmp/portage/dev-java/log4j-1.2.15-r1/temp/build.log'

* Messages for package dev-java/log4j-1.2.15-r1:

*
* ERROR: dev-java/log4j-1.2.15-r1 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 4030: Called java-pkg-2_src_compile
* environment, line 2193: Called eant 'jar' '-f' 'build.xml' '-Djaxp-present=true'
* environment, line 804: Called java-ant-2_src_configure
* environment, line 1982: Called java-ant_ignore-system-classes '/var/tmp/portage/dev-java/log4j-1.2.15-r1/work/apache-log4j-1.2.15/build.xml'
* environment, line 2124: Called java-ant_xml-rewrite '-f' '/var/tmp/portage/dev-java/log4j-1.2.15-r1/work/apache-log4j-1.2.15/build.xml' '--change' '-e' 'available' '-a' 'ignoresystemclasses' '-v' 'true'
* environment, line 2149: Called die
* The specific snippet of code:
* ${gen2_1} "${@}" || die "${gen2_1} failed";
* The die message:
* /usr/lib/javatoolkit/bin/xml-rewrite-2.py failed
I've been googleing for days, searched through this forum and seen similar issues, and tried some of the proposed solutions without luck.
After a few days break from it all, I decided to post here. :)
I've probably missed out on some info from my system, please tell me what you need to help.

Help is really appreciated on this one!
Top
Toffer
n00b
n00b
User avatar
Posts: 14
Joined: Sun Nov 04, 2007 10:18 pm
Location: Norway

some more info

  • Quote

Post by Toffer » Sun Feb 15, 2009 9:02 pm

Some more info that could be relevant;
desktop / # ls -l /usr/bin/python
lrwxrwxrwx 1 root root 18 2009-02-08 13:43 /usr/bin/python -> /usr/bin/python2.5
desktop / # python --version
Python 2.5.2
desktop / # pygtk-demo
Traceback (most recent call last):
File "/usr/bin/pygtk-demo", line 7, in <module>
execfile(os.path.join(pygtklibdir, "pygtk-demo.py"))
File "/usr/lib/pygtk/2.0/pygtk-demo.py", line 18, in <module>
import gobject
ImportError: No module named gobject
desktop / # eselect python list
Available python interpreters:
[1] python2.5 *
and:
package.use wrote: dev-lang/python -build gtk berkdb doc elibc_uclibc examples expat gdbm ipv6 ncurses readline sqlite ssl threads tk ucs2
sys-libs/cracklib nls python
dev-libs/libxml2 debug doc examples ipv6 python readline test
dev-python/pygtk doc examples X
dev-python/pygobject coc examples debug X
sys-power/cpufrequtils debug nls
Top
santiago
n00b
n00b
Posts: 35
Joined: Sun Oct 08, 2006 5:18 am
Location: Argentina
Contact:
Contact santiago
Website

  • Quote

Post by santiago » Mon Feb 16, 2009 12:47 pm

Well, I don't know, but since you've got no other answer...

Is pygobject correctly installed? Does /usr/lib/python2.5/site-packages/gtk-2.0/gobject/__init__.py exist?
what does equery files pygobject says?

I would try reemerging pygobject and pyxml

Ah, now I see the output of deluge, and it is looking for python packages in /usr/local/lib/python2.5/site-packages/
instead of /usr/lib/python2.5/site-packages/

Maybe something is wrong with the python or deluge installation. How did you reinstall python2.5 after you removed it?
Top
Toffer
n00b
n00b
User avatar
Posts: 14
Joined: Sun Nov 04, 2007 10:18 pm
Location: Norway

  • Quote

Post by Toffer » Mon Feb 16, 2009 1:38 pm

/usr/lib/python2.5/site-packages/gtk-2.0/gobject/__init__.py exists, and:
desktop .irssi # equery files pygobject
[ Searching for packages matching pygobject... ]
* Contents of dev-python/pygobject-2.14.2:
/usr
/usr/include
/usr/include/pygtk-2.0
/usr/include/pygtk-2.0/pygobject.h
/usr/lib
/usr/lib/pkgconfig
/usr/lib/pkgconfig/pygobject-2.0.pc
/usr/lib/python2.5
/usr/lib/python2.5/site-packages
/usr/lib/python2.5/site-packages/gtk-2.0
/usr/lib/python2.5/site-packages/gtk-2.0/dsextras.py
/usr/lib/python2.5/site-packages/gtk-2.0/gobject
/usr/lib/python2.5/site-packages/gtk-2.0/gobject/__init__.py
/usr/lib/python2.5/site-packages/gtk-2.0/gobject/_gobject.la
/usr/lib/python2.5/site-packages/gtk-2.0/gobject/_gobject.so
/usr/lib/python2.5/site-packages/gtk-2.0/gobject/constants.py
/usr/lib/python2.5/site-packages/gtk-2.0/gobject/option.py
/usr/lib/python2.5/site-packages/gtk-2.0/gobject/propertyhelper.py
/usr/lib/python2.5/site-packages/pygtk.pth-2.0
/usr/lib/python2.5/site-packages/pygtk.py-2.0
/usr/share
/usr/share/doc
/usr/share/doc/pygobject-2.14.2
/usr/share/doc/pygobject-2.14.2/AUTHORS.bz2
/usr/share/doc/pygobject-2.14.2/ChangeLog.bz2
/usr/share/doc/pygobject-2.14.2/NEWS.bz2
/usr/share/doc/pygobject-2.14.2/README.bz2
/usr/share/gtk-doc
/usr/share/gtk-doc/html
/usr/share/gtk-doc/html/pygobject
/usr/share/gtk-doc/html/pygobject/class-gobject.html
/usr/share/gtk-doc/html/pygobject/class-gobjectgboxed.html
/usr/share/gtk-doc/html/pygobject/class-gobjectginterface.html
/usr/share/gtk-doc/html/pygobject/class-gobjectgpointer.html
/usr/share/gtk-doc/html/pygobject/class-gobjectmaincontext.html
/usr/share/gtk-doc/html/pygobject/class-gobjectmainloop.html
/usr/share/gtk-doc/html/pygobject/gobject-class-reference.html
/usr/share/gtk-doc/html/pygobject/gobject-constants.html
/usr/share/gtk-doc/html/pygobject/gobject-functions.html
/usr/share/gtk-doc/html/pygobject/index.html
/usr/share/gtk-doc/html/pygobject/index.sgml
/usr/share/gtk-doc/html/pygobject/pygobject-introduction.html
/usr/share/gtk-doc/html/pygobject/pygobject.devhelp
/usr/share/gtk-doc/html/pygobject/style.css
/usr/share/pygobject
/usr/share/pygobject/xsl
/usr/share/pygobject/xsl/common.xsl
/usr/share/pygobject/xsl/devhelp.xsl
/usr/share/pygobject/xsl/fixxref.py
/usr/share/pygobject/xsl/html.xsl
/usr/share/pygobject/xsl/pdf-style.xsl
/usr/share/pygobject/xsl/pdf.xsl
/usr/share/pygobject/xsl/ref-html-style.xsl
/var
/var/lib
First i followed a howto on manual installation of python, from the tarball in the portage/distfiles i think?
It made emerge work again, then I ran emerge sync and emerge world, and the python got included there.

I've also re-emerged python, gobject, pyGTK and Deluge several times in desperation after that.
pyGTK-demo also fails on missing gobject, so that tells me this doesn't necesarry have to do with the Deluge-install.

After a reboot earlier today, suddenly the issue with "Emerging (1 of 4) dev-java/log4j-1.2.15-r1" was solved, it compiled without fail.
Top
Post Reply

4 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic