magic-wormhole / magic-wormhole

get things from one computer to another, safely
MIT License
20.26k stars 638 forks source link

wormhole: command not found #207

Closed ilmoralito closed 7 years ago

ilmoralito commented 7 years ago

Hi. I getting the message wormhole: command not found in a fresh and free of errors installation in ubuntu 16.04 LTS. Thanks for any idea

meejah commented 7 years ago

How did you install it? Did you activate the virtualenv in the shell you're trying to run wormhole in?

ilmoralito commented 7 years ago

Thanks for answering and I have not activated it, I followed the installation guide and probe. What could be the next step?

meejah commented 7 years ago

What have you done thus far; it's not clear which instructions you followed?

ilmoralito commented 7 years ago

I followed the installation instructions https://github.com/warner/magic-wormhole#installation

meejah commented 7 years ago

That doesn't include explicit virtualenv instructions, though. So you did the apt-get commands, and then what?

ilmoralito commented 7 years ago

I Run the commands in this order:

sudo apt-get install python-pip build-essential python-dev libffi-dev libssl-dev pip install magic-wormhole

At this point i got a message about upgrade pip

So i run

pip install --upgrade pip

This last step i do not know if it is relevant

After that i tried sending a file

wormhole send somefile.txt

And i get wormhole: command not found message

meejah commented 7 years ago

You should upgrade pip and then install wormhole. Also, there is no virtualenv involved in your above steps (perhaps pip defaults to using --user on Ubuntu? I do not know). Try this:

virtualenv venv
source venv/bin/activate
pip install --upgrade pip setuptools
pip install magic-wormhole
wormhole --help
ilmoralito commented 7 years ago

It works.

When I try to send a file after a while I get this message

wormhole send Roshiandkids.png

ERROR: We had a problem connecting to the relay server: (relay URL was ws://relay.magic-wormhole.io:4000/v1) User timeout caused connection failure.

Firewall I guess

thehackercat commented 7 years ago

@ilmoralito I have the same problem, so how do u solve this at the end ? Set up some http proxy or disable the firewall?

meejah commented 7 years ago

Most firewalls should allow HTTP traffic; perhaps it is sad about the non-default port (4000 instead of 80 or 443)?

BirkhoffLee commented 6 years ago

@meejah The government of People's Republic of China has a internet censorship called Great FireWall which blocks your relay servers. Is it possible to use wormhole with proxies?

birkhoff at Birkhoff-MBPR in ~
$ wormhole send README.md
ERROR: We had a problem connecting to the relay server:
(relay URL was ws://relay.magic-wormhole.io:4000/v1)
connection was closed uncleanly (WebSocket opening handshake timeout (peer did not finish the opening handshake in time))
ysig commented 1 year ago

@meejah I also installed under a university server which has a known proxy and just running wormhole send yields the same error. Why doesn't it pick up the proxy and send it through it? (it's both set on HTTP_PROXY and HTTPS_PROXY)

meejah commented 1 year ago

@ysig I made your comment a new issue. Please feel free to add more details if you have :)