I can't seem to enable PyPRP in Blender 2.57 (Linux)

If you feel like you're up to the challenge of building your own Ages in Blender or 3ds Max, this is the place for you!

I can't seem to enable PyPRP in Blender 2.57 (Linux)

Postby triggerfish » Thu Jan 19, 2012 1:15 pm

Hi all, I'm sure I'm just missing something simple.

I downloaded Blender 2.57 (32bit for Linux). Downloaded PyPRP2. Since one does not really install Blender in Linux, I extracted the folder. Blender opens and runs fine. Closed Blender. Copies the contents of the bin file to the main Blender folder. Copied the folder PyPRP2 to 2.57/scripts/addons. Reopened Blender. I see the addon in the list, but I can't seem to enable it. The checkbox just stays greyed out. What have I done!?

Any help would be greatly appreciated
triggerfish
 
Posts: 20
Joined: Tue Jan 17, 2012 11:39 am

Re: I can't seem to enable PyPRP in Blender 2.57 (Linux)

Postby triggerfish » Thu Jan 19, 2012 3:42 pm

I tried using the python command that pops up when I hover my mouse over the checkbox. Here's my result in the python console:

>>> bpy.ops.wm.addon_enable(module="PyPRP2")
{'CANCELLED'}

Traceback (most recent call last):
File "/home/otter/Programs/blender-2.57b-for ages/2.57/scripts/modules/addon_utils.py", line 207, in enable
mod = __import__(module_name)
File "/home/otter/Programs/blender-2.57b-for ages/2.57/scripts/addons/PyPRP2/__init__.py", line 41, in <module>
import headers
File "/home/otter/Programs/blender-2.57b-for ages/2.57/scripts/addons/PyPRP2/headers.py", line 22, in <module>
import exporter
File "/home/otter/Programs/blender-2.57b-for ages/2.57/scripts/addons/PyPRP2/exporter.py", line 22, in <module>
from PyHSPlasma import *
ImportError: No module named PyHSPlasma

>>>

Does this mean anything to you guys?

Thanks!
triggerfish
 
Posts: 20
Joined: Tue Jan 17, 2012 11:39 am

Re: I can't seem to enable PyPRP in Blender 2.57 (Linux)

Postby Branan » Fri Jan 20, 2012 12:27 pm

The PyHSPlasma that comes with PyPRP2 is only built for Windows. With every linux distribution being a little different, it doesn't really make sense to try and share a build.

First things first: install the Blender 2.5 (or 2.6) from your package manager, even if you're on a 64-bit distribution. The 32-bit restriction is windows only, due to PhysX for MOULagain ages. If you're just targeting UruCC, there's no need to enable PhysX (and I don't think it works on Linux anyway).

You'll need to build libHSPlasma and PyHSPlasma from source on Linux. Do you have experience building packages? If so it's a fairly simple package to build. If not I can throw together a script to do it. I'll just need to know what Linux distribution and version you're using so I can write it appropriately.
Image
Your friendly neighborhood shard admin
User avatar
Branan
Gehn Shard Admin
 
Posts: 694
Joined: Fri Nov 16, 2007 9:45 pm
Location: Portland, OR

Re: I can't seem to enable PyPRP in Blender 2.57 (Linux)

Postby triggerfish » Fri Jan 20, 2012 12:55 pm

Branan,

Thank you very much for the reply. I do not have much experience building from source, so a script would be very much appreciated. I'm using the latest Linux Mint 12 (64 bit).

I would like to continue using Blender 2.61, but I do have 2.57b loaded as well. I did not install these Blender versions from the package manager, as it seems that one can run Blender under Linux by simply extracting the files into a folder. Should I try installing Blender from the package manager?

Or, would it be simpler to do all my Blender work using the Windows version under VirtualBox? I would rather keep using Blender under Linux. I could not seem to install, and run UruCC using Wine, so the only successful way for me to run UruCC right now is under VirtualBox/Windows XP.

** Update ***
Branan, I installed Blender 2.58 from my Package Manager

Thanks!
triggerfish
 
Posts: 20
Joined: Tue Jan 17, 2012 11:39 am

Re: I can't seem to enable PyPRP in Blender 2.57 (Linux)

Postby Branan » Fri Jan 20, 2012 1:46 pm

It may just be worthwhile to go to VirtualBox and install Blender 2.49 with PyPRP1. PyPRP2 is still very incomplete, and most of the tutorials you'll find are for PyPRP1 and the old Blender. I wouldn't want you to be discouraged from age creation because of PyPRP2's incompleteness and the difficulties installing it.


If you really want to use Blender 2.5/2.6 and you're willing to deal with missing features, read on:


The 2.61 from blender.org is built against some newer libraries than Mint 12 contains. PyHSPlasma and Blender need to be using the same version of those libraries in order to avoid crashes and data corruption. In order to guarantee that, you need to be using the Blender from the package manager. PyPRP2 will not take advantage of any of the features from blender 2.60 and 2.61, so you're not really losing anything from a technical standpoint.

Even on Virtualbox, you'd need to use 2.58 instead of 2.61, since the PyPRP2 bundle is built against older versions of some of those libraries. PyPRP2 has been quite slow on the development front lately, so that bundle hasn't been updated with new blender releases.
Image
Your friendly neighborhood shard admin
User avatar
Branan
Gehn Shard Admin
 
Posts: 694
Joined: Fri Nov 16, 2007 9:45 pm
Location: Portland, OR

Re: I can't seem to enable PyPRP in Blender 2.57 (Linux)

Postby triggerfish » Fri Jan 20, 2012 1:59 pm

Branan,

I installed Blender 2.58 from Package Manager. I would really like to use 2.58 instead of the older version of Blender, as I'm new to Blender, and I learned the little that I do know using Blender's new layout/user interface.

The limited features of PyPRP2 do not bother me in the least right now. I just want to start making beginner ages, and work up from there. Hopefully PyPRP2's development will come along as my skills increase.

Any scripts you could provide for downloading/installing the Plasma stuff needed would be greatly appreciated. I'm so new at all this Linux terminal stuff. I'm not afraid of it, I just know nothing about it.

Thanks again... it always amazes me that people are willing to take so much time to provide tools, and help others. I'm sure I'm going to enjoy this hobby very much.
triggerfish
 
Posts: 20
Joined: Tue Jan 17, 2012 11:39 am

Re: I can't seem to enable PyPRP in Blender 2.57 (Linux)

Postby Branan » Fri Jan 20, 2012 9:17 pm

My schedule for this weekend is pretty wild, but I'll try to get that script done as soon as I can, hopefully even in a form that would be useful to others too. It won't take me long to do, it's just a matter of finding enough time to do it right. Worst case, it will be done by Monday.

Oh, and I just wanted to say something about PyPRP2: All the basic geometry and material stuff is in place and working, so you can practice your building and designing skills. It's just interactive features like sounds, animations, buttons, etc. that aren't working yet.
Image
Your friendly neighborhood shard admin
User avatar
Branan
Gehn Shard Admin
 
Posts: 694
Joined: Fri Nov 16, 2007 9:45 pm
Location: Portland, OR

Re: I can't seem to enable PyPRP in Blender 2.57 (Linux)

Postby triggerfish » Fri Jan 20, 2012 10:16 pm

No problem. Thanks again!
triggerfish
 
Posts: 20
Joined: Tue Jan 17, 2012 11:39 am

Re: I can't seem to enable PyPRP in Blender 2.57 (Linux)

Postby Branan » Sun Jan 22, 2012 7:28 pm

Here's the script. Save it as "pyprp.sh" and run it from a terminal with "bash pyprp.sh".

It will:
  1. Download all dependency packages using your package manager
  2. Fetch libHSPlasma and pyHSPlasma, build them, and install them
  3. Fetch PyPRP2, build it, and install it
  4. Properly add PyPRP2 to your Blender addons directory

It will most likely ask for your password at least once, when it installs the dependency packages. Depending on your system configuration it may ask again when it installs PyHSPlasma and PyPRP2 to the system. My script is not asking for your password directly - it's the system tools asking when my script tries to perform certain actions.

EDIT: I forgot to mention that if you have a dual- or quad-core machine, you can change "MAKEOPTS=-j1" to "MAKEOPTS=-j2" or "MAKEOPTS=-j4", in order to take advantage of those extra cores to speed up build times.
EDIT2: Fixed a non-critical typo

Code: Select all
#!/bin/bash

MAKEOPTS=-j1

echo "First things first, we install dependency packages. This may ask for your sudo password"
sudo apt-get install blender build-essential cmake git libdevil-dev libjpeg-dev libz-dev python3-dev

mkdir -p $HOME/.pyprp/

if [[ -d $HOME/.pyprp/libhsplasma/build ]]; then
    echo "It looks like you already have libHSPlasma available. Let's check for updates!"
    cd $HOME/.pyprp/libhsplasma
    git pull
    cd build
else
    echo "It doesn't look like you have libHSPlasma. We're going to build it now"
    cd $HOME/.pyprp
    git clone git://github.com/H-uru/libhsplasma.git
    mkdir -p libhsplasma/build/
    cd libhsplasma/build/
    cmake ../ -DCMAKE_BUILD_TYPE=Release -DPYTHON_3_OK=True -DPYTHON_2_OK=False -DDISABLE_TOOLS=On -DDISABLE_NET=On -DDISABLE_PYTHON=Off
fi

make $MAKEOPTS
echo "Now we're installing libHSPlasma. This may ask for your sudo password."
sudo make install

if [[ -d $HOME/.pyprp/pyprp2/build ]]; then
    echo "It looks like you already have PyPRP2 available. Let's check for updates!"
    cd $HOME/.pyprp/pyprp2/
    git pull
    cd build
else
    echo "It doesn't look like you have PyPRP2. We're going to build it now"
    cd $HOME/.pyprp
    git clone git://github.com/H-uru/pyprp2.git
    mkdir -p pyprp2/build/
    cd pyprp2/build
    cmake ../buildplmipmap/ -DCMAKE_BUILD_TYPE=Release
fi

make $MAKEOPTS
echo "Now we're installing PyPRP2. This may ask for your sudo password."
sudo make install

BLENDER_VERSION=`blender --version | cut -d' ' -f2 | head -n1`
BLENDER_ADDONS_DIR=$HOME/.blender/$BLENDER_VERSION/scripts/addons/
PYPRP2_DIR=$BLENDER_ADDONS_DIR/PyPRP2

if [[ ! -h $PYPRP2_DIR ]]; then
    echo "PyPRP2 symlink for Blender does not exist. Creating it..."
    if [[ -e $PYPRP2_DIR ]]; then
        echo "Removing unknown PyPRP2 version so we can use the up-to-date one"
        rm -r $PYPRP2_DIR
    fi
    mkdir -p $BLENDER_ADDONS_DIR
    ln -s $HOME/.pyprp/pyprp2/addons/PyPRP2 $PYPRP2_DIR
fi
Image
Your friendly neighborhood shard admin
User avatar
Branan
Gehn Shard Admin
 
Posts: 694
Joined: Fri Nov 16, 2007 9:45 pm
Location: Portland, OR

Re: I can't seem to enable PyPRP in Blender 2.57 (Linux)

Postby triggerfish » Mon Jan 23, 2012 3:38 pm

Branan,

Thank you very much for that script. It worked perfectly. I now have the Plasma Development Environment in Blender 2.58. Hopefully others will benefit from the script as well. I really appreciate you going the extra mile to help me.

...now if I could only get UruCC to work. No luck with Wine, and no luck now with VirtualBox running W-XP either. I had a crash a couple of days ago that took out everything. Right back to the avatar creation screen. Even my saved sav folder does not seem to get anything back. Crashes everytime right after the progress bars after avatar creation.

I'll get it all worked out somehow... but thanks again for that script!
triggerfish
 
Posts: 20
Joined: Tue Jan 17, 2012 11:39 am

Next

Return to Building

Who is online

Users browsing this forum: No registered users and 1 guest

cron