ln-12 / blainder-range-scanner

BlAInder range scanner is a Blender add-on to simulate Lidar and Sonar measurements. The result can be saved as annotated 2D image or 3D point cloud.
GNU General Public License v3.0
122 stars 25 forks source link

Installation of the add-on #1

Closed mabuh004 closed 3 years ago

mabuh004 commented 3 years ago

I tried to install the add-on using the provided way, which is: (Copy the range_scanner folder to C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons_contrib (Windows).)

However, when I try to activate the add on in Blender, this message appears,
error

How it can be solved?

Regards.

Reitmania commented 3 years ago

Hi, looks like you don't have the pypng python package installed on your computer. Try pip install pypng.

Best regards, reiti

ln-12 commented 3 years ago

The installation under Windows can be tricky. In case it does not work after the pip command @Reitmania mentioned, try to force the installation of all dependencies for Blenders included python with admin privileges (important):

"C:\Program Files\Blender Foundation\Blender 2.83\2.83\python\bin\python.exe" -m pip install laspy h5py pascal_voc_writer pypng pyyaml
mabuh004 commented 3 years ago

how can I try these things? in python? or in blender?

Reitmania commented 3 years ago

neither python nor blender, you should open a Windows command window and use the mentioned commands - at best the one of @ln-12 above

(e.g. if you install pypng with pip, you can check the installation in python via "import png". The bug should also disappear in the BlAInder add-on)

mabuh004 commented 3 years ago

I opened the command window and used the mentioned command, image

After that I checked the python using import png, but the bug is still existed in the add-on.

ln-12 commented 3 years ago

Did you run it as admin? If yes, try to remove the folder pypng from that location.

mabuh004 commented 3 years ago

@ln-12 when I run it as admin, this happens image

ln-12 commented 3 years ago

Well, I tried the install procedure on a fresh install of Windows and your error only occurred when running the command prompt as normal user. After starting it as administrator (for description see here), it worked as intended. Your error message also suggests that you do not run it as admin. If you really did run it as admin, I currently do not see why it is not working to be honest.

mabuh004 commented 3 years ago

@ln-12 @Reitmania Thank you so much! It is working now.