Re: [Yade-users] [Question #665440]: how can make a path for yade to load python files

2018-03-12 Thread Alireza Sadeghi
Question #665440 on Yade changed:
https://answers.launchpad.net/yade/+question/665440

Status: Answered => Solved

Alireza Sadeghi confirmed that the question is solved:
Dear Jan,

Thank you very much for your help. It was about the folder that my
program was in it. it was solved. Thanks a lot.

Best Regards

Alireza

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #665440]: how can make a path for yade to load python files

2018-03-12 Thread Alireza Sadeghi
Question #665440 on Yade changed:
https://answers.launchpad.net/yade/+question/665440

Alireza Sadeghi confirmed that the question is solved:
Thanks Jan Stránský, that solved my question.

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #665440]: how can make a path for yade to load python files

2018-03-12 Thread Jan Stránský
Question #665440 on Yade changed:
https://answers.launchpad.net/yade/+question/665440

Status: Open => Answered

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

> I am new user of YADE

welcome :-)

the error says, that Python does not know about Hello.py file. There are a few 
possible reasons
1) the actual file could be named differently, hello.py (linux is case 
sensitive)
2) in the terminal, you are in different location than you saved Hello.py file. 
So e.g. if you save your hallo.py in e.g. Documents/yade, you should write in 
terminal
cd Documents/yade
and then yade Hello.py

let us know if it helped

cheers
Jan

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


[Yade-users] [Question #665440]: how can make a path for yade to load python files

2018-03-09 Thread Alireza Sadeghi
New question #665440 on Yade:
https://answers.launchpad.net/yade/+question/665440

Hello,

I am new user of YADE. I can't load any python files in the yade. when I write 
the file (for example: yade Hello.py) it shows me an error like this:

Welcome to Yade 2016-05-04.git-040f642 
TCP python prompt on localhost:9000, auth cookie `uaydks'
XMLRPC info provider on http://localhost:21000
Running script Hello.py
Traceback (most recent call last):
  File "/usr/bin/yade", line 182, in runScript
execfile(script,globals())
IOError: [Errno 2] No such file or directory: 'Hello.py'
[[ ^L clears screen, ^U kills line. F12 controller, F11 3d view (use h-key for 
showing help), F10 both, F9 generator, F8 plot. ]]

Could you please help me?I don't know what should I do :(

Thanks a lot

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp