Comments (5)
If you type 'ssh localhost python' at a bash prompt do you get a Python
shell?
I appreciate that the ability to identify and report the errors encountered
here could be improved.
On Sun, 16 Oct 2016, 14:18 Petros Makris, [email protected] wrote:
Executing
#!/usr/bin/env python
from chopsticks.tunnel import Tunnel
tun = Tunnel('localhost')
import time
print('Time on %s:' % tun.host, tun.call(time.time))Results to
Traceback (most recent call last):
File "./py0.py", line 11, in
print('Time on %s:' % tun.host, tun.call(time.time))
File "/Users/username/example/.chopsticks/lib/python2.7/site-packages/chopsticks/tunnel.py", line 179, in call
raise RemoteException(ret.msg)
chopsticks.tunnel.RemoteException: Unexpected EOF on stream—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#13, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAlrCMAhdyDJ7c4_NH0ONHzpoDVjN7yMks5q0iQ1gaJpZM4KX-BW
.
from chopsticks.
Closing this issue until ability to identify and report errors encountered is improved.
from chopsticks.
This is a genuine issue; I'd rather keep it open.
from chopsticks.
Did you get the error message line
[localhost] bash: /usr/bin/python2: No such file or directory
? If this is the problem, it's relatively easy to fix; just add (before connection):
Tunnel.python2 = 'python'
from chopsticks.
This seems to be the situation on an out-of-the-box Mac OS X Sierra. I believe this is a duplicate of #14.
The solution is documented here: http://chopsticks.readthedocs.io/en/latest/howto.html#how-to-customise-interpreter-paths
from chopsticks.
Related Issues (20)
- Error importing packages that use pbr HOT 1
- Call logging.basicConfig on tunnel start HOT 1
- EP2017 Sprint details HOT 2
- Failing to instantiate an object causes traceback HOT 1
- Jupyter notebook import doesn't work recursively HOT 1
- Error when dis._unpack_opargs() does not exist
- Issues reported by lgtm.com
- Create a benchmark suite
- Write documentation for passwordless SSH
- Error when trying to print env HOT 2
- Decorated functions can't be called remotely
- Traceback on slow connections when using python3 HOT 4
- Howto create Tunnel with ssh password HOT 5
- ErrorResult does not compare equal
- ImportError from deserialise_func
- Tunnel destructor prevents subsequent stderr interception HOT 1
- Comparison with multiprocessing remote manager
- can not call simple commands HOT 1
- RFC: pencode performance improvements
- Prompt responder
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chopsticks.