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

import error #1

Closed ashish-ram closed 4 years ago

ashish-ram commented 7 years ago

Hi Leal, I just wanted to contact you by creating this issue on the repo. I have been looking for an alternative for xfoil for simulation and I think your library can be really useful. However, I could not get this to work yet due to my limited know-how about packages in python. Is it possible for you to help me out. After I clone your repo, how to set it up for use in my code ? I tried to copy it to the pkg directory of my python installation, but I can not import it.

from AeroPy import find_coefficients
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named AeroPy

I would really appreciate your time.

Thanks, Ashish

leal26 commented 7 years ago

Hello Ashish,

there are at least three ways of doing it:

This is the kind of question, i.e. not AeroPy specific, that you can easily find an answer at stackexchange. If you are new to the community, I recommend creating an account there and using that resource as much as possible.

Thanks,

Pedro Leal

On Thu, Apr 20, 2017 at 6:27 AM, Ashish Kumar Ram notifications@github.com wrote:

Hi Leal, I just wanted to contact you by creating this issue on the repo. I have been looking for an alternative for xfoil for simulation and I think your library can be really useful. However, I could not get this to work yet due to my limited know-how about packages in python. Is it possible for you to help me out. After I clone your repo, how to set it up for use in my code ? I tried to copy it to the pkg directory of my python installation, but I can not import it.

from AeroPy import find_coefficients Traceback (most recent call last): File "", line 1, in ImportError: No module named AeroPy

I would really appreciate your time.

Thanks, Ashish

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_leal26_AeroPy_issues_1&d=DwMCaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=spp-aK3wLwVKeQNTJzDrOA&m=XPRJ8bwE9VvpWOiHkSkuxdoKhoqicYVkgFefZBtTaqM&s=cwScCnkS_wN8dHDF4M-rb0VIomEB0_igBhQJC0ISH6g&e=, or mute the thread https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AE6Xrn7n548QBAFPE5Pl2k0bq0SU5Ci-2Dks5rx0EggaJpZM4NC5bZ&d=DwMCaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=spp-aK3wLwVKeQNTJzDrOA&m=XPRJ8bwE9VvpWOiHkSkuxdoKhoqicYVkgFefZBtTaqM&s=9AsT22jki_iiIV1HMjSNb1_3jum3jrSoIUNKuFugnBs&e= .

ashish-ram commented 7 years ago

Hi Pedro,

Thanks a lot for a prompt response. I tried those options in ubuntu, python 2.7. I did not spend much time debugging it however, sorry for that. It looks related to subprocess. I can run it successfully in Windows perfectly, but I don't want to use windows. Regards, Ashish

leal26 commented 7 years ago

Hello Ashish,

The error you are getting is because you are trying to run xfoil.exe. AeroPy uses xfoil.exe which is an executable file. Executable files only run in Windows OS. Therefore, the current version of AeroPy only works for Windows. You need the source code for xfoil, which is in Fortran, to make it work with Linux system. Since I have to use Windows at work, I never did this.

Pedro Leal

On Thu, Apr 20, 2017 at 9:59 AM, Ashish Kumar Ram notifications@github.com wrote:

Hi Pedro,

Thanks a lot for a prompt response. I tried those options in ubuntu, python 2.7. I did not spend much time debugging it however, sorry for that. It looks related to subprocess. I can run it successfully in Windows perfectly, but I don't want to use windows. Regards, Ashish

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_leal26_AeroPy_issues_1-23issuecomment-2D295768164&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=spp-aK3wLwVKeQNTJzDrOA&m=DGaeocvFdDeQzjLeZp9Y500Qk8FZxd6xjc2z2Pro5OM&s=ECNtbsxI0Aa4trvecyDpf-iGimwYqOB98y0bpWiYR_A&e=, or mute the thread https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AE6Xrpt3zTm62r0pN8uLyb0r3lX9Fqgfks5rx3LQgaJpZM4NC5bZ&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=spp-aK3wLwVKeQNTJzDrOA&m=DGaeocvFdDeQzjLeZp9Y500Qk8FZxd6xjc2z2Pro5OM&s=KTWRYjnKqI4aK46a8y43nZbQHe6gHWt85B_k6LTPE0I&e= .