- Forum
- Public Forums
- Finite Element Modelling - Code_Aster
- Help >>> ImportError: no module named aster
Help >>> ImportError: no module named aster
- wang_ek
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
12 years 6 months ago #6470
by wang_ek
Help >>> ImportError: no module named aster was created by wang_ek
Hello,
I use SalomeMECA 2011.2 within CAELinux and I want to retrieve node coordinates via the Utilitai.partition module.
But this module gives an error: "importError: no module named aster" with command: "import aster". I suppose it doesn't find some aster.py file. Maybe I could add the corresponding directory in the sys.path variable, if I knew where this aster file is located.
Thank you in advance for your help
I use SalomeMECA 2011.2 within CAELinux and I want to retrieve node coordinates via the Utilitai.partition module.
But this module gives an error: "importError: no module named aster" with command: "import aster". I suppose it doesn't find some aster.py file. Maybe I could add the corresponding directory in the sys.path variable, if I knew where this aster file is located.
Thank you in advance for your help
- kwou
-
- Offline
- Moderator
-
12 years 6 months ago #6472
by kwou
Interest: structural mechanics, solar energy (picture at 'my location' shows too little pv panels)
--
kind regards - kees
Replied by kwou on topic Re: Help >>> ImportError: no module named aster
Hello mr. Wang
when I use:
from Utilitai.partition import *
no problem occurs. How do you import the Utilitai.partition module?
when I use:
from Utilitai.partition import *
no problem occurs. How do you import the Utilitai.partition module?
Interest: structural mechanics, solar energy (picture at 'my location' shows too little pv panels)
--
kind regards - kees
- wang_ek
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
12 years 6 months ago #6481
by wang_ek
Replied by wang_ek on topic Re: Help >>> ImportError: no module named aster
@keeswouters thx for reply
the problem of 'no module named aster' has been resolved by corrective sys.path.
new problem is about: Operator CREA_MAILLAGE
Code:
Error:
thanks in advance
the problem of 'no module named aster' has been resolved by corrective sys.path.
new problem is about: Operator CREA_MAILLAGE
Code:
msh[i+1]=CREA_MAILLAGE(MAILLAGE=msh[i], );
Error:
JDC.py : ERREUR A L'INTERPRETATION DANS ACCAS - INTERRUPTION
>> JDC.py : DEBUT RAPPORT
CR phase d'initialisation
Etape : CREA_MAILLAGE ligne : 324 fichier : 'fort.1'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! Règle(s) non respectée(s) : - Il faut un et un seul mot-clé parmi : ('COQU_VOLU', !
! 'CREA_FISS', 'CREA_GROUP_MA', 'CREA_MAILLE', 'CREA_POI1', 'DETR_GROUP_MA', !
! 'ECLA_PG', 'HEXA20_27', 'LINE_QUAD', 'MODI_MAILLE', 'QUAD_LINE', 'REPERE', !
! 'RESTREINT', 'PENTA15_18', 'COPIE') !
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Fin Etape : CREA_MAILLAGE
fin CR phase d'initialisation
thanks in advance
- kwou
-
- Offline
- Moderator
-
12 years 6 months ago - 12 years 6 months ago #6484
by kwou
Interest: structural mechanics, solar energy (picture at 'my location' shows too little pv panels)
--
kind regards - kees
Replied by kwou on topic Re: Help >>> ImportError: no module named aster
Hoi mr Wang,
Your error message:
Rule (s) not respected (s): - must be one and only one keyword from ('COQU_VOLU'!
! 'CREA_FISS', 'CREA_GROUP_MA', 'CREA_MAILLE', 'CREA_POI1', 'DETR_GROUP_MA'!
! 'ECLA_PG', 'HEXA20_27', 'LINE_QUAD', 'MODI_MAILLE', 'QUAD_LINE', 'MARK'!
! 'RESTRICTED', 'PENTA15_18', 'COPY')!
!!!!!!!!!!!!!!!!! !!!!!!!!!!!!
End Step: CREA_MAILLAGE
I guess that the command CREA_MAILLAGE(...) needs more arguments than just MAILLAGE=....
Maybe the argument 'COPY' does the thing, I never used that:
msh2 = CREA_MAILLAGE(MAILLAGE=msh1,
COPIE=_F(TOUT='OUI'));
The document U4.23.02 states (paragraph 3.1):
COPIE
This key word factor makes it possible to create an exact copy of the initial mesh.
(I was distracted by the English translation of the error massage of the key word, parameters etc as well.
The key word is not COPY but COPIE.)
Your error message:
Rule (s) not respected (s): - must be one and only one keyword from ('COQU_VOLU'!
! 'CREA_FISS', 'CREA_GROUP_MA', 'CREA_MAILLE', 'CREA_POI1', 'DETR_GROUP_MA'!
! 'ECLA_PG', 'HEXA20_27', 'LINE_QUAD', 'MODI_MAILLE', 'QUAD_LINE', 'MARK'!
! 'RESTRICTED', 'PENTA15_18', 'COPY')!
!!!!!!!!!!!!!!!!! !!!!!!!!!!!!
End Step: CREA_MAILLAGE
I guess that the command CREA_MAILLAGE(...) needs more arguments than just MAILLAGE=....
Maybe the argument 'COPY' does the thing, I never used that:
msh2 = CREA_MAILLAGE(MAILLAGE=msh1,
COPIE=_F(TOUT='OUI'));
The document U4.23.02 states (paragraph 3.1):
COPIE
This key word factor makes it possible to create an exact copy of the initial mesh.
(I was distracted by the English translation of the error massage of the key word, parameters etc as well.
The key word is not COPY but COPIE.)
Interest: structural mechanics, solar energy (picture at 'my location' shows too little pv panels)
--
kind regards - kees
Last edit: 12 years 6 months ago by kwou.
Moderators: catux
- Forum
- Public Forums
- Finite Element Modelling - Code_Aster
- Help >>> ImportError: no module named aster
Time to create page: 0.138 seconds