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

import warning in multiprocessing #47981

Closed
pitrou opened this issue Aug 29, 2008 · 4 comments
Closed

import warning in multiprocessing #47981

pitrou opened this issue Aug 29, 2008 · 4 comments
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@pitrou
Copy link
Member

pitrou commented Aug 29, 2008

BPO 3731
Nosy @pitrou

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-01.17:15:44.159>
created_at = <Date 2008-08-29.18:15:36.303>
labels = ['type-bug', 'library']
title = 'import warning in multiprocessing'
updated_at = <Date 2008-09-01.17:15:44.158>
user = 'https://github.com/pitrou'

bugs.python.org fields:

activity = <Date 2008-09-01.17:15:44.158>
actor = 'pitrou'
assignee = 'jnoller'
closed = True
closed_date = <Date 2008-09-01.17:15:44.159>
closer = 'pitrou'
components = ['Library (Lib)']
creation = <Date 2008-08-29.18:15:36.303>
creator = 'pitrou'
dependencies = []
files = []
hgrepos = []
issue_num = 3731
keywords = []
message_count = 4.0
messages = ['72146', '72275', '72279', '72281']
nosy_count = 2.0
nosy_names = ['pitrou', 'jnoller']
pr_nums = []
priority = 'normal'
resolution = 'out of date'
stage = None
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue3731'
versions = ['Python 2.6']

@pitrou
Copy link
Member Author

pitrou commented Aug 29, 2008

I get the following when running "regrtest.py -uall" under trunk:

/home/antoine/cpython/svn/Lib/multiprocessing/init.py:82:
ImportWarning: Not importing directory
'/home/antoine/cpython/svn/Modules/multiprocessing': missing
__init
_.py
import _multiprocessing

@pitrou pitrou added stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error labels Aug 29, 2008
@jnoller
Copy link
Mannequin

jnoller mannequin commented Sep 1, 2008

Prior to you getting this error: Did you get a compilation error during
the make?

@pitrou
Copy link
Member Author

pitrou commented Sep 1, 2008

Indeed. _multiprocessing.so compiles fine but afterwards I get:

*** WARNING: importing extension "_multiprocessing" failed with <type
'exceptions.AttributeError'>: 'module' object has no attribute 'SemLock'

And if I try manually:

>>> import _multiprocessing
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/antoine/cpython/__svn__/Lib/multiprocessing/__init__.py",
line 148, in <module>
    from multiprocessing.synchronize import (Lock, RLock, Condition, Event,
  File
"/home/antoine/cpython/__svn__/Lib/multiprocessing/synchronize.py", line
29, in <module>
    SEM_VALUE_MAX = _multiprocessing.SemLock.SEM_VALUE_MAX
AttributeError: 'module' object has no attribute 'SemLock'

Removing the .pyc files doesn't help.

@pitrou
Copy link
Member Author

pitrou commented Sep 1, 2008

Mmmh, after doing "svn up" again and recompiling, the extension imports
fine and the ImportWarning disappears.

@pitrou pitrou closed this as completed Sep 1, 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
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant