
Hello, I'm Madhu and very new to Sfepy, learning this for my Master Thesis. I'm trying to run the example given in the primer but getting an error.Please help me with this.
- I'm trying to invoke SfePy with the command 'E:|Solution/simple.py
its2D.py' . My Problem definition file and .mesh file are located in my E
drive with a folder named Solution. When I run this, I'm getting the
following error
""
E:\Solution/simple.py its2D.py ^ SyntaxError: invalid syntax
"" 2. I have attached both the problem definition file and .mesh file I have been trying from past 2 days to rectify but I couln't. Kindly help me.
Regards, Madhu

Hello Madhu,
Try using sfepy in-place build [1]. This example is in SfePy, so you can run it simply by (in the sfepy source directory):
python simple.py examples/linear_elasticity/its2D_2.py
But feel free to copy it elsewhere (as long as you stay in the sfepy source directory when running commands.
You can also use your file, but correct the path, if both the example and the mesh are in the same directory:
filename_mesh = 'its2D.mesh'
The syntax error is strange - how/where did you run the command? Also, do not mix \ and / characters in paths.
Does that help?
r. [1] http://sfepy.org/doc-devel/installation.html#in-place-build
On 11/18/2015 07:00 PM, Madhu Mahadevappa wrote:
Hello, I'm Madhu and very new to Sfepy, learning this for my Master Thesis. I'm trying to run the example given in the primer but getting an error.Please help me with this.
- I'm trying to invoke SfePy with the command 'E:|Solution/simple.py its2D.py' . My Problem definition file and .mesh file are located in my E drive with a folder named Solution. When I run this, I'm getting the following error "" E:\Solution/simple.py its2D.py ^ SyntaxError: invalid syntax
"" 2. I have attached both the problem definition file and .mesh file I have been trying from past 2 days to rectify but I couln't. Kindly help me.
Regards, Madhu

Dear Robert, Thank you very much for the reply. I'm Using Canopy. Please let me know how and where to find the SfePy directory? I'm sorry if it is a stupid question.
Regards, Madhu
On Wednesday, 18 November 2015 23:59:52 UTC+5:30, Madhu Mahadevappa wrote:
Hello, I'm Madhu and very new to Sfepy, learning this for my Master Thesis. I'm trying to run the example given in the primer but getting an error.Please help me with this.
- I'm trying to invoke SfePy with the command 'E:|Solution/simple.py its2D.py' . My Problem definition file and .mesh file are located in my E drive with a folder named Solution. When I run this, I'm getting the following error ""
E:\Solution/simple.py its2D.py ^ SyntaxError: invalid syntax"" 2. I have attached both the problem definition file and .mesh file I have been trying from past 2 days to rectify but I couln't. Kindly help me.
Regards, Madhu
participants (2)
-
Madhu Mahadevappa
-
Robert Cimrman