leal26 / AeroPy

Python interface for XFOIL. The objective of this library is to be able to be able to call XFOIL from Python iteratively for any simulation in a total of 4 lines total.
MIT License
60 stars 31 forks source link

No module named 'aeropy.xfoil_module' #20

Open Chumik opened 4 years ago

Chumik commented 4 years ago

Hello I was trying to utilize the AeroPy but I have an issue. I have installed the library. If I do import aeropy - no errors. But if I do "import aeropy.xfoil_module as xf" or if I am tying to use it directly : "aeropy.xfoil_module.call("/airfoilNACA4.dat", alfas=2, output='Cp', Reynolds=10000, Mach=0, plots=True, NACA=False, GDES=False,iteration=10, flap=None, PANE=False, NORM=True), I get an error image

leal26 commented 4 years ago

Chumik, can you verify what happens when you import aeropy? Also, could you provide details on how you installed aeropy?

I just tried it on my computer and it worked fine.

Chumik commented 4 years ago

This is how I installed the Aeropy image

And this is what I was trying to do. image

I will appreciate your help! Your code looks like super useful tool! I hope we will make it work on my machine.

leal26 commented 4 years ago

It seems that you are using Jupiter or some other IDE and not vanilla Python. Is that correct? Using anaconda and other distributions of Python can be problematic (here are some examples where pip install files in the wrong directory).

Since this does not seem to be a problem related to Aeropy, I would recommend searching for StackOverflow answers regarding 'ModuleNotFoundError' for the Python distribution you are working with.

Chumik commented 4 years ago
I am indeed working in Jupyter. I will try some other IDE and see how it works.Thank you Sent from Mail for Windows 10 From: Pedro LealSent: Thursday, June 25, 2020 10:58 PMTo: leal26/AeroPyCc: Chumik; AuthorSubject: Re: [leal26/AeroPy] No module named 'aeropy.xfoil_module' (#20) It seems that you are using Jupiter or some other IDE and not vanilla Python. Is that correct? Using anaconda and other distributions of Python can be problematic (here are some examples where pip install files in the wrong directory).Since this does not seem to be a problem related to Aeropy, I would recommend searching for StackOverflow answers regarding 'ModuleNotFoundError' for the Python distribution you are working with.—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe. 
ghost commented 2 years ago

Hello, could you find a solution to this problem?