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

Pyton 2.3.4 Make Test Fails on Mac OS X #40381

Closed
dekiefer mannequin opened this issue Jun 10, 2004 · 6 comments
Closed

Pyton 2.3.4 Make Test Fails on Mac OS X #40381

dekiefer mannequin opened this issue Jun 10, 2004 · 6 comments
Assignees
Labels
build The build process and cross-build

Comments

@dekiefer
Copy link
Mannequin

dekiefer mannequin commented Jun 10, 2004

BPO 970799
Nosy @brettcannon, @jackjansen

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 = 'https://github.com/brettcannon'
closed_at = <Date 2004-08-07.19:11:13.000>
created_at = <Date 2004-06-10.23:42:11.000>
labels = ['build', 'invalid']
title = 'Pyton 2.3.4 Make Test Fails on Mac OS X'
updated_at = <Date 2004-08-07.19:11:13.000>
user = 'https://bugs.python.org/dekiefer'

bugs.python.org fields:

activity = <Date 2004-08-07.19:11:13.000>
actor = 'brett.cannon'
assignee = 'brett.cannon'
closed = True
closed_date = None
closer = None
components = ['Build']
creation = <Date 2004-06-10.23:42:11.000>
creator = 'dekiefer'
dependencies = []
files = []
hgrepos = []
issue_num = 970799
keywords = []
message_count = 6.0
messages = ['21124', '21125', '21126', '21127', '21128', '21129']
nosy_count = 3.0
nosy_names = ['brett.cannon', 'jackjansen', 'dekiefer']
pr_nums = []
priority = 'low'
resolution = 'not a bug'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue970799'
versions = ['Python 2.3']

@dekiefer
Copy link
Mannequin Author

dekiefer mannequin commented Jun 10, 2004

Under Mac OSX 10.3.4 with latest security update.
Power Mac G4 733MHz

Trying to install Zope 2.7.0 with Python 2.3.4.

I first used fink to install 2.3.4 but Zope could find module 'os' to
import.

I then followed the instructions at:
http://zope.org/Members/jens/docs/Document.2003-12-27.2431/
document_view to install Python with the default configure.

Unlike under fink, doing this allowed me to run 'make test'. It too
noted import problems for 'os' and 'site'.

test_tempfile
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "/Volumes/Spielen/Python-2.3.4/Lib/test/tf_inherit_check.py", 
line 6, in ?
    import os
ImportError: No module named os
test test_tempfile failed -- Traceback (most recent call last):
  File "/Volumes/Spielen/Python-2.3.4/Lib/test/test_tempfile.py", 
line 307, in test_noinherit
    self.failIf(retval > 0, "child process reports failure")
  File "/Volumes/Spielen/Python-2.3.4/Lib/unittest.py", line 274, in 
failIf
    if expr: raise self.failureException, msg
AssertionError: child process reports failure


test_atexit
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "@test.py", line 1, in ?
    import atexit
ImportError: No module named atexit
test test_atexit failed -- '' == "handler2 (7,) {'kw': 'abc'}\nhandler2 
() {}\nhandler1\n"
test_audioop

test_poll skipped -- select.poll not defined -- skipping test_poll
test_popen
'import site' failed; use -v for traceback
'import site' failed; use -v for traceback
'import site' failed; use -v for traceback
test_popen2

-------------------
229 tests OK.
2 tests failed:
test_atexit test_tempfile
24 tests skipped:
test_al test_bsddb3 test_cd test_cl test_curses test_dl
test_email_codecs test_gl test_imgfile test_largefile
test_linuxaudiodev test_locale test_nis test_normalization
test_ossaudiodev test_pep277 test_poll test_socket_ssl
test_socketserver test_sunaudiodev test_timeout test_urllibnet
test_winreg test_winsound
Those skips are all expected on darwin.
make: *** [test] Error 1
deksmacintosh:3->

@dekiefer dekiefer mannequin closed this as completed Jun 10, 2004
@dekiefer dekiefer mannequin added the invalid label Jun 10, 2004
@dekiefer dekiefer mannequin assigned brettcannon Jun 10, 2004
@dekiefer dekiefer mannequin added the build The build process and cross-build label Jun 10, 2004
@dekiefer dekiefer mannequin closed this as completed Jun 10, 2004
@dekiefer dekiefer mannequin added the invalid label Jun 10, 2004
@dekiefer dekiefer mannequin assigned brettcannon Jun 10, 2004
@dekiefer dekiefer mannequin added the build The build process and cross-build label Jun 10, 2004
@brettcannon
Copy link
Member

Logged In: YES
user_id=357491

Do you get these failures if you compile Python from scratch instead of
using Fink? How about running the tests directly?

I suspect the test_atexit failure is a Fink-specific issue and the
test_tempfile failure was just a timing quirk since it has a threaded and
that can make it sensitive to timing.

@dekiefer
Copy link
Mannequin Author

dekiefer mannequin commented Jun 28, 2004

Logged In: YES
user_id=318754

Do you get these failures if you compile Python from scratch
instead of using Fink? How about running the tests directly?

See above, the second time I installed without fink and ran the tests
directly. The errors are from 'make test' done without fink.

@jackjansen
Copy link
Member

Logged In: YES
user_id=45365

My guess is that something in your environment is messing things up.
Various of the tests that give the "import site failed" message use
subprocesses.

What I tend to do to debug issues like this is create a new dummy user
(I tend to use the short name "luser" and the long name "Bill Gates":-),
unpack a fresh distribution under that account and try building.

@dekiefer
Copy link
Mannequin Author

dekiefer mannequin commented Jun 28, 2004

Logged In: YES
user_id=318754

Thanks Jack, I'll try that.

@brettcannon
Copy link
Member

Logged In: YES
user_id=357491

OK, since we have not heard from dekiefer in over a month I am closing
this bug.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build
Projects
None yet
Development

No branches or pull requests

2 participants