Opened 7 years ago

Closed 5 years ago

#42 closed defect (fixed)

Python 2.7 causes YUM to fail

Reported by: David McKenna Owned by: ydario
Priority: major Milestone:
Component: python Version:
Severity: Keywords:


Paul Smedley has provided Python 2.7 and it is required for his port of Scribus 1.4.1. Installing Python 2.7 (in its own directory) per the instructions given causes YUM to no longer work (many errors given about not finding files).

Change History (8)

comment:1 Changed 7 years ago by David McKenna

Here's a typical example:

[C:\]yum update
'import site' failed; use -v for traceback
Traceback (most recent call last):

File "C:\USR\BIN\YUM", line 4, in <module>

import yum

File "/@unixroot/usr/lib/python2.6/site-packages/yum/", line 21, in


import os

File "C:/Programs/python27/lib/", line 400, in <module>

import UserDict?

File "C:/Programs/python27/lib/", line 84, in <module>


File "C:/Programs/python27/lib/", line 109, in register

if issubclass(subclass, cls):

File "C:/Programs/python27/lib/", line 184, in subclasscheck


File "C:/Programs/python27/lib/", line 84, in add, self._remove))

TypeError?: cannot create weak reference to 'classobj' object


comment:2 Changed 7 years ago by ydario

I think PYTHONPATH has been added to config.sys: this is not compatible with 2.6 build.

comment:3 Changed 7 years ago by David McKenna

Yes.... PYTHONPATH has been added (as directed by the instructions). Without it, YUM does work, but not Scribus.

comment:4 Changed 7 years ago by diver

use a script to start scribus und set the PYTHONPATH there.

comment:5 Changed 7 years ago by ydario

I think it could be a good idea to ignore PYTHONPATH and PYTHONHOME in current @unixroot build, it is not needed to run our python, and it can only confuse python and users...

comment:6 Changed 7 years ago by David McKenna

Yes... I am now using a script. But I thought I should open a ticket for exactly the reason Yuri mentions - confusion. Thanks for considering a solution!

comment:7 Changed 6 years ago by diver

I guess this ticket is now obsolete with latest rpm python 2.7.

comment:8 Changed 5 years ago by diver

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.