Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing the error when running main.py #26

Open
azinoma opened this issue Jul 17, 2019 · 1 comment
Open

Fixing the error when running main.py #26

azinoma opened this issue Jul 17, 2019 · 1 comment

Comments

@azinoma
Copy link
Contributor

azinoma commented Jul 17, 2019

Hi,

Simon and Bora figured out how to solve the error which appeared for most of us when running main.py.

A good way of solving it is:

  1. when you are logged onto the cluster, go to your home directory using cd (normally you should be there already, but a cd doesn't hurt).
  2. type vim .bashrc so that you are able to edit the bashrc file
  3. press i so that you are in insert mode.
  4. paste
    module load python
    export LD_LIBRARY_PATH=$PREFIX/lib:$LD_LIBRARY_PATH
    export IPOPT_DIR="/home/rccguest1410/OSE2019/day1/SparseGridCode/pyipopt_midway/Ipopt-3.12.5/build"
    export LD_LIBRARY_PATH=$IPOPT_DIR/lib:$LD_LIBRARY_PATH

(you need to use ctrl + shift + v for pasting) and replace the four digits in rccguest1410 by the last four digits of your yubikey.
5. press escape to exit the insert mode
6. type :wq to save the changes and exit vim.

Exit the terminal and log on again.
Now it should work.
Keep us posted if not.

@azinoma
Copy link
Contributor Author

azinoma commented Jul 19, 2019

Hi,

I am very sorry, but it seems this is not a permanent solution.
So far we didn't find a better way than doing the following every time you log on to the cluster:

  1. module load python
  2. cd OSE2019/day1/SparseGridCode/pyipopt_midway/
  3. source setup_env.sh

It's a bit annoying but this seems to work for everybody.
Let me know if not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant