PDA

View Full Version : Blender - Python module call problem 2.44


paintbox
05-19-2007, 05:44 PM
Today I wanted to toy a bit with the new release, yet something went wrongius. Whenever I want to call upon some python script. For instance if I tried the HELP section , or tried some import script all I got was an error to check the console. The console informs me it cannot find module <calledModuleName>

So I reverted back to 2.43, nothing wrong.

I am on a win machine, core2duo with the new C++ extension installed. And naturally I checked to see if corresponding module was in the directory.

drewfarr
05-19-2007, 05:56 PM
Im no coding expert(I tried my hand at it, and failed miserably ;) ), but did you make sure to upgrade to Python Version 2.5?


Just something to check.....

fktt
05-19-2007, 06:00 PM
yes iirc theres 2 versions for download at blender.org one is 2.4 the other is 2.5 so look into it! ;)

paintbox
05-20-2007, 09:17 AM
Yeah, well I checked and I see "python25.dll" in the directory. I assume that is python 2.5

Still same problem, managed to cut & paste the exact error :

Compiled with Python version 2.5.
'import site' failed; use -v for traceback
Checking for installed Python... No installed Python found.
Only built-in modules are available. Some scripts may not run.
Continuing happily.
Traceback (most recent call last):
File "<string>", line 39, in <module>
ImportError: No module named webbrowser

Cannot believe I missed that line. So I dont have python installed, yet it is in the directory.

Yecire
05-20-2007, 04:23 PM
So I dont have python installed, yet it is in the directory.

That file is not a python 'installation'. To make use of all scripts you need to download and install full python seperately.

I'm assuming you're on standard Windows, so you can download what you need directly from here (http://python.org/ftp/python/2.5.1/python-2.5.1.msi).

Otherwise, visit this page (http://python.org/download/) for other OS options.




.

paintbox
05-20-2007, 06:53 PM
Yup, that did the trick...strange, I never had to install python before.

Thanks everyone! :thumbsup:

AngelDream
05-20-2007, 09:26 PM
I like this Python distribution by ActiveState (http://www.activestate.com/products/activepython/), it not only has python install but win32 extensions as well.

CGTalk Moderation
05-20-2007, 09:26 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.