I have two machines, one can build the tuhopuu branch just fine using the free tools build instructions, the other can't. They seem to have the same make and python, and I have refreshed the source until I'm ready to puke.
Here's the error that I get very early on (when freezing the python stuff):
make: Entering directory `/home/adavis/FunBlender/intern/python/freeze'
python -S -O freeze.py -d -x os -x pprint -x string -x copy -I ../modules -o /ho
parsesetup.py:3: DeprecationWarning: the regex module is deprecated; please use
the re module
load_module 'exceptions' None None
load_module -> Module('exceptions')
load_module '__main__' 'fp' '../modules/VRMLmain.py'
Traceback (most recent call last):
File "freeze.py", line 461, in ?
File "freeze.py", line 341, in main
File "modulefinder.py", line 98, in run_script
self.load_module('__main__', fp, pathname, stuff)
File "modulefinder.py", line 252, in load_module
co = compile(fp.read()+'\n', pathname, 'exec')
File "<string>", line 2
SyntaxError: invalid syntax
make: *** [importer] Error 1
make: Leaving directory `/home/adavis/FunBlender/intern/python/freeze'
make: *** [frozen] Error 2
make: Leaving directory `/home/adavis/FunBlender'
As I said, my other machine works fine. Obviously, I have left something out of the config, but I have no idea what. Any ideas or suggestions would be greatly appreciated.
2 possible leads:
1) check what python you are using on
both machines by typing:
2) check your python path:
If the 2 machines are different, maybe try to
turn the PYTHONPATH off:
No, those were good.
I've diffed the environments, uninstalled/reinstalled cygwin, bunch of other similarly desperate measures.
The only real difference between the two machines is that the troublesome machine has Studio 6.0 & Studio .Net on it.
I have no idea what is causing this.
I'm going to go find a wall to bash my head into.
OK, that's about all I can think of...
The last time I saw somebody with exactly this
error message they had a PYTHONPATH that looked
Typing "unset PYTHONPATH" before typing make
made it work (The python that comes with cygwin
is 2.2 not 2.1).
Thanks for the help, sadly it still isn't working. I'm going to add some tracing into the script so I can see what might be causing the issue. IF I figure anything out before I go insane, I'll post back.
I added a print statement so that I could see what it was trying to compile on that line, and bang! the thing starts working. I have no idea why the problem was there, and how my addition of a print statement fixed it.
It's building now.