facebookresearch / clevr-dataset-gen

A Diagnostic Dataset for Compositional Language and Elementary Visual Reasoning
Other
590 stars 208 forks source link

/python/lib/python3.7/site-packages/clevr.pth: Read-only file system #26

Open ysl208 opened 4 years ago

ysl208 commented 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?

sumit7692 commented 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.

ysl208 commented 4 years ago

No, unfortunately not :\

sumit7692 commented 4 years ago

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.

ysl208 commented 4 years ago

How did you created a clevr.pth file in site-packages folder of blender directory ?

sumit7692 commented 4 years ago

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.

andrecavalcante commented 3 years ago

If you have used snap, you can not modify the install directory.

  1. Uninstall blender.
  2. Download the zip installation file from blender.org.
  3. Extract the files to the desired folder.
  4. Create a simbolic link so you can execute blender from command line by using

sudo ln -s /BLENDERFOLDER/blender /usr/local/bin/blender

  1. Run the echo command to add image_generation to the PATH.