clevr-dataset-gen icon indicating copy to clipboard operation
clevr-dataset-gen copied to clipboard

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

Open ysl208 opened this issue 4 years ago • 6 comments

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?

ysl208 avatar Aug 05 '20 10:08 ysl208

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.

sumit7692 avatar Sep 09 '20 19:09 sumit7692

No, unfortunately not :\

ysl208 avatar Sep 10 '20 02:09 ysl208

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.

sumit7692 avatar Sep 10 '20 04:09 sumit7692

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

ysl208 avatar Sep 10 '20 05:09 ysl208

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.

sumit7692 avatar Sep 10 '20 06:09 sumit7692

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.

andrecavalcante avatar Aug 06 '21 19:08 andrecavalcante