Python Scrip Error Console says "No Module named primstar"

Hi, Very Noob at Blender. Using Blender 2.49b, Python 2.6.2, and Primstar 1.0.0 . I installed Primstar into Blenders scripts folder. The Secondlife/Sculptie menus are now on my Blender menu options. Whenever I try to use the Primstar options I get Python scrip error: check console. The console states No module named primstar. I use Windows Vista, however I have set Blender to run program as an administrator & set the compatibility mode for Windows XP (Service Pack 2), as Blender would not work correctly in Vista.Any help would be much appreciated. 

Manny's picture

hey Summerwish up-dated

Try this:

1) Delete your previous Primstar installation.

2) Download Primstar 1.0.0

3) Unzip the archiver.

4) Copy the "primstar" folder. (that's the name "primstar")

5) Paste the "primstar" folder in your scripts directory.

6) Open Blender: Cntrl+U to save default settings. (I'm guessing you already know how to set the "User defined dir for scripts" which should point to your blender scripts directory, where the folder "primstar" should be)

Maybe I'm wrong, but I think you are copying the files inside "primstar" folder instead the whole "primstar" folder. So that's why there is no "primstar" module.

UP-DATED:

I was just reading your comment, yeah, was close enough up there, you are copying the folder "primstar_1.0.0" instead the folder "primstar".

"C:\Program Files\Blender Foundation\Blender\.blender\scripts\primstar_1.0.0\primstar\" <-- WRONG.

"C:\Program Files\Blender Foundation\Blender\.blender\scripts\primstar\" <-- CORRECT.

NOTE: This is my last comment for a while, help each other people, may the source be with you all! Davie

EUREKA! Problem solved.

EUREKA! Problem solved. Manny, Thank You so much for taking the time to help this Noob, MUCH APPRECIATED!

module not found

OS: debian sid python: 2.5.4-9 blender: 2.49.2~dfsg-1+b1 primstar 1.0.0 on trying add mesh, sculptmesh: error, check console, output is: Traceback (most recent call last): File "", line 1, in File "/home/soundbox/blender_scripts/primstar/add_mesh_sculpt_mesh.py", line 48, in from primstar import sculpty File "/home/soundbox/blender_scripts/primstar/sculpty.py", line 36, in from primstar.uv_tools import add_map_uv, snap_to_pixels File "/home/soundbox/blender_scripts/primstar/uv_tools.py", line 44, in from uvcalc_follow_active_coords import extend ImportError: No module named uvcalc_follow_active_coords

I found out that in my case

I found out that in my case the script uvcalc_follow_active_coords.py was simply missing in the primstar 1.0.0 package was simply missing. so i found it here: http://www.koders.com/python/fid57A45B0E4C5514F3874BF156A0C4169BB8377D9D... and just copied and pasted it into a new textfile and saved it as uvcalc_follow_active_coords.py in the primstar folder (ignore the encoding complaint (for linux that is)) and now all seems to work fine for me.

Domino Marama's picture

uvcalc_follow_active_coords.py

This is one of the standard scripts that come with Blender, it should be in the Blender application scripts directory.

I had the same error and did

I had the same error and did what you suggested - but my next error message is:

File "/home/~/.blender/scripts/primstar/import_sculptie.py", line 55, in
from import_obj import load_object
ImportError: No module named import_obj

I copied the import_object.py file from the .blender folder into the primstar directory (like I did with uvcalc_follow_active_coords.py) -- but that didn't work Sad

My Blender version is 2.49b --- (Python - 2.6.5) is this the problem ?

Still not working for me

Mine looks exactly like the example, but I still get the console error message. I hate this.

MOAR COPYING

I had to create three new files:
BPyMesh.py
BPyMesh_redux.py
uvcalc_follow_active_coords.py

Look them up on that Koders site from one of the comments above. Of course, I found out which ones I needed by adding one, then seeing what the next error was, until there were no errors and I could create the sphere. Moral: YMMV.

These files were not in my Python folder. I have not manually added or removed anything from my Python folder since I installed it. Also, under another user I had been able to install Primstar manually (automatic script has never worked for me >.> ) ... but for some reason, manual install didn't "just work" this time.

Domino Marama's picture

Primstar 1.1.0

This is a problem with how Debian based Linux distros install Blender. There's a workaround in Primstar 1.1.0 - make sure you read the instructions as there's an extra command to run to make these modules importable.

Manny's picture

Ubuntu10.4+py2.6.5

Was reading in the "recent comments" somebody asking this:

Q: ...My Blender version is 2.49b --- (Python - 2.6.5) is this the problem ?...

A: Probably NOT, a couple days ago installed Primstar 1.0.0 on Ubuntu 10.4 with python 2.6.5, it works smooth and clean.

My procedure:

Innocent Downloaded and installed Blender 2.49b using Synaptic.

1) Downloaded and installed python-tk using Synaptic.

2) Run Blender application to test if it was working correctly, it did.

3) Downloaded Primstar 1.0.0 & unzipped.

4) Via terminal changed the owner of '/home/manny/.blender/scripts/blender' & '/home/manny/.blender/scripts/bpymodules' from 'root' to 'manny' using: sudo chown -R <new_owner><dir_here>

5) copied the 'primstar' folder inside '/home/manny/.blender/scripts/blender' <-- there.

6) Run Blender application again, defined my scripts' directory grabbed up the 'user's preferece window' and hit Cntrl+U to save the changes.

This time I made my life even much more easier installing primstar in the unpacked scripts default directory linked to '/home/manny/.blender/scripts/blender' <-- the scripts are here by default, at least in Ubuntu 9.x & 10.4, SHOULDN'T be there but, hey, happens... Last time I think moved all the scripts to it's proper directory 'scripts' but not this time.

That's all.

re: Ubuntu10.4+py2.6.5

Same OS, python, blender version etc. etc.

I followed these steps exactly, and still it couldn't find the uvcalc_follow_active_coords module. I ended up copying the pyc file for the module to the primstar directory. Then it worked.

I'm wondering now if I'll have to debug every script this way...

But I'm glad I can at least add a sculpt mesh now. It's a start.

Onward through the fog...

I did everthing like it says

I did everthing like it says in previous comments, ( hey Summerwish up-dated
Submitted by Manny on 14 January, 2010 - 11:09. ) that one , I am running Blender 2.49b and python 2.6.5 and have copied the primstar folder to scrip directory just like what it says in that comment. oh and my operating system is Window vista, so I start the program and everything seem k, a couple of minutes into my program I get this : "Blender.exe has stop working a problem caused the program to stop working correctly. windowns now will ........." does anyone know why I keep getting that and what can I do to fix it . thanks

Hey im doing everything right

Hey im doing everything right and for some reason when i go to load a mesh i get a error that says: Python Script Error Check Console,please someone anyone help,my eamil is here so please respond asap

Python Script Error

I just downloaded the newest version of Primstar; I couldn't figure out the ReadMe, it was way too mashed togeither for me to understand.

So, I followed this and what others told me; copy the Primstar folder and put it in the scripts directory. HOWEVER, when I go to "Add Mesh - Sculpt Mesh", I get an error saying: "Python script error: check console"

What happened?

what was the new owner? I

what was the new owner? I don't understand just what it is you are doing here.
are we moving the files to a new location ?

Python script error : Check console

I'm gettin really pissed off about this. I'm using blender 2.49, and Python 2.6.6 . I can't find any tutorials to solve this, because everytime I try to add a Sculpt Mesh, apperas Python script error : Check console. Someone please tell what am i doing wrong ?

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <p> <pre>
  • Lines and paragraphs break automatically.
  • Project issue numbers (ex. [#12345]) turn into links automatically.
  • Textual smileys will be replaced with graphical ones.

More information about formatting options