Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: No module named test.test_support #48107

Closed
wplappert mannequin opened this issue Sep 13, 2008 · 4 comments
Closed

ImportError: No module named test.test_support #48107

wplappert mannequin opened this issue Sep 13, 2008 · 4 comments
Labels
OS-windows type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@wplappert
Copy link
Mannequin

wplappert mannequin commented Sep 13, 2008

BPO 3857
Nosy @amauryfa

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2008-09-13.17:16:21.885>
created_at = <Date 2008-09-13.08:16:51.149>
labels = ['OS-windows', 'type-crash']
title = 'ImportError: No module named test.test_support'
updated_at = <Date 2008-09-13.17:16:21.884>
user = 'https://bugs.python.org/wplappert'

bugs.python.org fields:

activity = <Date 2008-09-13.17:16:21.884>
actor = 'benjamin.peterson'
assignee = 'none'
closed = True
closed_date = <Date 2008-09-13.17:16:21.885>
closer = 'benjamin.peterson'
components = ['Windows']
creation = <Date 2008-09-13.08:16:51.149>
creator = 'wplappert'
dependencies = []
files = []
hgrepos = []
issue_num = 3857
keywords = []
message_count = 4.0
messages = ['73169', '73171', '73173', '73193']
nosy_count = 2.0
nosy_names = ['amaury.forgeotdarc', 'wplappert']
pr_nums = []
priority = 'normal'
resolution = 'out of date'
stage = None
status = 'closed'
superseder = None
type = 'crash'
url = 'https://bugs.python.org/issue3857'
versions = ['Python 2.6']

@wplappert
Copy link
Mannequin Author

wplappert mannequin commented Sep 13, 2008

The following 2 line program fails under Python 2.6rc1:
Python 2.6b3 (r26b3:66303, Sep 8 2008, 13:45:13) [MSC v.1500 32 bit
(Intel)] on win32

as downloaded today (2008-09-13):

#---- start program ---

import urllib
fh = urllib.urlopen('http://bugs.python.org/')
#---- end program ---

with the messages:
Traceback (most recent call last):
  File "bug.py", line 2, in <module>
    fh = urllib.urlopen('http://bugs.python.org/')
  File "d:\Python26\lib\urllib.py", line 87, in urlopen
    return opener.open(url)
  File "d:\Python26\lib\urllib.py", line 203, in open
    return getattr(self, name)(url)
  File "d:\Python26\lib\urllib.py", line 285, in open_http
    import httplib
  File "d:\Python26\lib\httplib.py", line 72, in <module>
    from test.test_support import catch_warning
ImportError: No module named test.test_support

The program works fine on Python 2.5

@wplappert wplappert mannequin added stdlib Python modules in the Lib dir type-crash A hard crash of the interpreter, possibly with a core dump labels Sep 13, 2008
@wplappert
Copy link
Mannequin Author

wplappert mannequin commented Sep 13, 2008

OK, by now I know exactly what the problem is: The Windows installer
allows you the option of DESELECTING the "Test Suite". Initially I
deselected the Test Suite because I thought I do not need it. But this
is wrong. urllib loads test.test_support.

In my opinion you must not be able to deselect a feature if this feature
is needed for the proper running of Python.

PS.: Forget all the bits about "Python 2.6b3 (r26b3:66303, Sep 8 2008,
13:45:13) [MSC v.1500 32 bit (Intel)] on win32": I just was too fast. I
have verified the bug now with proper 2.6rc1: Python 2.6rc1
(r26rc1:66438, Sep 13 2008, 09:20:38) [MSC v.1500 32 bit (Intel)].

Thanks a lot for the wonderful programming language Python!!

@wplappert wplappert mannequin added OS-windows and removed stdlib Python modules in the Lib dir labels Sep 13, 2008
@amauryfa
Copy link
Member

I just installed python 2.6rc1, and I don't get the error at all.
are you sure that you did not install a 2.6b3 afterwards?

The content of your file d:\Python26\lib\httplib.py does not match with
mine, suggest a version mismatch.

@wplappert
Copy link
Mannequin Author

wplappert mannequin commented Sep 13, 2008

Please close this issue. Between 2.6b3 and 2.6rc1 Lib/httplib.py has
been changed. Sorry about the confusion!

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS-windows type-crash A hard crash of the interpreter, possibly with a core dump
Projects
None yet
Development

No branches or pull requests

2 participants