-
Notifications
You must be signed in to change notification settings - Fork 53
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
Install Dependencies throwing subprocess error #130
Comments
I have the same issue. Have you already found a way to resolve it? |
Same here
|
just popping in to say also receiving "setuptools is replacing distutils with houdini 20.0.506 on linux |
Same error here. Houdini 20.0.506 on Linux Mint |
Same error on clean 20.0.547 install on macOS |
I found a solution for the install dependencies: Don't use the shelf tool but do it manually via pip install. Then fix all the problems that you see. Here are the details: I went ahead and tried installing the requirements via pip install in the shell (instead of the shelf tool provided). I found 2 problems when running:
edit halpecocotools/_mask.pyx: then finally now remove halpecocotools from the requirements.txt (since we just built it from source!)
Now that the dependencies have been setup, I tried Houdini: After that I was able to start playing with the MLOPs nodes! |
@gzimmermann123 thanks for finding a solution. I’m a bit lost when it comes to implementing the steps you described. You mention “ I went ahead and tried installing the requirements via pip install in the shell ” do you mean the internal houdini python shell? Would you be ok with posting a few extra steps/descruptions to make this solution (finally!) available also to pyhon noobs? @Ambrosiussen could the rembg[gpu] choice step be automated by the pip install process itself? |
@giosampietro sorry my steps are not very detailed I am afraid. The pip commands I mentioned (and the building of halpecocotools) need to be done in a shell outside of Houdini. Not a python shell but a regular system shell, bash or something. It doesn't really have anything to do with houdini. It is about installing the required python packages to make MLOPs happy. Are you on a Mac? If so the shell you should probably use is the one sidefx provides, see my screen shot. You can also use a regular Mac OS shell but this one has houdini stuff mounted already and you can simply run houdini from there if you want. If you are on linux it is the same. If you are on Windows then I imagine power shell or something? Sorry I ditched windows years ago and am not sure what would be the best way there. |
so basically instead of pressing that shelf tool inside Houdini that the MLOPs developer provide, you stay outside of Houdini in a shell and re-produce what that shell tool does. If you look closely at the code of that shelf tool, it basically boils down to go over the |
so more concretely: use the houdini shell (outside of Houdini) or a system shell, cd to where you have the MLOPs repo downloaded and run: |
I have fixed the installing issues on Windows + Linux for H20. Please try now :) |
Not working on Mac out of the box just yet. Several lines need to change:
This will result in Houdini saying dependency are installed correctly. That said, "Download Model" results in Houdini crash with a EDIT: From what I see, calling
That actually keeps running until the download is complete.... |
`Traceback (most recent call last):
File "mlops_install", line 5, in
File "/Users/*****/Documents/MLOPs/scripts/python/mlops_utils.py", line 126, in install_mlops_dependencies
pip_install(hou.text.expandString("$MLOPS/requirements.txt"), True, True)
File "/Users/****/Documents/MLOPs/scripts/python/mlops_utils.py", line 364, in pip_install
raise hou.Error(res[1].decode())
hou.Error: error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [10 lines of output]
/Applications/Houdini/Houdini19.5.752/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/_distutils_hack/init.py:17: UserWarning: Distutils was imported before Setuptools, but importing Setuptools also replaces the
distutils
module insys.modules
. This may lead to undesirable behaviors or errors. To avoid these issues, avoid using distutils directly, ensure that setuptools is installed in the traditional way (e.g. not an editable install), and/or make sure that setuptools is always imported before distutils.warnings.warn(
/Applications/Houdini/Houdini19.5.752/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/_distutils_hack/init.py:30: UserWarning: Setuptools is replacing distutils.
warnings.warn("Setuptools is replacing distutils.")
Traceback (most recent call last):
File "", line 2, in
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
`
The text was updated successfully, but these errors were encountered: