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

Installation on Windows 10 #30

Open Haider-BA opened 3 years ago

Haider-BA commented 3 years ago

I installed ceasiompy, pytornado installed by default in conda, but pytornado not working from there. getting error:

`INFO     - ######################################################################################
    INFO     - Run module: PyTornado
    INFO     - ######################################################################################
    INFO     - Going to c:\ceasiom\ceasiompy\ceasiompy\PyTornado
    INFO     - Copy CPACS from:c:\ceasiom\ceasiompy\ceasiompy\SettingsGUI\ToolOutput\ToolOutput.xml
    INFO     - Copy CPACS to:c:\ceasiom\ceasiompy\ceasiompy\PyTornado\ToolInput\ToolInput.xml
    INFO     - Running PyTornado...
    INFO     - TIXI handle has been created.c:\ceasiom\ceasiompy\ceasiompy\PyTornado\ToolInput\ToolInput.xml
    ERROR    -

    | PyTornado was not found. CEASIOMpy cannot run an analysis.
    | Make sure that PyTornado is correctly installed. Please refer to:
    |
    | * https://github.com/airinnova/pytornado

    Traceback (most recent call last):
      File "runpytornado.py", line 93, in import_pytornado
        module_name = import_module(module_name)
      File "C:\Miniconda3\envs\ceasiompy\lib\importlib\__init__.py", line 127, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
      File "<frozen importlib._bootstrap>", line 983, in _find_and_load
      File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
      File "<frozen importlib._bootstrap>", line 983, in _find_and_load
      File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
    ModuleNotFoundError: No module named 'pytornado.objects'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "runpytornado.py", line 360, in <module>
        main()
      File "runpytornado.py", line 325, in main
        cpacs_settings = get_pytornado_settings(cpacs_in_path)
      File "runpytornado.py", line 132, in get_pytornado_settings
        ps = import_pytornado('pytornado.objects.settings')
      File "runpytornado.py", line 102, in import_pytornado
        raise ModuleNotFoundError(err_msg)
    ModuleNotFoundError:

    | PyTornado was not found. CEASIOMpy cannot run an analysis.
    | Make sure that PyTornado is correctly installed. Please refer to:
    |
    | * https://github.com/airinnova/pytornado

    Traceback (most recent call last):
      File "workflowcreator.py", line 443, in <module>
        run_workflow(Opt)
      File "workflowcreator.py", line 330, in run_workflow
        wkf.run_subworkflow(Opt.module_pre, Opt.cpacs_path)
      File "c:\ceasiom\ceasiompy\ceasiompy\utils\workflowfunctions.py", line 146, in run_subworkflow
        raise ValueError('An error ocured in the module '+ module)
    ValueError: An error ocured in the module PyTornado`

Then I installed pytornado as described in https://pytornado.readthedocs.io/en/latest/user_guide/installation.html After successful installation, when I run "pytornado" on command line getting the error:

'pytornado' is not recognized as an internal or external command,
operable program or batch file.

How to sort?