suapapa / arscons

!! DEPRECATED !! scons script for Arduino sketch
76 stars 19 forks source link

Interpretation error #7

Open konfiot opened 12 years ago

konfiot commented 12 years ago

Hello, I have had an error while trying to execute arscons, python throws me an error : ImportError: No module named path, on line 40 it cames from the from path import path instruction, i've searched about this module and about the Environnement() function, but I didn't find anything. I tried on python 2.7 and 2.4 and I run over windows vista (don't hit me !) Thanks in advance

suapapa commented 12 years ago

It should be "from os import path". I think I made mistake on my last commit. Will fix it soon, when I back on my PC.

konfiot commented 12 years ago

Nope, it doesn't seems to to be that, I changed it, and then I get : NameError: name 'Environment' is not defined at lin env = Environment() the same thing happens when trying with "from sys import path" if it can help you

suapapa commented 12 years ago

Didn't you try "execute" it like this?

python SConstruct

It's wrong way. The "SConstruct" is script for "scons" (like Makefile for make). You need install scons for Windows vista (don't know how) and run "scons" in arscon's direcotry.

ps. Current source in HEAD is working on my ubuntu linux box. No fix happened.

konfiot commented 12 years ago

effectively, I was doing like this, but it still throws the same error, if I change "from path import path" in "from os import path", then I get an error with this line "ARDUINO_CONFIG = list(chain(open(ARDUINO_CONF), open('/home/christian/Dropbox/Arduino/hardware/optiboot/boards.txt')))", it said that he cannot find the file /home/christian/Dropbox/Arduino/hardware/optiboot/boards.txt which seems normal, but it is the equivalent of the board.txt in the arduino directory ?