This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: warnings.py still refers to OverflowWarning
Type: Stage:
Components: Library (Lib) Versions: Python 2.5
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, sjmachin
Priority: normal Keywords:

Created on 2006-07-04 11:08 by sjmachin, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (3)
msg29030 - (view) Author: John Machin (sjmachin) Date: 2006-07-04 11:08
C:\devel\lfo_kit>c:\python25\python setup_mp.py install
Traceback (most recent call last):
  File "setup_mp.py", line 4, in <module>
    from distutils.core import setup, Extension
  File "c:\python25\lib\distutils\core.py", line 21, in
<module>
    from distutils.dist import Distribution
  File "c:\python25\lib\distutils\dist.py", line 16, in
<module>
    import warnings
  File "C:\python25\lib\warnings.py", line 265, in <module>
    simplefilter("ignore", category=OverflowWarning,
append=1)
NameError: name 'OverflowWarning' is not defined

C:\devel\lfo_kit>c:\python25\python
Python 2.5b1 (r25b1:47027, Jun 20 2006, 09:31:33) [MSC
v.1310 32 bit (Intel)] on win32

=====

I noted that on the line above, there's a comment
saying this should be removed for 2.5. I have commented
out the offending line in my local copy and now my
distutils stuff appears to be working.

msg29031 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-07-05 08:22
Logged In: YES 
user_id=849994

There must be a problem on your end. In the current
warnings.py there's no reference to OverflowWarning anymore.
msg29032 - (view) Author: John Machin (sjmachin) Date: 2006-07-05 10:09
Logged In: YES 
user_id=480138

Yes, was local problem caused by jumbled install of 2.5b1
over the top of 2.5a2 -- am taking that issue up with MvL.
Sorry for the nuisance, Georg.
History
Date User Action Args
2022-04-11 14:56:18adminsetgithub: 43608
2006-07-04 11:08:19sjmachincreate