Welcome to ask.woodem.org. You may post when you login through your GitHub account.

Problems to run woo

0 votes
44 views
asked Jul 27, 2016 by edudutraufmg (250 points)

Hi,
I'm trying to run woo with the following command

woo flow-analysis.py

and is giving the following error
 

$ woo flow-analysis.py
Welcome to Woo ver. 1.1+3977+39~ubuntu16.04.1, API 10103
Running script flow-analysis.py
/usr/lib/python3/dist-packages/past/builtins/misc.py:79: DeprecationWarning: 'U' mode is deprecated
  with open(filename, "rbU") as fin:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/wooMain.py", line 375, in runScript
    execfile(script,globals())
  File "/usr/lib/python3/dist-packages/past/builtins/misc.py", line 81, in execfile
    code = compile(source, filename, "exec")
  File "flow-analysis.py", line 5
    <!DOCTYPE html>
    ^
SyntaxError: invalid syntax
[[ ^L clears screen, ^U kills line. F12 controller, F11 3d view, F10 both, F8 plot. ]]
Woo [1]:



Thank you for your help,

Best Regards,
Eduardo Dutra

1 Answer

0 votes
answered Jul 29, 2016 by eudoxos (43,490 points)
selected Jul 29, 2016 by eudoxos
 
Best answer

Hi, you seem to have downloaded the HTML page from github instead of just the file itself (you can check by opening it in something like gedit, you should see just the script, not stuff like <!DOCTYPE html>). The best to do is to clone the whole repository https://github.com/woodem/woo/ to your HDD and go to examples there. Also before you proceed, read some tutorials on python and also UNIX command-line, it will save you a lot of frustration. Understanding is the best way to learn from problems & mistakes. HTH, Vaclav

commented Jul 29, 2016 by edudutraufmg (250 points)

Vaclav,

I did clone https://github.com/woodem/woo/ address

But keeps giving

/ Woo-master / examples $ woo flow-analysis.py; 5 ~
Purging old / tmp / tmp-woo-70e1b5d9 (pid = 5735)
Welcome to Woo see. 1.1 + 3977 + 39 ~ ubuntu16.04.1, API 10103
Running script flow-analysis.py
/usr/lib/python3/dist-packages/past/builtins/misc.py:79: DeprecationWarning: 'U' mode is deprecated
with open (filename, "RBU") the fin:
[[^ L clears screen, ^ U kills line. F12 controller, F11 3D view, F10 BOTH F8 plot. ]]
Woo [1]:

I'm trying to make it work on Linux to study woo and python

The installed version of python is

$ Ipython -V
3.2.3

Best Regards,
Eduardo Dutra

commented Jul 29, 2016 by eudoxos (43,490 points)

I don't see any problem, there is no error now. Open the controller and see if the simulation is running, or type woo.master.scene.step to see the current step number. It will be running in the background.

...