Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
mitogen import
_build_tuple('markupsafe._speedups'): could not locate source
ModuleResponder(Router(Broker(0x10340e860))): refusing to serve stdlib module 'pathlib'
Message(0, 1, 1, 1001, 0, b'\x80\x02cmitogen.core\n_unpickle_call_error\nq\x01X\xe6\x06\x00\x00except'..1817)
Traceback (most recent call last):
File "push_demo.py", line 55, in <module>
Cli(Demo())
File "/Users/michaeldehaan/Devel/opsmop/opsmop/client/cli.py", line 47, in __init__
self.go()
File "/Users/michaeldehaan/Devel/opsmop/opsmop/client/cli.py", line 103, in go
api.apply()
File "/Users/michaeldehaan/Devel/opsmop/opsmop/core/api.py", line 54, in apply
contexts = executor.apply()
File "/Users/michaeldehaan/Devel/opsmop/opsmop/core/executor.py", line 92, in apply
self.run_all_policies(mode=APPLY)
File "/Users/michaeldehaan/Devel/opsmop/opsmop/core/executor.py", line 102, in run_all_policies
self.run_policy(policy=policy)
File "/Users/michaeldehaan/Devel/opsmop/opsmop/core/executor.py", line 120, in run_policy
self.process_role_push(policy, role)
File "/Users/michaeldehaan/Devel/opsmop/opsmop/core/executor.py", line 162, in process_role_push
print(msg.unpickle())
File "/Users/michaeldehaan/Devel/opsmop/env/lib/python3.7/site-packages/mitogen/core.py", line 607, in unpickle
raise obj
mitogen.core.CallError: exceptions.ImportError: Master does not have u'pathlib'
File "<stdin>", line 1998, in _dispatch_one
File "<stdin>", line 1985, in _parse_request
File "<stdin>", line 487, in import_module
File "<stdin>", line 935, in load_module
File "<string>", line 1, in <module>
File "master:/Users/michaeldehaan/Devel/opsmop/opsmop/core/executor.py", line 30, in <module>
import dill
File "<stdin>", line 935, in load_module
File "<string>", line 1, in <module>
File "master:/Users/michaeldehaan/Devel/opsmop/env/lib/python3.7/site-packages/dill/__init__.py", line 25, in <module>
from ._dill import dump, dumps, load, loads, dump_session, load_session, \
File "<stdin>", line 935, in load_module
File "<string>", line 1, in <module>
File "master:/Users/michaeldehaan/Devel/opsmop/env/lib/python3.7/site-packages/dill/_dill.py", line 75, in <module>
import __main__ as _main_module
File "<stdin>", line 935, in load_module
File "<string>", line 1, in <module>
File "master:push_demo.py", line 4, in <module>
from opsmop.core.easy import *
File "<stdin>", line 935, in load_module
File "<string>", line 1, in <module>
File "master:/Users/michaeldehaan/Devel/opsmop/opsmop/core/easy.py", line 21, in <module>
from opsmop.core.policy import Policy
File "<stdin>", line 935, in load_module
File "<string>", line 1, in <module>
File "master:/Users/michaeldehaan/Devel/opsmop/opsmop/core/policy.py", line 21, in <module>
from opsmop.facts.filetests import FileTests
File "<stdin>", line 935, in load_module
File "<string>", line 1, in <module>
File "master:/Users/michaeldehaan/Devel/opsmop/opsmop/facts/filetests.py", line 16, in <module>
from pathlib import Path
File "<stdin>", line 913, in load_module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment