Forums

Skip to content

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

[SOLVED] python-updater don't work

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
E001754
Guru
Guru
User avatar
Posts: 442
Joined: Sun Aug 01, 2004 2:04 pm
Location: Paris, France

[SOLVED] python-updater don't work

  • Quote

Post by E001754 » Tue Mar 06, 2012 9:41 pm

When trying to upgrade to python 2.7, following the guide, I key the following :
- emerge python:2.7
- eselect python set python2.7
- eselect python list to get sure python2.7 is select (and it is)

when i run python-updater, I get those error messages :
localhost luc # python-updater
Traceback (most recent call last):
File "<string>", line 19, in <module>
File "/usr/lib64/portage/pym/portage/util/__init__.py", line 1329, in __getitem__
result = lazy_item.func(*pargs, **kwargs)
File "/usr/lib64/portage/pym/portage/dbapi/porttree.py", line 1068, in __init__
self.dbapi = portdbapi(mysettings=settings)
File "/usr/lib64/portage/pym/portage/dbapi/porttree.py", line 180, in __init__
self.depcachedir, x, self._known_keys, **cache_kwargs)
File "/usr/lib64/portage/pym/portage/cache/sqlite.py", line 27, in __init__
self._import_sqlite()
File "/usr/lib64/portage/pym/portage/cache/sqlite.py", line 54, in _import_sqlite
raise cache_errors.InitializationError(self.__class__, e)
portage.cache.cache_errors.InitializationError: Creation of instance <class 'portage.cache.sqlite.database'> failed due to No module named pysqlite2
* Starting Python Updater...
* Main active version of Python: 2.7
* Active version of Python 2: 2.7
* Active version of Python 3: 3.2
* Globally supported Python ABIs in installed repositories:
* Adding to list: app-office/openoffice-bin:0
* Adding to list: app-office/openoffice-bin:0
Traceback (most recent call last):
File "<string>", line 9, in <module>
File "/usr/lib64/portage/pym/portage/util/__init__.py", line 1329, in __getitem__
result = lazy_item.func(*pargs, **kwargs)
File "/usr/lib64/portage/pym/portage/dbapi/porttree.py", line 1068, in __init__
self.dbapi = portdbapi(mysettings=settings)
File "/usr/lib64/portage/pym/portage/dbapi/porttree.py", line 180, in __init__
self.depcachedir, x, self._known_keys, **cache_kwargs)
File "/usr/lib64/portage/pym/portage/cache/sqlite.py", line 27, in __init__
self._import_sqlite()
File "/usr/lib64/portage/pym/portage/cache/sqlite.py", line 54, in _import_sqlite
raise cache_errors.InitializationError(self.__class__, e)
portage.cache.cache_errors.InitializationError: Creation of instance <class 'portage.cache.sqlite.database'> failed due to No module named pysqlite2
Traceback (most recent call last):
File "<string>", line 9, in <module>
File "/usr/lib64/portage/pym/portage/util/__init__.py", line 1329, in __getitem__
result = lazy_item.func(*pargs, **kwargs)
File "/usr/lib64/portage/pym/portage/dbapi/porttree.py", line 1068, in __init__
self.dbapi = portdbapi(mysettings=settings)
File "/usr/lib64/portage/pym/portage/dbapi/porttree.py", line 180, in __init__
self.depcachedir, x, self._known_keys, **cache_kwargs)
File "/usr/lib64/portage/pym/portage/cache/sqlite.py", line 27, in __init__
self._import_sqlite()
File "/usr/lib64/portage/pym/portage/cache/sqlite.py", line 54, in _import_sqlite
raise cache_errors.InitializationError(self.__class__, e)
portage.cache.cache_errors.InitializationError: Creation of instance <class 'portage.cache.sqlite.database'> failed due to No module named pysqlite2
* Adding to list: app-portage/eclean-kernel:0
Whatever messages, it still add packages to re-emerge in the list, but it ends-up crashing with the following message when trying to emerge listed packages :
* emerge -Dv1 --keep-going app-office/openoffice-bin:0 app-office/openoffice-bin:0 app-portage/eclean-kernel:0 app-portage/gentoolkit:0 app-portage/layman:0 app-text/pdfshuffler:0 dev-java/java-config:2 dev-libs/gobject-introspection:0 dev-libs/libgamin:0 dev-libs/libxml2:2 dev-libs/libxslt:0 dev-python/argparse:0 dev-python/dbus-python:0 dev-python/gconf-python:2 dev-python/gnome-python-desktop-base:0 dev-python/gst-python:0.10 dev-python/librsvg-python:0 dev-python/notify-python:0 dev-python/numpy:0 dev-python/pycairo:0 dev-python/pygobject:2 dev-python/pygobject:3 dev-python/pygtk:2 dev-python/pygtksourceview:2 dev-python/pyPdf:0 dev-python/PyQt4:0 dev-python/pysqlite:2 dev-python/python-gudev:0 dev-python/python-poppler:0 dev-python/setuptools:0 dev-python/simplejson:0 dev-python/sip:0 dev-vcs/git:0 kde-base/krosspython:4 kde-base/plasma-workspace:4 media-libs/lcms:0 media-video/arista:0 net-print/hplip:0 sys-apps/file:0 sys-libs/cracklib:0 sys-process/iotop:0 x11-proto/xcb-proto:0
Traceback (most recent call last):
File "/usr/bin/emerge", line 43, in <module>
retval = emerge_main()
File "/usr/lib64/portage/pym/_emerge/main.py", line 1615, in emerge_main
portdb = trees[settings['EROOT']]['porttree'].dbapi
File "/usr/lib64/portage/pym/portage/util/__init__.py", line 1329, in __getitem__
result = lazy_item.func(*pargs, **kwargs)
File "/usr/lib64/portage/pym/portage/dbapi/porttree.py", line 1068, in __init__
self.dbapi = portdbapi(mysettings=settings)
File "/usr/lib64/portage/pym/portage/dbapi/porttree.py", line 180, in __init__
self.depcachedir, x, self._known_keys, **cache_kwargs)
File "/usr/lib64/portage/pym/portage/cache/sqlite.py", line 27, in __init__
self._import_sqlite()
File "/usr/lib64/portage/pym/portage/cache/sqlite.py", line 54, in _import_sqlite
raise cache_errors.InitializationError(self.__class__, e)
InitializationError: Creation of instance <class 'portage.cache.sqlite.database'> failed due to No module named pysqlite2

Any idea of what's wrong?
Last edited by E001754 on Wed Mar 21, 2012 10:34 pm, edited 1 time in total.
Top
CrankyPenguin
Apprentice
Apprentice
User avatar
Posts: 283
Joined: Thu Jun 19, 2003 1:37 pm

  • Quote

Post by CrankyPenguin » Wed Mar 07, 2012 5:36 am

Hmm, for whatever reason your system clearly wants pysqlite2 when running python-updater or portage. What version of both are you using? And have you built one or the other with a dependence upon pysqlite2?

I have run python-updater (v. 0.9) without pysqlite2 installed and this error didn't arise which leads me to think that you built some package with a dependence upon it or built an early-edge version that requires it.

Why don't you start by installing pysqlite2 and seeing what happens. From that point on it may function fine or give you some other complaint. Alternately if you have installed a ~ version of python-updater try rolling back to an older package. If the code passes in either case then it is possible that we have an undocumented dependency.
Linux, the OS for the obsessive-compulsive speed freak in all of us.
Top
E001754
Guru
Guru
User avatar
Posts: 442
Joined: Sun Aug 01, 2004 2:04 pm
Location: Paris, France

  • Quote

Post by E001754 » Thu Mar 08, 2012 7:56 pm

I have python-updater version 0.10 and there is no USE flag for this package as equery said.
8O
Top
CrankyPenguin
Apprentice
Apprentice
User avatar
Posts: 283
Joined: Thu Jun 19, 2003 1:37 pm

  • Quote

Post by CrankyPenguin » Mon Mar 12, 2012 3:03 am

Yeah that's what I figured. Did you try adding the pysqlite2 package and then re-running the build?
Linux, the OS for the obsessive-compulsive speed freak in all of us.
Top
E001754
Guru
Guru
User avatar
Posts: 442
Joined: Sun Aug 01, 2004 2:04 pm
Location: Paris, France

  • Quote

Post by E001754 » Mon Mar 12, 2012 8:27 pm

Failed.
I emerged 'pysqlite' with no luck before switching to python2.7
After having switch to 2.7, no program that is python-based works anymore, so I can't emerge anything.
Top
jburns
Veteran
Veteran
Posts: 1255
Joined: Thu Jan 18, 2007 4:44 am
Location: Massachusetts USA

  • Quote

Post by jburns » Tue Mar 13, 2012 2:38 am

Does anything in http://en.gentoo-wiki.com/wiki/Portage_SQLite_Cache help?
Top
CrankyPenguin
Apprentice
Apprentice
User avatar
Posts: 283
Joined: Thu Jun 19, 2003 1:37 pm

  • Quote

Post by CrankyPenguin » Tue Mar 13, 2012 8:41 pm

Hmm, ok did you already remove the older 2.6. python? Because you might see if you can scale back to it and use that to rebuild any essential packages.

More pertiently when you say you can't emerge anything does that mean that emerge itself fails? Or do you just get package errors? The reason that I ask is, perhaps you should try emerging (or using ebuild to emerge) python-updater. Perhaps the errors will be fixed with a reemerge for python 2.7.
Linux, the OS for the obsessive-compulsive speed freak in all of us.
Top
E001754
Guru
Guru
User avatar
Posts: 442
Joined: Sun Aug 01, 2004 2:04 pm
Location: Paris, France

  • Quote

Post by E001754 » Wed Mar 21, 2012 10:33 pm

jburns wrote:Does anything in http://en.gentoo-wiki.com/wiki/Portage_SQLite_Cache help?
yes !
It did !
:D

Thanks for that. I absolutely didn't remember that one day I had activated this sql method for speeding-up emerge.
Did it probably years ago as Gentoo keeps-up-to date for years without doing anything except regular emerge world.

Thanks for that!
Top
jesnow
l33t
l33t
Posts: 905
Joined: Wed Apr 26, 2006 11:20 pm

  • Quote

Post by jesnow » Sun Dec 15, 2013 5:46 pm

Link is broken.
Top
Post Reply

9 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