Open ysl208 opened 4 years ago
Hi, I am on ubuntu 20.04 and i installed Blender but I cannot add the image_generation path to the Python
echo $PWD/image_generation >> $BLENDER/$VERSION/python/lib/python3.5/site-packages/clevr.pth
I located blender like this:
whereis blender /snap/bin/blender
though when i look inside
/snap/bin/blender
there is no python, but it is in/snap/blender
so the command that I run eventually is
$ sudo echo $PWD >> /snap/blender/43/2.83/python/lib/python3.7/site-packages/clevr.pth bash: /snap/blender/43/2.83/python/lib/python3.7/site-packages/clevr.pth: Read-only file system
I also followed the solution to run
sudo fsck -n -f
and restart but it didn't help.Anyone can advise?
Is your problem solved? I am facing the same problem.
No, unfortunately not :\
Hey, I got it resolved. Try downloading blender 2.78c. What I did: created a clevr.pth file in site-packages folder of blender directory then -to set path: echo /home/krsumit/clevr-dataset-gen/image_generation >> /home/krsumit/blender-2.78c-linux-glibc219-x86_64/2.78/python/lib/python3.5/site-packages/clevr.pth
-/home/krsumit/blender-2.78c-linux-glibc219-x86_64/blender --background --python render_images.py -- --num_images 10 --use_gpu 1 this command generated images with masks and annotations.
How did you created a clevr.pth file in site-packages folder of blender directory ?
How did you created a clevr.pth file in site-packages folder of blender directory ?
It is an empty file. It contains nothing. Anyhow it worked.
If you have used snap, you can not modify the install directory.
sudo ln -s /BLENDERFOLDER/blender /usr/local/bin/blender
Hi, I am on ubuntu 20.04 and i installed Blender but I cannot add the image_generation path to the Python
I located blender like this:
though when i look inside
/snap/bin/blender
there is no python, but it is in/snap/blender
so the command that I run eventually is
I also followed the solution to run
sudo fsck -n -f
and restart but it didn't help.Anyone can advise?