Opened 12 years ago

Closed 10 years ago

#42 closed defect (fixed)

Python 2.7 causes YUM to fail

Reported by: David McKenna Owned by: Yuri Dario
Priority: major Milestone:
Component: python Version:
Severity: Keywords:
Cc:

Description

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 12 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/init.py", line 21, in

<module>

import os

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

import UserDict?

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

_abcoll.MutableMapping?.register(IterableUserDict?)

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

if issubclass(subclass, cls):

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

cls._abc_negative_cache.add(subclass)

File "C:/Programs/python27/lib/_weakrefset.py", line 84, in add

self.data.add(ref(item, self._remove))

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

[C:\]

comment:2 Changed 12 years ago by Yuri Dario

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

comment:3 Changed 12 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 12 years ago by Silvan Scherrer

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

comment:5 Changed 12 years ago by Yuri Dario

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 12 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 10 years ago by Silvan Scherrer

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

comment:8 Changed 10 years ago by Silvan Scherrer

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.