Hi Madhu,
How did you install sfepy?
r.
On 11/19/2015 07:18 PM, Madhu Mahadevappa wrote:
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 Thursday, 19 November 2015 15:23:43 UTC+5:30, Robert Cimrman wrote:
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
Hi Robert, I used Enthought Canopy.
C:\Users\Madhu N.M\Canopy- There are two folders inside this named licenses and scripts. C:\Users\Madhu N.M\.sfepy- This folder is empty.
Regards, Madhu
On Friday, 20 November 2015 13:38:35 UTC+5:30, Robert Cimrman wrote:
Hi Madhu,
How did you install sfepy?
r.
On 11/19/2015 07:18 PM, Madhu Mahadevappa wrote:
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 Thursday, 19 November 2015 15:23:43 UTC+5:30, Robert Cimrman wrote:
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
I do not think that sfepy is included in Canopy (correct me if I am wrong). IMHO you need to install it manually - try following the instructions [1].
r. [1] http://sfepy.org/doc-devel/installation.html#generic-installation-instructio...
On 11/20/2015 10:35 AM, Madhu Mahadevappa wrote:
Hi Robert, I used Enthought Canopy.
C:\Users\Madhu N.M\Canopy- There are two folders inside this named licenses and scripts. C:\Users\Madhu N.M\.sfepy- This folder is empty.
Regards, Madhu
On Friday, 20 November 2015 13:38:35 UTC+5:30, Robert Cimrman wrote:
Hi Madhu,
How did you install sfepy?
r.
On 11/19/2015 07:18 PM, Madhu Mahadevappa wrote:
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 Thursday, 19 November 2015 15:23:43 UTC+5:30, Robert Cimrman wrote:
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. 1. 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
On 11/20/2015 10:40 AM, Robert Cimrman wrote:
I do not think that sfepy is included in Canopy (correct me if I am wrong). IMHO you need to install it manually - try following the instructions [1].
Instead of using git, you can get the latest release here: http://sfepy.org/doc-devel/_static/downloads.php
r. [1] http://sfepy.org/doc-devel/installation.html#generic-installation-instructio...
On 11/20/2015 10:35 AM, Madhu Mahadevappa wrote:
Hi Robert, I used Enthought Canopy.
C:\Users\Madhu N.M\Canopy- There are two folders inside this named licenses and scripts. C:\Users\Madhu N.M\.sfepy- This folder is empty.
Regards, Madhu
On Friday, 20 November 2015 13:38:35 UTC+5:30, Robert Cimrman wrote:
Hi Madhu,
How did you install sfepy?
r.
On 11/19/2015 07:18 PM, Madhu Mahadevappa wrote:
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 Thursday, 19 November 2015 15:23:43 UTC+5:30, Robert Cimrman wrote:
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. 1. 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
It is included in canopy.
- I tried installing it manually but getting following error. line 314, in package_check raise RuntimeError(msgs['missing'] % pkg_name) RuntimeError: tables is missing
- To resolve this I tried installing PyTables there also I'm getting an
error
"Could not find a local HDF5 installation.
You may need to explicitly state where your local HDF5 headers and
library can be found by setting the
HDF5_DIR
environment variable or by using the--hdf5
command-line option".
That's why I used Canopy.
I have been trying from 2-3 weeks but couldn't resolve.
Regards, Madhu
On Friday, 20 November 2015 15:10:05 UTC+5:30, Robert Cimrman wrote:
I do not think that sfepy is included in Canopy (correct me if I am wrong). IMHO you need to install it manually - try following the instructions [1].
r. [1] http://sfepy.org/doc-devel/installation.html#generic-installation-instructio...
Hi Robert, I used Enthought Canopy.
C:\Users\Madhu N.M\Canopy- There are two folders inside this named
and scripts. C:\Users\Madhu N.M\.sfepy- This folder is empty.
Regards, Madhu
On Friday, 20 November 2015 13:38:35 UTC+5:30, Robert Cimrman wrote:
Hi Madhu,
How did you install sfepy?
r.
On 11/19/2015 07:18 PM, Madhu Mahadevappa wrote:
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 Thursday, 19 November 2015 15:23:43 UTC+5:30, Robert Cimrman wrote:
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. 1. 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
On 11/20/2015 10:35 AM, Madhu Mahadevappa wrote: licenses 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
On 11/20/2015 10:52 AM, Madhu Mahadevappa wrote:
It is included in canopy.
Cannot find it here: https://www.enthought.com/products/canopy/package-index/
- I tried installing it manually but getting following error. line 314, in package_check raise RuntimeError(msgs['missing'] % pkg_name) RuntimeError: tables is missing
- To resolve this I tried installing PyTables there also I'm getting an error "Could not find a local HDF5 installation. You may need to explicitly state where your local HDF5 headers and library can be found by setting the
HDF5_DIR
environment variable or by using the--hdf5
command-line option".That's why I used Canopy.
I have been trying from 2-3 weeks but couldn't resolve.
Try using anaconda [1] instead - it does not contain sfepy, but contains all the required packages to install sfepy manually.
r. [1] http://sfepy.org/doc-devel/installation.html#multi-platform-distributions-no...
Dear Robert, I just used "%run simple.py examples/diffusion/poisson_short_syntax.py" on Canopy editor and it ran with out any errors. Thank you very much for your replies.
Regards, Madhu
On Friday, 20 November 2015 15:33:08 UTC+5:30, Robert Cimrman wrote:
On 11/20/2015 10:52 AM, Madhu Mahadevappa wrote:
It is included in canopy.
Cannot find it here: https://www.enthought.com/products/canopy/package-index/
- I tried installing it manually but getting following error. line 314, in package_check raise RuntimeError(msgs['missing'] % pkg_name) RuntimeError: tables is missing
- To resolve this I tried installing PyTables there also I'm getting an error "Could not find a local HDF5 installation. You may need to explicitly state where your local HDF5 headers and library can be found by setting the
HDF5_DIR
environment variable or by using the--hdf5
command-line option".That's why I used Canopy.
I have been trying from 2-3 weeks but couldn't resolve.
Try using anaconda [1] instead - it does not contain sfepy, but contains all the required packages to install sfepy manually.
r. [1] http://sfepy.org/doc-devel/installation.html#multi-platform-distributions-no...
On 11/20/2015 11:17 PM, Madhu Mahadevappa wrote:
Dear Robert, I just used "%run simple.py examples/diffusion/poisson_short_syntax.py" on Canopy editor and it ran with out any errors. Thank you very much for your replies.
OK, glad to hear that :)
r.
Regards, Madhu
On Friday, 20 November 2015 15:33:08 UTC+5:30, Robert Cimrman wrote:
On 11/20/2015 10:52 AM, Madhu Mahadevappa wrote:
It is included in canopy.
Cannot find it here: https://www.enthought.com/products/canopy/package-index/
- I tried installing it manually but getting following error. line 314, in package_check raise RuntimeError(msgs['missing'] % pkg_name) RuntimeError: tables is missing
- To resolve this I tried installing PyTables there also I'm getting an error "Could not find a local HDF5 installation. You may need to explicitly state where your local HDF5 headers and library can be found by setting the
HDF5_DIR
environment variable or by using the--hdf5
command-line option".That's why I used Canopy.
I have been trying from 2-3 weeks but couldn't resolve.
Try using anaconda [1] instead - it does not contain sfepy, but contains all the required packages to install sfepy manually.
r. [1] http://sfepy.org/doc-devel/installation.html#multi-platform-distributions-no...
Dear Robert, Now I'm getting an error while post processing. When I run "%run postproc.py cylinder.vtk" ,I'm getting following error. Kindly help me.
TypeError Traceback (most recent call last) C:\Users\Madhu N.M\Downloads\sfepy-master\sfepy-master\postproc.py in <module>() 501 502 if __name__ == '__main__': --> 503 main()
C:\Users\Madhu N.M\Downloads\sfepy-master\sfepy-master\postproc.py in main() 491 filenames = filenames[0] 492 --> 493 view = view_file(filenames, filter_names, options) 494 if can_save: 495 view.save_image(options.filename)
C:\Users\Madhu N.M\Downloads\sfepy-master\sfepy-master\postproc.py in view_file(filename, filter_names, options, view) 267 step=options.step, time=options.time, 268 anti_aliasing=options.anti_aliasing, --> 269 domain_specific=options.domain_specific) 270 271 else:
TypeError: call_mlab() got an unexpected keyword argument 'colormap'
Regards, Madhu
On Saturday, 21 November 2015 16:46:13 UTC+5:30, Robert Cimrman wrote:
On 11/20/2015 11:17 PM, Madhu Mahadevappa wrote:
Dear Robert, I just used "%run simple.py examples/diffusion/poisson_short_syntax.py" on Canopy editor and it ran with out any errors. Thank you very much for your replies.
OK, glad to hear that :)
r.
Regards, Madhu
On Friday, 20 November 2015 15:33:08 UTC+5:30, Robert Cimrman wrote:
On 11/20/2015 10:52 AM, Madhu Mahadevappa wrote:
It is included in canopy.
Cannot find it here: https://www.enthought.com/products/canopy/package-index/
- I tried installing it manually but getting following error. line 314, in package_check raise RuntimeError(msgs['missing'] % pkg_name) RuntimeError: tables is missing
- To resolve this I tried installing PyTables there also I'm getting
an
error "Could not find a local HDF5 installation. You may need to explicitly state where your local HDF5 headers and library can be found by setting the
HDF5_DIR
environment variable or by using the--hdf5
command-line option".That's why I used Canopy.
I have been trying from 2-3 weeks but couldn't resolve.
Try using anaconda [1] instead - it does not contain sfepy, but contains all the required packages to install sfepy manually.
r. [1]
http://sfepy.org/doc-devel/installation.html#multi-platform-distributions-no...
Hi Madhu,
%run postproc.py cylinder.vtk"
should work, unless your mayavi is not 4.4, see [1].
Didn't you run postproc.py with the --colormap option? This option was added in 2015.3, so if you have an older sfepy version, you cannot use it.
r.
[1] https://github.com/sfepy/sfepy/issues/292
On 11/21/2015 05:48 PM, Madhu Mahadevappa wrote:
Dear Robert, Now I'm getting an error while post processing. When I run "%run postproc.py cylinder.vtk" ,I'm getting following error. Kindly help me.
TypeError Traceback (most recent call last) C:\Users\Madhu N.M\Downloads\sfepy-master\sfepy-master\postproc.py in <module>() 501 502 if __name__ == '__main__': --> 503 main()
C:\Users\Madhu N.M\Downloads\sfepy-master\sfepy-master\postproc.py in main() 491 filenames = filenames[0] 492 --> 493 view = view_file(filenames, filter_names, options) 494 if can_save: 495 view.save_image(options.filename)
C:\Users\Madhu N.M\Downloads\sfepy-master\sfepy-master\postproc.py in view_file(filename, filter_names, options, view) 267 step=options.step, time=options.time, 268 anti_aliasing=options.anti_aliasing, --> 269 domain_specific=options.domain_specific) 270 271 else:
TypeError: call_mlab() got an unexpected keyword argument 'colormap'
Regards, Madhu
Hi Robert, I used the same command and getting the below error.
Warning:"traits.has_traits:DEPRECATED: traits.has_traits.wrapped_class, 'the 'implements' class advisor has been deprecated. Use the 'provides' class decorator." followed by an import error.
I'm using Mayavi 4.4.3
Regards, Madhu
On Monday, 23 November 2015 12:53:43 UTC+5:30, Robert Cimrman wrote:
Hi Madhu,
%run postproc.py cylinder.vtk"
should work, unless your mayavi is not 4.4, see [1].
Didn't you run postproc.py with the --colormap option? This option was added in 2015.3, so if you have an older sfepy version, you cannot use it.
r.
[1] https://github.com/sfepy/sfepy/issues/292
Dear Robert, Now I'm getting an error while post processing. When I run "%run postproc.py cylinder.vtk" ,I'm getting following error. Kindly help me.
TypeError Traceback (most recent call last) C:\Users\Madhu N.M\Downloads\sfepy-master\sfepy-master\postproc.py in <module>() 501 502 if __name__ == '__main__': --> 503 main()
C:\Users\Madhu N.M\Downloads\sfepy-master\sfepy-master\postproc.py in
On 11/21/2015 05:48 PM, Madhu Mahadevappa wrote: main()
491 filenames = filenames[0] 492
--> 493 view = view_file(filenames, filter_names, options) 494 if can_save: 495 view.save_image(options.filename)
C:\Users\Madhu N.M\Downloads\sfepy-master\sfepy-master\postproc.py in view_file(filename, filter_names, options, view) 267 step=options.step, time=options.time, 268 anti_aliasing=options.anti_aliasing, --> 269 domain_specific=options.domain_specific) 270 271 else:
TypeError: call_mlab() got an unexpected keyword argument 'colormap'
Regards, Madhu
Yes, this is the issue #292. Try downgrading mayavi to 4.3.x...
Regards, r.
On 11/23/2015 08:52 PM, Madhu Mahadevappa wrote:
Hi Robert, I used the same command and getting the below error.
Warning:"traits.has_traits:DEPRECATED: traits.has_traits.wrapped_class, 'the 'implements' class advisor has been deprecated. Use the 'provides' class decorator." followed by an import error.
I'm using Mayavi 4.4.3
Regards, Madhu
I installed 4.3X. Now getting the below error. ImportError: cannot import name isinterface
Regards, Madhu
On Tuesday, 24 November 2015 02:26:44 UTC+5:30, Robert Cimrman wrote:
Yes, this is the issue #292. Try downgrading mayavi to 4.3.x...
Regards, r.
On 11/23/2015 08:52 PM, Madhu Mahadevappa wrote:
Hi Robert, I used the same command and getting the below error.
Warning:"traits.has_traits:DEPRECATED: traits.has_traits.wrapped_class, 'the 'implements' class advisor has been deprecated. Use the 'provides' class decorator." followed by an import error.
I'm using Mayavi 4.4.3
Regards, Madhu
Probably some dependency issue. Maybe try the mayavi application? (Or some alternative VTK viewer, such as paraview.)
I cannot really help much with this - no experience with current canopy. r.
On 11/23/2015 10:09 PM, Madhu Mahadevappa wrote:
I installed 4.3X. Now getting the below error. ImportError: cannot import name isinterface
Regards, Madhu
On Tuesday, 24 November 2015 02:26:44 UTC+5:30, Robert Cimrman wrote:
Yes, this is the issue #292. Try downgrading mayavi to 4.3.x...
Regards, r.
On 11/23/2015 08:52 PM, Madhu Mahadevappa wrote:
Hi Robert, I used the same command and getting the below error.
Warning:"traits.has_traits:DEPRECATED: traits.has_traits.wrapped_class, 'the 'implements' class advisor has been deprecated. Use the 'provides' class decorator." followed by an import error.
I'm using Mayavi 4.4.3
Regards, Madhu
Hi Robert, I am using Python (X,Y). It is working fine now.
Thank you very much!
Regards, Madhu
On Monday, 23 November 2015 23:36:38 UTC+1, Robert Cimrman wrote:
Probably some dependency issue. Maybe try the mayavi application? (Or some alternative VTK viewer, such as paraview.)
I cannot really help much with this - no experience with current canopy. r.
I installed 4.3X. Now getting the below error. ImportError: cannot import name isinterface
Regards, Madhu
On Tuesday, 24 November 2015 02:26:44 UTC+5:30, Robert Cimrman wrote:
Yes, this is the issue #292. Try downgrading mayavi to 4.3.x...
Regards, r.
On 11/23/2015 08:52 PM, Madhu Mahadevappa wrote:
Hi Robert, I used the same command and getting the below error.
Warning:"traits.has_traits:DEPRECATED:
On 11/23/2015 10:09 PM, Madhu Mahadevappa wrote: traits.has_traits.wrapped_class,
'the 'implements' class advisor has been deprecated. Use the 'provides' class decorator." followed by an import error.
I'm using Mayavi 4.4.3
Regards, Madhu
participants (2)
-
Madhu Mahadevappa
-
Robert Cimrman