CEASIOMpy icon indicating copy to clipboard operation
CEASIOMpy copied to clipboard

Workflow Creator error

Open pedrotosin opened this issue 3 years ago • 9 comments

Module Concerned The error appeared after running the test in workflow creator Describe the bug The following error appear: FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\PedroTosin\AppData\Roaming\Python\Python37\site-packages\ceasiompy\WorkflowCreator\ToolInput\ToolInput.xml'

Screenshots https://drive.google.com/file/d/1tFicFkrI8CNqxd1CUGZFFaUqpEAgSlbS/view?usp=sharing Desktop (please complete the following information):

  • OS/Distribution: [Windows 10 Enterprise 2016 ltsb]

Additional context Another error happened during pytornado install, i don't know if they are related or not

pedrotosin avatar Mar 02 '21 20:03 pedrotosin

Have you specified the CPACS file you wanted to use at the top of the GUI? You can select one with the "Browse" button.

aidanjungo avatar Mar 04 '21 13:03 aidanjungo

The one that i used was the "D150_simple.xml" file.

pedrotosin avatar Mar 05 '21 00:03 pedrotosin

Could you check if there is a file at the path given at the last line of the error you sent.

aidanjungo avatar Mar 09 '21 12:03 aidanjungo

There is no file, the path ends in WorkflowCreator. you can see it in the following printscreen.

https://drive.google.com/file/d/1Kct_3lZ9a5QoXOnCHkpdaCQ9jUDUJVwl/view?usp=sharing

pedrotosin avatar Mar 10 '21 19:03 pedrotosin

That's strange. Could you try to create manually two directories at this path:

  • ToolInput
  • ToolOutput and then re-run your workflow.

aidanjungo avatar Mar 11 '21 07:03 aidanjungo

The path i chose to be the directory was wrong, one of the folders had a space in the name. So I reinstalled Windows and this time i think will work. But i have a new question. When you wrote this step: "Update your paths

To automatically update your paths the following command should work.

pip install -e ."

In prompt i received this: "(ceasiompy) C:\Users\User>pip install -e

Usage: pip install [options] [package-index-options] ... pip install [options] -r [package-index-options] ... pip install [options] [-e] ... pip install [options] [-e] ... pip install [options] <archive url/path> ...

-e option requires 1 argument"

What do i do?

pedrotosin avatar Aug 17 '21 22:08 pedrotosin

if you prefer a screenshot of the prompt: https://drive.google.com/file/d/1j_eZ_A1_ssp6r2q6Pw8ofDi8RgnzRIgh/view?usp=sharing

And another question, and another question, how do I do this?

"You have to add the following line, in your autoexec.bat file.

set PYTHONPATH=%PYTHONPATH%;InstalDirCEASIOMpy"

pedrotosin avatar Aug 18 '21 03:08 pedrotosin

Yes the argument is "." to specify it is the current directory, you have to type the complete line: pip install -e .

aidanjungo avatar Aug 18 '21 05:08 aidanjungo

So i found the variable system and added it.

In the pytornado installation i received this confirmation "Successfully installed pytornado-0.5.6". But, when I tested it by typing "pytornado" the message shown was:

(ceasiompy) C:\Users\User\Documents\PyTornado\pytornado>pytornado 'pytornado' is not recognized as a built-in command or external, an operable program or a batch file.

follow the printscreen of what I did: https://drive.google.com/file/d/18XRZo3RxTHDQYyf8kTXOFhzOJDksCh96/view?usp=sharing

pedrotosin avatar Aug 19 '21 02:08 pedrotosin