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

multiprocessing build fails on Fedora 8 and Xubuntu 8 + solution #47425

Closed
mark-summerfield mannequin opened this issue Jun 23, 2008 · 2 comments
Closed

multiprocessing build fails on Fedora 8 and Xubuntu 8 + solution #47425

mark-summerfield mannequin opened this issue Jun 23, 2008 · 2 comments
Labels
build The build process and cross-build

Comments

@mark-summerfield
Copy link
Mannequin

mark-summerfield mannequin commented Jun 23, 2008

BPO 3175
Nosy @mark-summerfield

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-06-23.19:47:40.730>
created_at = <Date 2008-06-23.09:08:04.704>
labels = ['build']
title = 'multiprocessing build fails on Fedora 8 and Xubuntu 8 + solution'
updated_at = <Date 2008-06-23.19:47:40.729>
user = 'https://github.com/mark-summerfield'

bugs.python.org fields:

activity = <Date 2008-06-23.19:47:40.729>
actor = 'benjamin.peterson'
assignee = 'jnoller'
closed = True
closed_date = <Date 2008-06-23.19:47:40.730>
closer = 'benjamin.peterson'
components = ['Build']
creation = <Date 2008-06-23.09:08:04.704>
creator = 'mark'
dependencies = []
files = []
hgrepos = []
issue_num = 3175
keywords = []
message_count = 2.0
messages = ['68618', '68643']
nosy_count = 2.0
nosy_names = ['mark', 'jnoller']
pr_nums = []
priority = 'normal'
resolution = 'duplicate'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue3175'
versions = ['Python 3.0']

@mark-summerfield
Copy link
Mannequin Author

mark-summerfield mannequin commented Jun 23, 2008

I built Python 30b1 from the tarball on Fedora 8 and Xubuntu 8.
My only configure switch was --prefix to get a local build.

On both systems the only build error I got was:

Failed to find the necessary bits to build these modules:
_gestalt

which shouldn't matter because it is a Mac thing not a Linux thing (and
already reported)---there were no other error messages, so no warning
that multiprocessing wasn't working.

Running make test does _not_ indicate any problem with the
multiprocessing module (same output on both systems):

302 tests OK.
21 tests skipped:
test_bsddb3 test_cProfile test_codecmaps_cn test_codecmaps_hk
test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_curses
test_kqueue test_normalization test_ossaudiodev test_pep277
test_socketserver test_startfile test_timeout test_urllib2net
test_urllibnet test_winreg test_winsound test_xmlrpc_net
test_zipfile64
Those skips are all expected on linux2.

If I run test_multiprocessing.py manually from the _build_ directory it
works fine.

But if I use the locally installed Python 3 (soft linked to python3 in
my PATH), on both systems I get this:

: python3 -V
Python 3.0b1
: python3 Lib/test/test_multiprocessing.py
Traceback (most recent call last):
  File "Lib/test/test_multiprocessing.py", line 19, in <module>
import multiprocessing.dummy
ImportError: No module named multiprocessing.dummy

Now given that the tests all pass it seemed to me that the problem was
with the build rather than with the module itself, and that led to the
solution, which for both systems is the same simple command:

cp -R ~/download/Python-3.0b1/Lib/multiprocessing
~/opt/python30b1/lib/python3.0

So it seems that although the shared library is copied correctly from
the build directory, what has been forgotten is to copy the
multiprocessing directory itself.

@mark-summerfield mark-summerfield mannequin added the build The build process and cross-build label Jun 23, 2008
@jnoller
Copy link
Mannequin

jnoller mannequin commented Jun 23, 2008

This is a duplicate of
http://bugs.python.org/issue3150

@jnoller jnoller mannequin self-assigned this Jun 23, 2008
@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
build The build process and cross-build
Projects
None yet
Development

No branches or pull requests

1 participant