View Full Version : Help

03-04-2014, 08:43 AM
Help me please.

I know nothing about python but would like to learn. Ive downloaded some scripts from JustAddMilk and put them in my python scripts folder. When i start LW i get the following errors.

Im assuming ive got them in the wrong place or the scripts are calling other scripts which i dont have or are in the wrong place.

Someone fancy helping a python newb out :):):).


03-04-2014, 08:58 AM
I think I can help. Just not right now. Sorry, busy at work. When I get a chance i'll take a look at the errors you're getting. My guess is you need external libraries like numpy or scipy. There's a post on the blog about how to get them and how to install them. I'll put it here when I get a chance.

03-04-2014, 09:50 AM
Thanks Rich im glad you responded im a complete newbie at python so treat me like an idiot :):):).

03-04-2014, 09:54 AM
OK, yes, you're missing some libraries.

First you need my libraries which you can get here. Make sure you read the directions on where to put them.

Those libraries need some external libraries in some cases. You can find out about them here:

The stuff on justaddmilk isn't designed to be plug-n-play, exactly. You should follow along with the posts to make sure you understand what I'm doing, so hopefully you can take those ideas and do it yourself.

That being said, I'm glad you posted about your problems, since I want the site to be as helpful as possible. I'm thinking it needs a reorganization since it kind of wandered off in a different direction than I'd intended it to at the start.

03-04-2014, 10:23 AM
Well its my fault for not reading as well. I found your site and decided to use it and some videos to teach myself python for lightwave. So expect more silly questions from me no doubt :):):)

03-04-2014, 10:30 AM
Have no fear about silly (sounding) questions. For every question you ask, there are a ton of people who wanted to ask, or who will someday need to ask the same question.

Some links that I really should get onto my site:
http://www.codecademy.com/tracks/python - this will help you learn the basics of python - no lightwave required
https://projecteuler.net/ - this will help you stretch your knowledge of whatever your chosen programming language is, and begin to think about algorithms and how to solve problems efficiently.

03-04-2014, 11:25 AM
Thanks Rich, i have python 2.7 and 3.3 installed, do i need both or is 2.7 good enough, i believe this is the one that works best with LW as i think LW used 2.7.3. Is this correct. Ive unzipped the Python 2.7 that comes with LW into the bin folder in LW. The pythonLibs like numpy, do i install these on c:/Python27 or in the LW bin folder for Python.

Last time i coded was in the mid 1980's with basic, even had the numbers on the side still, i see they don't use them anymore.

03-04-2014, 11:30 AM
Lightwave likes 2.7.5. Personally I would just get rid of 3.3 to avoid the risk of any confusion.

I've got things set up as if you've installed numpy etc. into c:/Python27. Bob Hood made a recommendation about a different way to do it so it doesn't matter where python is installed (check the comments), but I haven't had a chance to implement it in my stuff yet.

Make sure you get the 64bit binaries for numpy if you're on windows 7 64.

03-04-2014, 04:00 PM
Hi Rich, thanks for that i will get rid of 3.3. Im installing only 64bit libraries.