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

Installation issues #136

Closed
nltran opened this issue Jul 31, 2021 · 11 comments
Closed

Installation issues #136

nltran opened this issue Jul 31, 2021 · 11 comments

Comments

@nltran
Copy link

nltran commented Jul 31, 2021

Hello,

I am running macOS big sur on an Apple M1 (MacBook Air)
I am trying to install vsketch by following the documentation. There are a couple of dependencies required by vsketch that I could successfully install with brew (scipy, geos, shapely) but I have trouble in particular with PySide2.

I keep getting the following error
ERROR: No matching distribution found for PySide2<6.0.0,>=5.15.2
although I have installed PySide2 via home-brew

Do you have any idea what is happening? Could you help me with installing vsketch?

@abey79
Copy link
Owner

abey79 commented Jul 31, 2021

Hello @nltran. I don't have a M1 computer to test, but I've heard of many issue with Homebrew. My suggestion is to use MacPort's python 3.9, which is known to work on several M1 users. You'll want to install at least the following packages:

sudo port install python3.9 py39-pip py39-shapely py39-pyside2  py39-scipy

Then, as always, it's best to use a virtual environment to install vsketch.

@nltran
Copy link
Author

nltran commented Aug 1, 2021

Thanks @abey79 !

@llimllib
Copy link

llimllib commented Aug 25, 2021

I was able to build on an M1 mac with:

brew install llvm qt@5
CLANG_INSTALL_DIR=/opt/homebrew/opt/llvm \
    CMAKE_PREFIX_PATH=/opt/homebrew/Cellar/qt@5/5.15.2 \
    python setup.py install --qmake=$(which qmake) --parallel=8 --build-tests

I was not able to get the library to recognize the clang install that is already present on my system at /Library/Developer/CommandLineTools/usr, no idea why

@consier
Copy link

consier commented Aug 29, 2021

I tried installing Pyside2 via MacPorts as suggested by @abey79
Unfortunately MacPort's Pyside2 is not yet compatible with arm64 / Mac M1: gt5-webengine, which is a dependency for Pyside2 fails to build.

@abey79
Copy link
Owner

abey79 commented Sep 1, 2021

@abruto I'm surprised by this as it did work for others. Did you install the corresponding MacPort package? (port install py39-pyside2)

@consier
Copy link

consier commented Sep 3, 2021

Yes, I tried.
port install py39-pyside2 yields:

Error: Failed to build qt5-qtwebengine: command execution failed
Error: Processing of port py39-pyside2 failed

There is an open ticket about this issue on MacPorts.

@abey79
Copy link
Owner

abey79 commented Sep 3, 2021

Oh ok. What happens if you pip install pyside2 in your venv?

@consier
Copy link

consier commented Sep 3, 2021

ERROR: Could not find a version that satisfies the requirement PySide2 (from versions: none)
ERROR: No matching distribution found for PySide2

Thank you you for trying to help, @abey79. I'm really trying hard to install vsketch for quite a while now..

@hishamsajid
Copy link
Contributor

hishamsajid commented Oct 2, 2021

I am trying to install on a Lenovo thinkpad and getting a similar error

ERROR: No matching distribution found for numpy<2.0.0,>=1.20.1

I have set up a new a python3.6 conda environment just for this purpose but still getting the same error.

EDIT:

Issue gets fixed on python3.7 - I think this requirement should be mentioned in the installation section.

@abey79
Copy link
Owner

abey79 commented Oct 2, 2021

@hishamsajid indeed Numpy has dropped support for python 3.6 recently. I strongly suggest moving to python 3.9, as 3.7 is getting older and with 3.10 about to be released I'm expecting more librairies to drop support.

And yes, I agree installation instructions could be improved. Feel free to submit a PR to this end ;)

@abey79
Copy link
Owner

abey79 commented Jan 3, 2022

I've recently updated vpype's installation instructions. They apply 100% to vsketch.

@abey79 abey79 closed this as completed Jan 3, 2022
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

5 participants