Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

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

Open
ysl208 opened this issue Aug 5, 2020 · 6 comments
Open

Comments

@ysl208
Copy link

ysl208 commented Aug 5, 2020

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
Copy link

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
Copy link
Author

ysl208 commented Sep 10, 2020

No, unfortunately not :\

@sumit7692
Copy link

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
Copy link
Author

ysl208 commented Sep 10, 2020

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

@sumit7692
Copy link

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
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants