LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-16-2011, 05:41 AM   #1
matija.jerkovic
LQ Newbie
 
Registered: Dec 2010
Distribution: Debian Squezee
Posts: 8

Rep: Reputation: 0
Debian Squezee upgrade and python-imaging


Hi 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)
  File "/usr/local/lib/python2.5/runpy.py", line 52, in _run_module_code
    mod_name, mod_fname, mod_loader)
  File "/usr/local/lib/python2.5/runpy.py", line 32, in _run_code
    exec code in run_globals
  File "/usr/local/lib/python2.5/py_compile.py", line 164, in <module>
    main()
  File "/usr/local/lib/python2.5/py_compile.py", line 159, in main
    compile(filename, doraise=True)
  File "/usr/local/lib/python2.5/py_compile.py", line 115, in compile
    f = open(file, 'U')
IOError: [Errno 2] No such file or directory: '-'
Traceback (most recent call last):
  File "/usr/bin/pycompile", line 320, in <module>
    main()
  File "/usr/bin/pycompile", line 299, in main
    options.force, options.optimize, e_patterns)
  File "/usr/bin/pycompile", line 217, in compile
    pipe.send(fn)
  File "/usr/bin/pycompile", line 180, in py_compile
    stdin.write(filename + '\n')
IOError: [Errno 32] Broken pipe
dpkg: error processing python-imaging (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
python-imaging
What do you suggest ?

aptitude -f install reports same problems with python-reportlab and python-imaging.
 
Old 02-17-2011, 02:18 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
At first, I would try to reinstall those packages. You can do that with
Code:
apt-get --reinstall install python-imaging python-reportlab
 
Old 02-17-2011, 03:16 PM   #3
matija.jerkovic
LQ Newbie
 
Registered: Dec 2010
Distribution: Debian Squezee
Posts: 8

Original Poster
Rep: Reputation: 0
Same error:

Quote:
# apt-get --reinstall install python-imaging
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 11 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
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)
File "/usr/local/lib/python2.5/runpy.py", line 52, in _run_module_code
mod_name, mod_fname, mod_loader)
File "/usr/local/lib/python2.5/runpy.py", line 32, in _run_code
exec code in run_globals
File "/usr/local/lib/python2.5/py_compile.py", line 164, in <module>
main()
File "/usr/local/lib/python2.5/py_compile.py", line 159, in main
compile(filename, doraise=True)
File "/usr/local/lib/python2.5/py_compile.py", line 115, in compile
f = open(file, 'U')
IOError: [Errno 2] No such file or directory: '-'
Traceback (most recent call last):
File "/usr/bin/pycompile", line 320, in <module>
main()
File "/usr/bin/pycompile", line 299, in main
options.force, options.optimize, e_patterns)
File "/usr/bin/pycompile", line 217, in compile
pipe.send(fn)
File "/usr/bin/pycompile", line 180, in py_compile
stdin.write(filename + '\n')
IOError: [Errno 32] Broken pipe
dpkg: error processing python-imaging (--configure):
subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
Errors were encountered while processing:
python-imaging
 
Old 02-18-2011, 04:44 AM   #4
matija.jerkovic
LQ Newbie
 
Registered: Dec 2010
Distribution: Debian Squezee
Posts: 8

Original Poster
Rep: Reputation: 0
There was some problems with python version because as you can see it tried to use python2.5.

My update-alternatives had only 2.4 and 2.5. Then I have removed python2.4 and python2.5 and finally changed symlink /usr/bin/python to point to python2.6 (altough I thought that it points to python2.6). And finally everything works perfectly.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to avoid dependencies conflict to install python-imaging-1.1.6-1.rha forshiv Red Hat 4 09-29-2008 08:49 PM
How do I upgrade Python to 2.5 on Etch? walterbyrd Debian 6 01-30-2008 08:48 AM
ISO Imaging Program - Python Frontend for MKISOFS dudeman41465 Programming 3 11-14-2006 06:22 AM
Pykota, Python Imaging Library install problem leiw Linux - General 0 07-30-2006 01:56 PM
Python 2.1 upgrade to 2.3 chris3435 Linux - Software 3 03-23-2004 06:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration