ImperialCollegeLondon / sharpy

Simulation of High Aspect Ratio aeroplanes and wind turbines in Python: a nonlinear aeroelastic code
https://imperial.ac.uk/aeroelastics/sharpy
BSD 3-Clause "New" or "Revised" License
123 stars 58 forks source link

Can't activate the SHARPy conda environment #214

Closed caiomaxdias closed 2 years ago

caiomaxdias commented 2 years ago

Description of the problem I've been trying to install the SHARPy by a Docker Container following all the steps of the installation guide, but when I tried to activate the SHARPy conda environment (by using: 'conda activate sharpy_env') this message appeared on the screen: _Could not find conda enviroment: sharpyenv You can list all discoverable environments with 'conda info --envs'

In another hand, i looked for another alternative by typing 'conda activate sharpy_minimal' and anything appeared (I thought it finally worked, but i'm not sure of that). So I continued, but when I try to run a Sharpy case, I'm not able to create a generate_case file following the provided templates:

(sharpy_env) python generate_case.py

When i used this template, i received this message: bash: syntax error near unexpected token 'python'

System Info:

Additional context I need assistance, hope somebody answer me.

ngoiz commented 2 years ago

Hello,

Running the container image already activates the sharpy_minimal environment so the code is ready to go. I just checked and everything runs fine. The only thing to note is that the current version of the docker image is SHARPy v1.2.1.

The environment also includes python so just running python from within the container will get you a python prompt. I am unsure about your error message. Make sure you are running a known case file from the appropriate directory.

I am changing this issue to a discussion as it is not a bug. We will update the SHARPy version on docker soon though.