[issue15659] using os.fork() and import user's modules results in errors

2012-08-14 Thread Michael

New submission from Michael:

if I import any python script in the beginning of the code in then I haver next 
errors:

Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File /usr/lib/python2.7/atexit.py, line 24, in _run_exitfuncs
func(*targs, **kargs)
  File /usr/lib/python2.7/multiprocessing/util.py, line 295, in _exit_function
p.join()
  File /usr/lib/python2.7/multiprocessing/process.py, line 143, in join
assert self._parent_pid == os.getpid(), 'can only join a child process'
AssertionError: can only join a child process
Error in sys.exitfunc:
Traceback (most recent call last):
  File /usr/lib/python2.7/atexit.py, line 24, in _run_exitfuncs
func(*targs, **kargs)
  File /usr/lib/python2.7/multiprocessing/util.py, line 295, in _exit_function
p.join()
  File /usr/lib/python2.7/multiprocessing/process.py, line 143, in join
assert self._parent_pid == os.getpid(), 'can only join a child process'
AssertionError: can only join a child process

--
components: None
files: mydaemon.py
messages: 168251
nosy: michaeluc
priority: normal
severity: normal
status: open
title: using os.fork() and import user's modules results in errors
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file26816/mydaemon.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15659
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15659] using os.fork() and import user's modules results in errors

2012-08-14 Thread R. David Murray

R. David Murray added the comment:

The example you uploaded doesn't call multiprocessing, yet the traceback you 
show does.  Can you provide more details on what you are actually doing?  Note 
that if you are importing a module that does a fork when it is imported, you 
are doing something wrong.

--
nosy: +r.david.murray

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15659
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15659] using os.fork() and import user's modules results in errors

2012-08-14 Thread Michael

Michael added the comment:

thanks David,
scripts which I imported were relying on some librarary which I did not 
understand. I was able to get rid of it and I don't have these errors any more. 
It was bug in my program. Thank you again.

--
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15659
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com