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 Mac osx part1: virtualenv #30
Comments
Hi. Are you using the pip version or cloning from git? Ive just published a new version for macOS High Sierra Python3.6 to PyPI. |
I've tried to install just now on my macbook pro with high sierra.
pip3 install facemorpher
And via git.
Did you do stuff with your bash profile or else? Otherwise I just don't know why the pip installation doesn't work. Other pip installation do work. |
I run all my python3 code in a virtual environment with virtualenvwrapper. Ive also updated the install instructions on the gist for virtualenvwrapper. |
I've enabled it in my bash profile. And I got in the p3 env.
which python gives me
This is everything in my bash profile
|
Did you do the symlink and pythonpath export as in the gist? brew installs opencv but it needs to be available in one your site-packages folder. |
Hi i'm pretty sure I did, but I did it once again. Same for the pythonpath (do I need to change something in that line for my build or can I just copy/paste it?)
How can I see if its available in my site packages. Thanks for the help so far! :) |
You can view a list of the folders where python checks for packages: Check whether the cv2 lib is at the site-packages folder:
If you dont see a cv2.*.so, symlink it again |
I get everything I need.
And then I do this?? I think somethings wrong with my links. In the site packages folder I start python => import cv2 = it works and shows me cv2.version when running facemorpher it gives me a whole new error (below in the code). When I go back to the facemorpher folder (cloned from github) I get the module not found error?
|
Ah yeh, Ive run into that matplotlib error in the past. Doing the first answer fixed it: https://stackoverflow.com/questions/21784641/installation-issue-with-matplotlib-python Can you check in the /usr/local/Cellar: |
HI! I think I'm getting there.
So my guess is that it works in the site-packages folder and now I need to make it work in the facemorpher folder. If I check /usr/local/lib: I get a bunch of files.
|
So is the current issue that you cant import cv2 from a non site-packages folder? |
Alright I added the path in my bash_profile. And the weird part is it works in my normal environment and not in the P3 .env I created..
I tried global paths as well no succes. Could it be that the image quality is to low? |
I published a fix for that yesterday. Could you uninstall and reinstall facemorpher via pip? Or git pull the changes. |
I think there is something wrong with the brew installation for opencv3. When I go out my environment I can import cv2 when I go in my env : module not found? when I list brew list opencv
My installation from the virtualenv on:
My bash_profile :
And again a virtualenv error.
So sorry to bother you so much with this, but it seems to be haunting me the virtaul env ^^ |
Taken from the docs (edited the last line):
The docs are pretty useful and I recommend reading it to learn the commands: |
Hi, yeah I did not read the docs that intensively. So I'm giving up on this, will look/learn more on these things and maybe try it on some later moment. Anyways THANKS so much for all the help and for the wonderful project!! |
No problems. You dont need to use virtualenv or virtualenvwrapper. These are additional tools to help create isolated environments with different python dependencies that can be useful when you're developing or testing different python apps. |
Hey! Hehe couldn't help it to stay of it.. But... I get this.
Should I make a new issue for this? |
That error shows up when a file doesnt exist. Double check your file path and that 0.png and 1.png are present. |
Made a fix for --out_video. Should work on osx with facemorper-3.4.0 |
I don't think the first part of the installation for mac is working or correct. I followed all the steps and everytime when I mkvirtualenv I get an error command not found. With os python, brew python and on a freshly installed os.
Care to update the installation or be more specific.
Does it need a lign in the bash_profile and such things.
Or is there anybody who can reproduce those steps with a fresh os install (high sierra)?
The text was updated successfully, but these errors were encountered: