← Back to team overview

yade-users team mailing list archive

Re: [Question #232190]: error with plotting in the second example (Gravity deposition)

 

Question #232190 on Yade changed:
https://answers.launchpad.net/yade/+question/232190

Jan Stránský proposed the following answer:
Hi Luis,

there seems to be two problems:

1) "file or dir not found". You should specify the example1.py location
correctly.

Either change directory (cd) to the directory where example1.is saved
(preferable way)
cd path/where/the/example/is/saved
yadedaily example1.py

or specify complete path to example1.py as an yadedaily argument
yadedaily /path/to/example1.py

if you saved your example in home, skip this topic, but for future use have
it in mind

2) you need python file (.py extension), not .odt file (from LibreOffice I
guess). Do not use Word-like editors for editing scripts and source files,
use gedit instead (gedit is Ubuntu default editor for such purposes, you
can also use some other plain text editor like geany, vim, emacs...)

HTH
Jan



2014-04-26 20:41 GMT+02:00 Luis Barbosa <
question232190@xxxxxxxxxxxxxxxxxxxxx>:

> Question #232190 on Yade changed:
> https://answers.launchpad.net/yade/+question/232190
>
> Luis Barbosa requested more information:
> Yes, its's exactly what I'm trying, the errors now:
>
> luis@luis-VirtualBox:~$ yadedaily example1.py
> Welcome to Yade 1.05.0
> TCP python prompt on localhost:9000, auth cookie `ukscas'
> XMLRPC info provider on http://localhost:21000
> Running script example1.py
> Traceback (most recent call last):
>   File "/usr/bin/yadedaily", line 174, in runScript
>     execfile(script,globals())
> IOError: [Errno 2] file or dir not found: 'example1.py'
> [[ ^L clears screen, ^U kills line. F12 controller, F11 3d view (use h-key
> for showing help), F10 both, F9 generator, F8 plot. ]]
>
> I've just used a text edior from Ubuntu and saved the example as .odt, in
> dir home. Do I need save in the same dir of the yadedaily
> Or am I creating .py in a wrong way
>
> --
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to     : yade-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-users
> More help   : https://help.launchpad.net/ListHelp
>

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.