Linux 4.4.0-53-generic #74-Ubuntu SMP Fri Dec 2 15:59:10 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
chopsticks ==> 1.0
Sample program
from chopsticks.tunnel import Local
import git
def do_it():
repo=git.Repo('/my_git_repo')
return repo.working_dir
local_tun = Local('localhost')
print(local_tun.call(do_it))
on python 2.7 the above code fails with
Traceback (most recent call last):
File "test.py", line 11, in <module>
print(local_tun.call(do_it))
File "/usr/local/lib/python2.7/dist-packages/chopsticks-1.0-py2.7.egg/chopsticks/tunnel.py", line 299, in call
raise RemoteException(ret.msg)
chopsticks.tunnel.RemoteException: Host 'localhost' raised exception; traceback follows
Traceback (most recent call last):
File "bubble.py", line 172, in wrapper
File "bubble.py", line 236, in do_call
File "chopsticks://chopsticks/serialise_main.py", line 143, in execute_func
f = deserialise_func(*func_data)
File "chopsticks://chopsticks/serialise_main.py", line 132, in deserialise_func
__import__(mod)
ImportError: No module named glob
On python 3.5 , code works fine.
When I tried to debug using rpdb, I found the below list of imports from deserialise_func
My Env:
Sample program
on python 2.7 the above code fails with
On python 3.5 , code works fine.
When I tried to debug using rpdb, I found the below list of imports from deserialise_func