Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OS X install error #27

Closed
duncangeere opened this issue Apr 20, 2020 · 9 comments
Closed

OS X install error #27

duncangeere opened this issue Apr 20, 2020 · 9 comments

Comments

@duncangeere
Copy link
Contributor

When installing vpype on OS X I get the following error:

 Collecting click>=7.1 (from vpype)
  Could not fetch URL https://pypi.python.org/simple/click/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:661) - skipping
  Could not find a version that satisfies the requirement click>=7.1 (from vpype) (from versions: )
No matching distribution found for click>=7.1 (from vpype)

Is this my error, or a bug somewhere?

@abey79
Copy link
Owner

abey79 commented Apr 20, 2020

Hello @duncangeere, what's your python and pip version? Can you give me the output of python --version and pip --version?

edit: from what I see online, upgrading pip might solve the problem: pip install --upgrade pip

@duncangeere
Copy link
Contributor Author

@abey79 Thanks! I'm on Python 2.7.1.13 and pip 9.0.1.

Upgrading pip gives me a new exciting error!

Cache entry deserialization failed, entry ignored
Could not fetch URL https://pypi.python.org/simple/pip/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:661) - skipping
Requirement already up-to-date: pip in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages

Should I be running python3 rather than python perhaps? (I have v3.6.5 of python3)

@abey79
Copy link
Owner

abey79 commented Apr 20, 2020

Yes, python 2.7 is not going to work. So try with python3 and pip3 (I assume). 3.6 is the minimum requirement for vpype. If that's the OS base python, let's see. It's usually best to install python with, e.g., Homebrew.

@duncangeere
Copy link
Contributor Author

duncangeere commented Apr 20, 2020

Thanks for your help. It does say 3.6 in the installation instructions, so apologies, I should have checked that before filing an issue!

pip3 worked and it downloaded and installed a bunch of stuff (and running it again just gives me a load of "requirement already satisfied" messages. However, when I run ./alien.sh I get ./alien.sh: line 8: vpype: command not found. In the command line, using vpype gives me a similar error: zsh: command not found: vpype.

@abey79
Copy link
Owner

abey79 commented Apr 20, 2020

Depending on the python install, some directory has to be added to the path and I'm unsure which. The easiest would be either to install python from MacPort or Homebrew (these tool should setup the path properly) or use a virtual environment, which is always a good idea.

Here is how to do it:

python3 -m venv vpype_venv
source vpype_venv/bin/activate
pip install --upgrade pip
pip install git+https://github.com/abey79/vpype#egg=vpype

Then you should be able to run vpype. Note that if you close the terminal and want to use another one, you will need to activate the virtual environment again: source vpype_venv/bin/activate. Alternatively, you can execute vpype with the full path: vpype_venv/bin/vpype --help

@abey79
Copy link
Owner

abey79 commented Apr 22, 2020

Hey @duncangeere have you been able to sort this out?

@duncangeere
Copy link
Contributor Author

Sorry for the delay! Got caught up in a few things. Will try this afternoon and let you know.

@duncangeere
Copy link
Contributor Author

duncangeere commented Apr 22, 2020

Actually I just tried now. Installing python from Homebrew didn't work, but the virtual environment approach worked a treat. I saw you recommended one on the install page, but didn't know how to do it so skipped that bit! May be worth adding the instructions above to that page :)

Thanks for helping me solve the problem!

@abey79
Copy link
Owner

abey79 commented Apr 22, 2020

Good news! I'm in the middle of a complete documentation overhaul. I've made sure the venv stuff is better explained now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants