Advertisement
Guest User

Untitled

a guest
May 14th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. >>> from multiprocessing import Process
  2. >>> def a():
  3. ... while 1:
  4. ... pass
  5. ...
  6. >>> processing = Process(target=a)
  7. >>> processing.start()
  8. >>> Traceback (most recent call last):
  9. File "<string>", line 1, in <module>
  10. File "C:\Python27\lib\multiprocessing\forking.py", line 381, in main
  11. self = load(from_parent)
  12. File "C:\Python27\lib\pickle.py", line 1384, in load
  13. return Unpickler(file).load()
  14. File "C:\Python27\lib\pickle.py", line 864, in load
  15. dispatch[key](self)
  16. File "C:\Python27\lib\pickle.py", line 1096, in load_global
  17. klass = self.find_class(module, name)
  18. File "C:\Python27\lib\pickle.py", line 1132, in find_class
  19. klass = getattr(mod, name)
  20. AttributeError: 'module' object has no attribute 'a'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement