dagghe / PyOMA

GNU General Public License v3.0
49 stars 24 forks source link

no module error #1

Closed ShaoManli closed 2 years ago

ShaoManli commented 3 years ago

If I use the example with Python 3.8.8, there comes: ModuleNotFoundError: No module named 'pyOMA'

dagghe commented 3 years ago

Hi, try: "import PyOMA" (with capital P)

ShaoManli commented 3 years ago

Hi, thank you, it worked out with Capital P.

# to retrieve the example data -> there I get this error: module 'PyOMA' has no attribute 'Exdata'

braidoj commented 2 years ago

Hi,

Using the "Example.py" file on Spyder (Python 3.9) gives the message:

"AttributeError: module 'PyOMA' has no attribute 'FDDsvp'"

marco-rosso-m commented 2 years ago

Hi,

I solved the issues of importing after pip install by adding this file.

So, after pip install the PyOMA module, in order to make it work when imported e.g. in Anaconda Spyder IDE, it is necessary look for the installed packages folder (C:\ProgramData\Anaconda3\Lib\site-packages\PyOMA) and paste here the file init.py . Now, when import PyOMA as oma in Spyder IDE it will work and load all the functions inside the PyOMA module.

trantrieuvy commented 2 years ago

Hi, Can you please upload the init.py file again? the link doesn't work anymore

Kdemirlioglu commented 2 years ago

Hi! The error ("AttributeError: module 'PyOMA' has no attribute 'FDDsvp'") is still available. Could you please upload the init.py file again or tell us the solution?

marco-rosso-m commented 2 years ago

Hello @Kdemirlioglu and @trantrieuvy ,

I have fixed the problem through the pip install command. Now it will directly install also the init.py file which is necessary to import the functions inside the PyOMA.py module.

Please refer to the command pip install Py-OMA published here

marco-rosso-m commented 2 years ago

Hello,

I have fixed the problem through the pip install command. Now it will directly install also the init.py file which is necessary to import the functions inside the PyOMA.py module.

Please refer to the command pip install Py-OMA published here

Hopefully this was helpful

Best regards

Marco Martino Rosso

ArtIStE - Artificial Intelligence in Structural Engineeringhttp://www.civilml.polito.it/

e-mail: @.**@.>

Personal Websitehttp://rossomarcomartino.flazio.com/

PhD Student in Structural Civil Engineering at Politecnico di Torino


Da: Kultigin Demirlioglu @.> Inviato: venerdì 16 settembre 2022 17:54 A: dagghe/PyOMA @.> Cc: Rosso Marco Martino @.>; State change @.> Oggetto: Re: [dagghe/PyOMA] no module error (#1)

Hi! The error ("AttributeError: module 'PyOMA' has no attribute 'FDDsvp'") is still available. Could you please upload the init.py file again or tell us the solution?

— Reply to this email directly, view it on GitHubhttps://github.com/dagghe/PyOMA/issues/1#issuecomment-1249529703, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AWOAWTLWOWC5Z6H7HIOIBRLV6SJZTANCNFSM46LUYHZA. You are receiving this because you modified the open/close state.Message ID: @.***>