airinnova / pytornado

:airplane: An implementation of the vortex-lattice method (VLM)
https://pytornado.readthedocs.io/
Apache License 2.0
25 stars 7 forks source link

Error while installing PyTornado #12

Closed bharswami closed 4 years ago

bharswami commented 4 years ago
 ERROR: Command errored out with exit status 1:
     command: 'C:\Users\Guset User\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\GUSETU~1\\AppData\\Local\\Temp\\pip-install-kscujy3m\\pytornado\\setup.py'"'"'; __file__='"'"'C:\\Users\\GUSETU~1\\AppData\\Local\\Temp\\pip-install-kscujy3m\\pytornado\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\GUSETU~1\AppData\Local\Temp\pip-install-kscujy3m\pytornado\pip-egg-info'
         cwd: C:\Users\GUSETU~1\AppData\Local\Temp\pip-install-kscujy3m\pytornado\
    Complete output (9 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\GUSETU~1\AppData\Local\Temp\pip-install-kscujy3m\pytornado\setup.py", line 90, in <module>
        packages=find_packages(where=PACKAGE_DIR),
      File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.1776.0_x64__qbz5n2kfra8p0\lib\site-packages\setuptools\__init__.py", line 71, in find
        convert_path(where),
      File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.1776.0_x64__qbz5n2kfra8p0\lib\distutils\util.py", line 112, in convert_path
        raise ValueError("path '%s' cannot end with '/'" % pathname)
    ValueError: path 'src/lib/' cannot end with '/'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
aarondettmann commented 4 years ago

Thanks for reporting this. I don't have a Windows system available at the moment to test the installation myself. From your error log, I suspect that this error occurs because the file paths in setup.py are not of Windows style. I have added a fix for that.

Please try to install PyTornado with this latest fix (https://github.com/airinnova/pytornado/archive/master.zip) and let me know if the error still remains or if something else doesn't work.

bharswami commented 4 years ago

The command with the error pasted here:

c:\Bharath\IIT PhD\Phase 3\Tornado\pytornado-master>pip install pytornado

Collecting pytornado
  Using cached https://files.pythonhosted.org/packages/ee/39/8e2cc637772fc6e8fb4e518e3d926139aa3d32d62255981473a6fe93e270/pytornado-0.5.0.tar.gz
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\guset user\appdata\local\programs\python\python38\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Guset User\\AppData\\Local\\Temp\\pip-install-5p903tdx\\pytornado\\setup.py'"'"'; __file__='"'"'C:\\Users\\Guset User\\AppData\\Local\\Temp\\pip-install-5p903tdx\\pytornado\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Guset User\AppData\Local\Temp\pip-install-5p903tdx\pytornado\pip-egg-info'
         cwd: C:\Users\Guset User\AppData\Local\Temp\pip-install-5p903tdx\pytornado\
    Complete output (9 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\Guset User\AppData\Local\Temp\pip-install-5p903tdx\pytornado\setup.py", line 90, in <module>
        packages=find_packages(where=PACKAGE_DIR),
      File "c:\users\guset user\appdata\local\programs\python\python38\lib\site-packages\setuptools\__init__.py", line 71, in find
        convert_path(where),
      File "c:\users\guset user\appdata\local\programs\python\python38\lib\distutils\util.py", line 124, in convert_path
        raise ValueError("path '%s' cannot end with '/'" % pathname)
    ValueError: path 'src/lib/' cannot end with '/'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
aarondettmann commented 4 years ago

Could you please try again following these installation instructions:

You will need to download the latest version here (https://github.com/airinnova/pytornado/archive/master.zip) and run pip install . in the PyTornado root directory. pip install pytornado does not work at the moment as pointed out in the documentation.

bharswami commented 4 years ago

I apparently need Visual C++ 14.0 which I am downloading now. In the meantime, can you please get me the results for a simple aircraft geometry from PyTornado? I want to see if the results are different from Matlab Tornado. It will save me some time. I would really appreciate the help.

bharswami commented 4 years ago

Aaron I was able to install PyTornado but I am getting the following error: 'pytornado' is not recognized as an internal or external command, operable program or batch file. Why is the command not being recognised?

On Thu, Jan 2, 2020 at 10:22 AM Aaron Dettmann notifications@github.com wrote:

Could you please try again following these installation instructions:

- https://pytornado.readthedocs.io/en/latest/user_guide/installation.html

You will need to download the latest version here ( https://github.com/airinnova/pytornado/archive/master.zip) and run pip install . in the PyTornado root directory. pip install pytornado does not work at the moment as pointed out here.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/airinnova/pytornado/issues/12?email_source=notifications&email_token=AHHO5AMOPC3MLMT7YW2STPDQ3YWH5A5CNFSM4KCDWK32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH7AIRI#issuecomment-570295365, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHHO5AJEPCDSG2VOWYGO4VLQ3YWH5ANCNFSM4KCDWK3Q .

aarondettmann commented 4 years ago

If you still get any error messages, it would help me if you can send them here, since I don't have a Windows machine to test the installation myself. Then I will be able to fix the installer and to update the documentation :)

How to generate a simple rectangular wing is described here: https://pytornado.readthedocs.io/en/latest/user_guide/getting_started.html The geometry and analysis can easily be set up in Matlab Tornado too. Numerical results can be found in the _results folder which will be generated when you run pytornado -v --run settings/template.json.

bharswami commented 4 years ago

When I call pytornado, this is the error message: 'pytornado' is not recognized as an internal or external command, operable program or batch file.

On Thu, Jan 2, 2020 at 12:49 PM Aaron Dettmann notifications@github.com wrote:

If you still get any error messages, it would help me if you can send them here, since I don't have a Windows machine to test the installation myself. Then I will be able to fix the installer and to update the documentation :)

How to generate a simple rectangular wing is described here: https://pytornado.readthedocs.io/en/latest/user_guide/getting_started.html The geometry and analysis can easily be set up in Matlab Tornado too. Numerical results can be found in the _results folder which will be generated when you run pytornado -v --run settings/template.json.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/airinnova/pytornado/issues/12?email_source=notifications&email_token=AHHO5AJ37FKPBHNAX46HYUTQ3ZHPFA5CNFSM4KCDWK32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH7L2AQ#issuecomment-570342658, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHHO5AONHG4AS7XL3I6HCC3Q3ZHPFANCNFSM4KCDWK3Q .

aarondettmann commented 4 years ago

This is a Windows issue. It has to do with where Windows looks for executable files. There is little I can do here I am afraid. Try to google the error, it seems to be a common with Python. It should also work to run python.exe C:\path\to\tornado (but I am not sure where pip installs its packages on Windows). See also:

bharswami commented 4 years ago

Hi Aaron Thanks. I am able to run pytornado by:

  1. Changing the name of the file "pytornado" to something different --> "pytornado_".
  2. Calling the command "py pytornado_ --vr Now I need another help. I have an aircraft configuration and I am having trouble making the template file. Can you please make one for me so that I can use it for other configurations in future?

On Thu, Jan 2, 2020 at 1:14 PM Aaron Dettmann notifications@github.com wrote:

This is a Windows issue. It has to do with where Windows looks for executable files. There is little I can do here I am afraid. Try to google the error, it seems to be a common with Python. It should also work to run python.exe C:\path\to\tornado (but I am not sure where pip installs its packages on Windows). See also:

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/airinnova/pytornado/issues/12?email_source=notifications&email_token=AHHO5APOE4662C2CH2QTVPLQ3ZKNBA5CNFSM4KCDWK32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH7OFUA#issuecomment-570352336, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHHO5AIQ4R2J4FRUQBS4XYDQ3ZKNBANCNFSM4KCDWK3Q .

bharswami commented 4 years ago

The reason I need your help is because I am getting wrong force values. I think it's because of the setup file. Hope you can help me out.

On Thu, Jan 2, 2020 at 1:53 PM Bharath ae15d019 ae15d019@smail.iitm.ac.in wrote:

Hi Aaron Thanks. I am able to run pytornado by:

  1. Changing the name of the file "pytornado" to something different --> "pytornado_".
  2. Calling the command "py pytornado_ --vr Now I need another help. I have an aircraft configuration and I am having trouble making the template file. Can you please make one for me so that I can use it for other configurations in future?

On Thu, Jan 2, 2020 at 1:14 PM Aaron Dettmann notifications@github.com wrote:

This is a Windows issue. It has to do with where Windows looks for executable files. There is little I can do here I am afraid. Try to google the error, it seems to be a common with Python. It should also work to run python.exe C:\path\to\tornado (but I am not sure where pip installs its packages on Windows). See also:

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/airinnova/pytornado/issues/12?email_source=notifications&email_token=AHHO5APOE4662C2CH2QTVPLQ3ZKNBA5CNFSM4KCDWK32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH7OFUA#issuecomment-570352336, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHHO5AIQ4R2J4FRUQBS4XYDQ3ZKNBANCNFSM4KCDWK3Q .

bharswami commented 4 years ago

I was able to fix this.

On Thu, Jan 2, 2020 at 2:10 PM Bharath ae15d019 ae15d019@smail.iitm.ac.in wrote:

The reason I need your help is because I am getting wrong force values. I think it's because of the setup file. Hope you can help me out.

On Thu, Jan 2, 2020 at 1:53 PM Bharath ae15d019 ae15d019@smail.iitm.ac.in wrote:

Hi Aaron Thanks. I am able to run pytornado by:

  1. Changing the name of the file "pytornado" to something different --> "pytornado_".
  2. Calling the command "py pytornado_ --vr Now I need another help. I have an aircraft configuration and I am having trouble making the template file. Can you please make one for me so that I can use it for other configurations in future?

On Thu, Jan 2, 2020 at 1:14 PM Aaron Dettmann notifications@github.com wrote:

This is a Windows issue. It has to do with where Windows looks for executable files. There is little I can do here I am afraid. Try to google the error, it seems to be a common with Python. It should also work to run python.exe C:\path\to\tornado (but I am not sure where pip installs its packages on Windows). See also:

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/airinnova/pytornado/issues/12?email_source=notifications&email_token=AHHO5APOE4662C2CH2QTVPLQ3ZKNBA5CNFSM4KCDWK32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEH7OFUA#issuecomment-570352336, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHHO5AIQ4R2J4FRUQBS4XYDQ3ZKNBANCNFSM4KCDWK3Q .

aarondettmann commented 4 years ago

Glad to hear that the installation seemed to work now. Do you have any other issues with the installation procedure itself? Otherwise, I can try to help with your other questions in one of the other issues, and we close this one. We will try to address the issues with the installation on Windows that you reported here and update the installation scripts and documentation.

bharswami commented 4 years ago

Sounds good.

On Fri, Jan 3, 2020 at 3:57 AM Aaron Dettmann notifications@github.com wrote:

Glad to hear that the installation seemed to work now. Do you have any other issues with the installation procedure itself? Otherwise, I can try to help with your other questions in one of the other issues, and we close this one. We will try to address the issues with the installation on Windows that you reported here and update the installation scripts and documentation.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/airinnova/pytornado/issues/12?email_source=notifications&email_token=AHHO5AKEVQ2ACCFMTFILGMDQ34R4DA5CNFSM4KCDWK32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIA7GIA#issuecomment-570553120, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHHO5ALI45WMTVQOO6PJGOLQ34R4DANCNFSM4KCDWK3Q .

bharswami commented 4 years ago

Thanks for your help.

On Fri, Jan 3, 2020 at 3:57 AM Aaron Dettmann notifications@github.com wrote:

Glad to hear that the installation seemed to work now. Do you have any other issues with the installation procedure itself? Otherwise, I can try to help with your other questions in one of the other issues, and we close this one. We will try to address the issues with the installation on Windows that you reported here and update the installation scripts and documentation.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/airinnova/pytornado/issues/12?email_source=notifications&email_token=AHHO5AKEVQ2ACCFMTFILGMDQ34R4DA5CNFSM4KCDWK32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIA7GIA#issuecomment-570553120, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHHO5ALI45WMTVQOO6PJGOLQ34R4DANCNFSM4KCDWK3Q .