Author Topic: DigRGBMail.py syntax error on line 25  (Read 12434 times)

bhodgs01

  • Newbie
  • *
  • Posts: 15
Re: DigRGBMail.py syntax error on line 25
« Reply #15 on: February 07, 2013, 06:06:07 pm »
I get this when I run the exe

bhodgs01

  • Newbie
  • *
  • Posts: 15
Re: DigRGBMail.py syntax error on line 25
« Reply #16 on: February 07, 2013, 06:07:25 pm »
actually I added the directory in the python code
os.system('python C:\Python27\DigiRGB.py ' + str(newest_subject[0]) + ' ' + str(newest_subject[1]) + ' ' + str(newest_subject[2]))

digistump

  • Administrator
  • Hero Member
  • *****
  • Posts: 1465
Re: DigRGBMail.py syntax error on line 25
« Reply #17 on: February 07, 2013, 06:10:49 pm »
try running from the same directory you are in - you want to be in the current working directory and changing the os,system line won't do that.


regarding the exe - strange - lets keep trying with the script instead

bhodgs01

  • Newbie
  • *
  • Posts: 15
Re: DigRGBMail.py syntax error on line 25
« Reply #18 on: February 07, 2013, 06:40:08 pm »
when I try changing the directory by adding cd C:\python27
I get the same errror

bhodgs01

  • Newbie
  • *
  • Posts: 15
Re: DigRGBMail.py syntax error on line 25
« Reply #19 on: February 07, 2013, 10:35:01 pm »
one more thing to note.... right before it fails the digi blinks for 1 second with the correct color.  I am going to get this to work if it kills me ;D


***edit**** actually it is just making the digi reset.  doesn't display the right color. 
« Last Edit: February 07, 2013, 11:08:57 pm by bhodgs01 »