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

bpy 3.6.0 module cannot be installed #203

Open
chicken-bits opened this issue Mar 6, 2024 · 10 comments
Open

bpy 3.6.0 module cannot be installed #203

chicken-bits opened this issue Mar 6, 2024 · 10 comments
Labels
bug Something isn't working

Comments

@chicken-bits
Copy link

Unable to install bpy 3.6.0

When running pip install -e . I am running into a version error with bpy 3.6.0

Steps to Reproduce

cd infinigen
conda create --name infinigen python=3.10
conda activate infinigen

conda install conda-forge::gxx=11.4.0 mesalib glew glm menpo::glfw3
export C_INCLUDE_PATH=$CONDA_PREFIX/include:$C_INCLUDE_PATH
export CPLUS_INCLUDE_PATH=$CONDA_PREFIX/include:$CPLUS_INCLUDE_PATH
export LIBRARY_PATH=$CONDA_PREFIX/lib:$LIBRARY_PATH
export LD_LIBRARY_PATH=$CONDA_PREFIX/lib:$LD_LIBRARY_PATH

pip install -e .

What version of the code were you using?

commit e8687f4ab5e809be28778fe42e26d26b414cca6a

What command did you run?

pip install -e .

What are your FULL output logs?

I have attached my logs.txt.
logs.txt

If this is your first time running Infinigen, what are the full install logs?

logs attached.

Platform

  • OS & OS Version: Linux CentOS 7

Additional context

I have the correct python version required for bpy package but it seems I cannot find the pip installation location for bpy 3.6.0. Do I need to have blender 3.6.0 installed and added to my $PATH?

Many Thanks.

@chicken-bits chicken-bits added the bug Something isn't working label Mar 6, 2024
@araistrick
Copy link
Contributor

You do not need to have a separate version of blender installed in order to install the bpy pip package.

Most often this would happen if python!=3.10, since bpy only ships for this version. But in your steps to reproduce you specified version so I am not sure the cause. Maybe run which pip to make sure that conda/envs/infinigen/bin/pip is actually being used and not some other pip?

@Batwho
Copy link

Batwho commented Apr 4, 2024

Hi, I'm having an exactly same issue when follow the install procedure. Are you able to solve it? @chicken-bits

@chicken-bits
Copy link
Author

@Batwho I believe my problem was my remote machine's glibc verison did not meet the blender system requirement.

My glibc is lower than 2.28 which is why it cannot be downloaded.

On a windows machine I was able to install it.

Make sure you have the correct sytem reqs on the OS you work with.

@Batwho
Copy link

Batwho commented Apr 5, 2024

Thank you very much! I checked and indeed my glibc is lower than 2.28. Are you able to finally run on remote machine without having the sudo access? Might I ask how do you bypass this issue?

@chicken-bits
Copy link
Author

Thank you very much! I checked and indeed my glibc is lower than 2.28. Are you able to finally run on remote machine without having the sudo access? Might I ask how do you bypass this issue?

You can try and build glibc2.28 locally on your own user account. However, if the OS version of the remote machine just can't handle it then you would not be able to do it. If you are not able to build it yourself, then you need to contact someone with sudo access and ask for an upgrade for glibc (I would recommend trying to build it yourself first.)

@Batwho
Copy link

Batwho commented Apr 6, 2024

Cool. Really appreciate your help!

@yashkant
Copy link

yashkant commented Apr 11, 2024

(facing this issue)

I tried building it on my remote machine, using these steps: https://github.com/jueve/build-glibc

but, I am currently stuck with this issue.

perhaps I will try to install this on my macbook.

@Batwho
Copy link

Batwho commented Apr 19, 2024

@araistrick Still having this issue and couldn't install a local glibc. I wonder is it possible to use bpy 3.4.0 if I couldn't install 3.6.0 successfully? What would be the functionality difference between using these two versions?

@chicken-bits
Copy link
Author

@araistrick Still having this issue and couldn't install a local glibc. I wonder is it possible to use bpy 3.4.0 if I couldn't install 3.6.0 successfully? What would be the functionality difference between using these two versions?

I can confirm this can work, you have to resolve package differences on your own but the code can run and you can generate images.

@ukpkhkk
Copy link

ukpkhkk commented May 20, 2024

@araistrick Still having this issue and couldn't install a local glibc. I wonder is it possible to use bpy 3.4.0 if I couldn't install 3.6.0 successfully? What would be the functionality difference between using these two versions?

I must say that there are some issues between the two versions. I tried to render a image by using vertex color, and I found that rendering results were different with bpy library versions 3.6.0 and 3.4.0. Specifically, I didn't get the correct result when I was using the 3.4.0 bpy library,the color of object was completely wrong. And I still don't know what makes difference because I just run the same code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants