-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
m1 mac w/ homebrew workaround; display glitches #473
Comments
Thanks for trying to figure this out! 👍🏻 I really am unsure where this glitch comes from. It's not unlike a glitch that I sometime see with very dense line work (small segments with large change of direction) – but never with such simples squares. It would be interesting to see if those glitches can be reproduced with a "nominal" install (MacPorts & al). Also, can you send me that particular file and command, so I can test on my end just to be sure? As for your workflow, if I understand correctly, it boils down to Homebrew's PySide2 being somehow broken, which is good to know. I've resorted to manual compilation of PySide2 a lot myself (before it was properly supported by MacPorts). I'd be wary of |
Thanks for your writeup. Again I am stuck.
Full error here: https://pastebin.com/5PcgEAWt |
@krummrey I don't remember coming across this error when I was manually compiling shiboken & pyside2. It looks related to Numpy. Maybe try to make sure you have numpy properly installed with brew. |
@bleything Can you retry installing vpype with Homebrew with #552 (either that branch or with master once I merge)? I'm expecting that it should be much smoother now, since PySide6 is available from pypi. |
@abey79 oh sweet! I probably won't be able to try it until tomorrow but I'll take a look asap |
@bleything sure not rush! |
@abey79: mentioned this in discord but for posterity: vpype installs correctly and |
looks like the render issue is covered by #318. going to close this. |
I've been trying to get vpype installed on my m1 mac with homebrew and I think I've made some progress. I'm pretty new to python and I'm not sure if I'm doing anything wrong, so I wanted to share what I've figured out and get some feedback. If it all looks good I'd be happy to put together a PR for the docs.
To begin with, I read #320 and ran into the same problems as @krummrey and @notwaldorf. I tried to follow the advice in that thread, specifically installing numpy and scipy via homebrew, but pretty quickly got into dependency hell. I spent a couple of hours digging in and eventually got stuck because pip couldn't find PySide even when it was installed, linked, and usable. Maybe there's a standard way to tell pip how to find packages but I couldn't figure it out.
Ultimately I decided to start over with pyenv and pyenv-virtualenv to keep things clean. I started by installing those tools and some dependencies:
Next I ran through the setup instructions in the pyenv and pyenv-virtualenv docs, then installed 3.9.12 and set up a new venv:
Then I installed PySide2 using these instructions but changed the build command for homebrew install dirs:
After waiting forever while pyside built, it was pretty smooth sailing:
However, every time I quit the viewer I get a segfault. It seems to work okay until I quit, though? There are also some graphical glitches. I took an svg from vsketch's schotter example, rendered on my windows machine where everything's working, and opened it in vpype's viewer. You can see that some of the boxes are not fully closed:
The classic viewer (and inkscape) render the file correctly so I think it's gotta be an issue somewhere in this vpype install. Unsure if it's a bug or what.
The text was updated successfully, but these errors were encountered: