Ubuntu Installation :: Python Imploded On Upgrade?
May 1, 2011
On upgrade I ran into this catch-22, and have almost 500 packages in limbo because of it. Any ideas on how to fix python-gobject or pycompile or whichever is angry?
Setting up python-gobject (2.28.3-1ubuntu1) ...
Traceback (most recent call last):
File "/usr/bin/pycompile", line 322, in <module>
main()
File "/usr/bin/pycompile", line 299, in main
options.force, options.optimize, e_patterns)
I had problems with python stuff and so update manager did not work. Also many other problems, PiTiVi was installed but did not start eg... After many trials of this and that I removed python-gtk2 and so also ubuntu desktop. But was unable to get it back. Now I cannot even shut down. While it is not possible to install desktop or anything else, would it be possible to fix this by upgrading the whole system to 10.04 (10.10?)? Would it fix python installation. How could I do it. Some info tells to change sources.list and run apt-get upgrade, but some tell not to do so.
t@t:~$ update-manager Traceback (most recent call last): File "/usr/bin/update-manager", line 26, in <module>
I'm encountering a python error in the beginning of the upgrade. See screenshot. How can this be solved or should I indeed file a bug report? Problem is that except for taking the picture, I've been unable to save the info.
After upgrading to 10.04LTR 64bit I encountered this problem below... I have already tried -f / --configure to no avail.
@ASUS-AMD64:~$ sudo apt-get upgrade Reading package lists. Building dependency tree Reading state information Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0B of additional disk space will be used. Do you want to continue [Y/n]? y Setting up python-lazr.uri (1.0.2-1) dpkg (subprocess): unable to execute installed post-installation script: Exec format error dpkg: error processing python-lazr.uri (--configure): subprocess installed post-installation script returned error exit status 2 Errors were encountered while processing: python-lazr.uri E: Sub-process /usr/bin/dpkg returned an error code (1)
When I tried to install scribus, it shows: could not mark all packages for installation or upgrade. The following packages have unresolvable dependencies. Make sure that all required repositories are added and enabled in the preferences. python-tk: Depends: python (<2.6) but 2.6.2-0ubuntu1 is to be installed
I'm using centos5 hiab with qmail and apache and i'm trying to install Mailman via: ./configure --prefix=/home/admin/mailman --with-mail-gid=qmail --with-cgi-gid=apache
and I get the error:
***** Distutils is not available or is incomplete for /usr/bin/python ***** If you installed Python from RPM (or other package manager) ***** be sure to install the -devel package, or install Python ***** from source. See sec. 15.1 of the Installation Manual for ***** details
Doing an rpm -qa | grep python yields the following: python-2.4.3-19.el5 libxml2-python-2.6.26-2.1.2
[Code]....
So it seems to me that the only thing I need to is upgrade(new install??) python-devel-2.4.3-19.e15
So I was trying to upgrade kupfer when it told me it couldn't, as python-keyring was a virtual package and could not be installed. I'm using Karmic, so the package python-keyring is not available, although it is in Lucid. How would I go about upgrading kupfer/installing python-keyring??
I would like to update Python v.2.4 and Numpy to Python v.2.6 and Numpy v.1.3. How can I do it. I heard that we can use "yum update", but I am not sure to do it correctly.
I have some tools that seem to have issues with Python 2.5 but are OK (on other systems) with Python 2.6. So, I was considering upgrading my Python interpreter to the current 2.6.4, but I know that in various RH distros, this was strongly discouraged. Is it OK to replace my current Python 2.5.2 on F10? If so, should that be done from source or can I do this cleanly through yum?
I have recently upgraded from lenny to squezee and I noticed some problems during upgrade with some python files. Now I have same problem with them and I need to resolve it so that I can install sane:
Code: dpkg --configure -a Setting up python-imaging (1.1.7-2) ... Traceback (most recent call last): File "/usr/local/lib/python2.5/runpy.py", line 95, in run_module filename, loader, alter_sys)
[Code]...
aptitude -f install reports same problems with python-reportlab and python-imaging.
I just finished upgrading the last of 3 machines from F10 to F12 using preupgrade (all i686). Except for a non-critical hplip issue, all went well with the first two machines upgraded 1 week and 3 days ago, but some python F10->F12 updates were missing on the third machine that I upgraded yesterday, leaving yum inoperable. Thanks to good yum error messages, I was able to resolve the problem (I think), but I thought I should post to check if mine is a unique or common problem, to enquire if it may have resulted from some of the python packages being in "update transit" in the repositories, and/or whether something like this can be avoided in future? Details follow:
Upgrade appeared to go well except for some dejavu font dependency issues (experienced on all three machines) and libcrypto.so.7 missing for eet-1.2.2-4... (third machine). However, there was a boot message that some python module (can't remember which) was not present for some nvidia requirement, although video driver worked fine. When testing yum: First it complained that libpython2.6.so.1.0 was not present. Since that module conflicted (identified by rpm) with various python 2.5.*f10 packages that that were still on board, I copied libpython2.6.so.1.0 (from a current f12 rpm) into /usr/lib manually. Second, yum complained that urlgrabber was not available, so rpm with the latest python-urlgrabber for f12 solved that.
Third, yum complained that pycurl was not available, so rpm with the latest python-pycurl solved that. Yum now works! and boot message is gone! I ran "yum install python-libs" to make sure that any necessary dependencies were met following my manual installation of libpython2.6.so.1.0, which resulted in a bunch of python dependencies being upgraded as a result.
in ubuntu 10.10, I have installed python 2.7. I would like to use apt-get to install packages to this version of python but I haven't been able to figure out howThings I have tried without success:changing the symlink at /usr/bin/python to point to /usr/bin/python2.7 - even after doing this apt-get still installs stuff to python2.6.Set up python2.7 as the primary alternative using update-alternatives - doesn't work
I have to install this file - python-dev 2.6 - to run FreeCAD. I found the file by googling it however the site 'strongly suggests downloading this file via the synaptic package manager'. How do I do this?
I keep getting the following msg as I try to upgrade from 10.04 -> 10.10 ... "Could not calculate the upgrade An unresolvable problem occurred while calculating the upgrade: E:Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages. This can be caused by:
* Upgrading to a pre-release version of Ubuntu * Running the current pre-release version of Ubuntu * Unofficial software packages not provided by Ubuntu
If none of this applies, then please report this bug against the 'update-manager' package and include the files in /var/log/dist-upgrade/ in the bug report." I don't think any of the issues above apply - can anyone offer advice on how to get around or "force " the upgrade
I upgraded to 10.04 and noticed that python-hulahop package is nowhere to be found. This package used to be available in previous versions, and according to google it was supposed to be available in 10.04 too until recently: [URL] (this is the actual page that claims the link is erroneous) [URL](this is google cache for the same link that shows the package for lucid)
I'm trying to run Pyjamas Desktop, which requests the hulahop module (in 9.10, the precompiled python-hulahop did not work, but self-compiled version did. Now in 10.04 I can't find the source to compile the package myself either). Did it get replaced? Did it get included into another package?
So I followed all the steps here.[URl].. whixh is basically the same steps as in the installation wiki.The problem is that I can't find the cv.so file in /usr/local/lib/python2.6/site-packages . the folder is empty.
I have a function definition in a Python 2.x script which take a tuple as one of its arguments, but 2to3 has no answers nor any of my searching on how to represent the same in Python 3.x
Every time I booted in 9.10, Python requested a password. I didn't plan to do any programming very soon (I'm new to Linux, although I know Unix) because I'm just learning the shell, etc, so I decided to uninstall Python through the Package Manager. I selected all of the installed Python modules and when I clicked "Apply" I was informed that there was one module (Python minimum something) that would seriously effect the whole system, so I unchecked that module and then ran the uninstall. When it completed, Firefox was gone, the two music players I had installed where gone, I couldn't log out and when I try to reboot I get a message "Ubuntu is running in low-graphics mode" and I go through several other menus, but I still can't get the system to boot.I assume a reinstall is in order, but should I "clean up" any of the remaining Linux modules/partition? And what's the best way to do that?
I would like to install pymedia on my ubuntu 9.10 karmic distribution, but I am having a bit of a hard time doing that.I managed to install all the libraries (lame, libogg, libvorbis etc.) but when trying to run 'python setup.py build' I get an error (Shown at the end).I found on the interwebs that it may have to do with the version of gcc c++ compiler running (currently gcc-4.4) and that it only works with gcc-3.x. Therefore I downloaded gcc-3.4 (from the old jaunty archive), and with this one still no joy.NebelhomP.S. I am not a complete newcomer to linux and python but I am not an expert so it may happen that I ask questions with a very obvious answer.
Code: nebelhom@nebelhom-desktop:~/pymedia-1.3.7.3$ python setup.py build Using UNIX configuration...
I ran 'sudo apt-get install python', which completed successfully. According to [url, this should have created the directory /usr/lib/python2.6, but I do not see any such directory.
This is causing problems:
I've tried 'apt-get purge python' and then reinstalling but this has not resolved the issue.
I was doing a update via Synaptic Package Manager, after it is nearly finished i get that message: Processing triggers for python-central ... Nothing happend so i ctrl-c it and the packet manger shows me no other errors or something else, even all the packages who was marked for upgrade are now upgraded but what about that python message? Do i have to do some check ? or maybe even a repair or even worse re install the OS?
While upgrading to a newer version of Ubuntu I noticed a warning saying that the installation/upgrade should not be interupted. Unfortunately though, during this process my computer froze up and I had to shut it down. Ubuntu no longer starts on my computer. I still have Windows though, which is what I'm using now.
I get an error when trying to install python-virtualenv package:
Quote: # yum install python-virtualenv Loaded plugins: presto, refresh-packagekit Setting up Install Process Resolving Dependencies --> Running transaction check
[Code]...
AFAIK, python-virtualenv package does not really require any development packages (at least in ubuntu, debian, opensuse). Is it a bug? I didn't find anything with search engines...
I am trying to install Python and during the installation the system returns "dejavu-sans-fonts conflicts with dejavu-fonts". I would imaging that removing one or other of these font packages will resolve the issue but don't understand how to do that.