sandialabs / pyNuMAD

pynumad is an object-oriented, open-source software program written in Python which simplifies the process of creating a three-dimensional model of a wind turbine blade.
https://sandialabs.github.io/pyNuMAD/
BSD 3-Clause "New" or "Revised" License
7 stars 6 forks source link

User didn't read instructions. #33

Closed mcMunich closed 9 months ago

mcMunich commented 11 months ago

I am trying to get started with the ansys_example.py

If I try to run the line pynumad.Blade() I get the: AttributeError: module 'pynumad' has no attribute 'Blade'

dir(pynumad) returns: ['doc', 'file', 'loader', 'name', 'package', 'path', 'spec']

I have a virtual environment I pip install pynumad to that venv I activate the venv. I start python

import pynumad
pynumad.Blade()

image

Windows 11, trying both from the cmd prompt and Spyder, python3.11

Any ideas if I am missing something (the lack of () was not the issue)

image

kbonney commented 9 months ago

Only noticed this issue today @mcMunich. Sounds like you were able to address the problem. If it isn't much trouble, mentioning how it got resolved in this thread might help future users.

mcMunich commented 7 months ago

I would like to help. In my case, there were multiple pynumad installations and either the wrong one or a wrong link was causing the issue. I had to clean up my directories (that is what the virtual env should help with) to get over this issue.

kbonney commented 7 months ago

Thanks for the update. Virtual environments are definitely the way to go. We should add some recommendations in our installation docs so that others know to use them.