[Python-bugs-list] [ python-Bugs-734149 ] tempfile module broken in 2.3

SourceForge.net noreply@sourceforge.net
Thu, 08 May 2003 12:49:25 -0700


Bugs item #734149, was opened at 2003-05-07 15:27
Message generated for change (Comment added) made by tim_one
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=734149&group_id=5470

Category: Build
Group: Not a Bug
Status: Closed
Resolution: Invalid
Priority: 5
Submitted By: Charles Doutriaux (cdoutri)
Assigned to: Nobody/Anonymous (nobody)
Summary: tempfile module broken in 2.3

Initial Comment:
Thiserror persists since 2.3alpha

>>> import tempfile
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File
"/roseland0/cdat/latest/lib/python2.3/tempfile.py",
line 33, in ?
    from random import Random as _Random
  File
"/roseland0/cdat/latest/lib/python2.3/random.py", line
61, in ?
    import _random
ImportError: No module named _random


----------------------------------------------------------------------

>Comment By: Tim Peters (tim_one)
Date: 2003-05-08 15:49

Message:
Logged In: YES 
user_id=31435

Dunno.  Is it a common problem on systems that use 
setup.py (Windows doesn't, so it's a non-problem there)?

----------------------------------------------------------------------

Comment By: Raymond Hettinger (rhettinger)
Date: 2003-05-08 15:42

Message:
Logged In: YES 
user_id=80475

Tim, do you think we should add a version number cross-
check to setup.py that at least warns if the setup does not 
correspond the python it was designed for?

----------------------------------------------------------------------

Comment By: Tim Peters (tim_one)
Date: 2003-05-08 15:04

Message:
Logged In: YES 
user_id=31435

That's OK.  Just don't do it again <wink>.

----------------------------------------------------------------------

Comment By: Charles Doutriaux (cdoutri)
Date: 2003-05-08 14:47

Message:
Logged In: YES 
user_id=78442

Sorry,

I was somewhat overwritting setup.py with one from 2.2....

My mistake

----------------------------------------------------------------------

Comment By: Charles Doutriaux (cdoutri)
Date: 2003-05-08 14:02

Message:
Logged In: YES 
user_id=78442

Sorry, I forgot to specify,
I'm using the "default" setup.py on Linux box, it fails on
both RH8.0 and RH9.0



----------------------------------------------------------------------

Comment By: Raymond Hettinger (rhettinger)
Date: 2003-05-08 12:13

Message:
Logged In: YES 
user_id=80475

Also, verify that your setup.py has a line like:

exts.append( Extension("_random", ["_randommodule.c"]) )


----------------------------------------------------------------------

Comment By: Neal Norwitz (nnorwitz)
Date: 2003-05-07 21:20

Message:
Logged In: YES 
user_id=33168

This is a build problem.  Why doesn't
Modules/_randommodule.c get built?  What operating system
and version?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=734149&group_id=5470