Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

SUMO installation with Ubuntu18.04 instead of Ubuntu20.04 #104

Closed
Dirkjoost opened this issue Aug 31, 2021 · 1 comment
Closed

SUMO installation with Ubuntu18.04 instead of Ubuntu20.04 #104

Dirkjoost opened this issue Aug 31, 2021 · 1 comment

Comments

@Dirkjoost
Copy link

Installing Ceasiompy + Pytornado + SUMO did not work on Ubuntu20.04. I could not get it working (at least not the SUMO part). SUMO needs a downgrading of the g++ package and installing the libgfortran3, which I could not get done on ubuntu 20.04 due to incompatibility issues.

Therefore I downgraded the operating system to clean Ubuntu18.04 and get everything installed fine.

so to whomever is installing on Ubuntu, this is how I got it working on 18.04:

  1. install git
  2. install python 3.8 (although conda installs 3.7, not sure why...)
  3. install Miniconda
    >> bash Miniconda3-latest-Linux-x86_64.sh
  4. go to your preferred path and git clone https://github.com/cfsengineering/CEASIOMpy.git
  5. install g++:
    >> sudo apt get install g++
  6. install conda environment by
    >> conda env create -f environment.yml
  7. update the ".bashrc" file with:
    alias ceasiompy='source activate ceasiompy && cd /yourPathToCEASIOMPy/CEASIOMpy/ceasiompy' alias ceasiomgui='cd /yourPathToCEASIOMPy/CEASIOMpy/ceasiompy/WorkflowCreator && python workflowcreator.py -gui'
  8. activate environment through
    >> ceasiompy
  9. go one directory up to install
    >> pip install -e .
  10. You can check now the installation by
    >> cpacscreator
    the CPACs creator program should open up
  11. PyTornado: (see https://pytornado.readthedocs.io/en/latest/) so download this file: https://github.com/airinnova/pytornado/archive/master.zip and extract it where you want it.
    a. go to the folder pytornado-master and install pytornado through:
    b. >> pip install .
    c. test by typing >> pytornado (you will get some help)
  12. install libgfortran3 by
    >>sudo apt-get install libgfortran3
    N.B. this will not work with ubuntu20.04 and the reason I downgraded to ubuntu18.04
  13. download the libpng12 package and place it in the right folder by
    >> sudo cp libpng12.so.0 /usr/lib/x86_64-linux-gnu/.
  14. now SUMO (no documentation on installation :-( ):
    a. .download from https://www.larosterna.com/products/open-source
    b. go to the directory sumo-2.7.9/bin/
    c. open SUMO by
    >> ./dwfsumo
    d. now you can make an alias in the .bashrc file as before or type >> sudo ln -s /YourPathToSUMO/sumo-standalone-Qt4-2.7.9/sumo-2.7.9/bin/dwfsumo /usr/bin/sumo
  • OS/Distribution: [Ubuntu18.04.5]
  • Python version [3.8]
  • CEASIOMpy version [0.0.1]
  • PyTornado [0.5.4]
  • SUMO [2.7.9]
@aidanjungo
Copy link
Collaborator

Thank you for the procedure for Ubuntu18.04.

Normally the procedure to install "libpng12" solve the issue of "libgfortran3" on Ubuntu 20.04 as it is explained in the installation procedure. It is strange if it did not work for you, I manage to install it several time this way.

@cfsengineering cfsengineering locked and limited conversation to collaborators Nov 2, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants