Coder Social home page Coder Social logo

Comments (5)

lordmauve avatar lordmauve commented on July 18, 2024

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.

petmakris avatar petmakris commented on July 18, 2024

Closing this issue until ability to identify and report errors encountered is improved.

from chopsticks.

lordmauve avatar lordmauve commented on July 18, 2024

This is a genuine issue; I'd rather keep it open.

from chopsticks.

lordmauve avatar lordmauve commented on July 18, 2024

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.

lordmauve avatar lordmauve commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.