pagekite / PyPagekite

Python implementation of the PageKite remote front-end protocols.
http://pagekite.org/
GNU Affero General Public License v3.0
722 stars 123 forks source link

no attribute socket #89

Closed rzippert closed 4 years ago

rzippert commented 4 years ago

Hi!

We'd like to start using pagekite, however as we install it through the shell installer (as instructed here: http://pagekite.net/downloads), both on Mint 19 and MacOS X, we're getting the following:

pagekite.py —list

»> Welcome to pagekite.py v1.5.2.200725!

    Basic usage, gives `http://localhost:80/` a public name:
    $ pagekite.py NAME.pagekite.me

    To expose specific folders, files or use alternate local ports:
    $ pagekite.py /a/path/ NAME.pagekite.me +indexes  # built-in HTTPD
    $ pagekite.py *.html   NAME.pagekite.me           # built-in HTTPD
    $ pagekite.py 3000     NAME.pagekite.me           # HTTPD on 3000

    To expose multiple local servers (SSH and HTTP):
    $ pagekite.py ssh://NAME.pagekite.me AND 3000 NAME.pagekite.me

    To sign up with PageKite.net or get advanced instructions:
    $ pagekite.py —signup
    $ pagekite.py —help

    If you request a kite which does not exist in your configuration file,
    the program will offer to help you sign up with https://pagekite.net/
    and create it.  Pick a name, any name!
***
Error: 'module' object has no attribute 'socket'

Did we miss something? Is there a dependency missing here? As we tested on windows it worked flawlessly.

Thanks.

DogeThis commented 4 years ago

I reached out for help in the chat (https://pagekite.net/support/chat/), and the solution given by karlp was to explicitly run pagekite.py with python3.

rzippert commented 4 years ago

Great! I've the #!/usr/bin/python to #!/usr/bin/python3 and it also worked. Looks good to me. Thanks!