SimCenter Forum

Artificial Intelligence in Natural Hazards Engineering => AI use in Regional Simulation (BRAILS) => Topic started by: Amir.t on December 17, 2020, 04:54:13 AM

Title: Queries about BRAILS installation
Post by: Amir.t on December 17, 2020, 04:54:13 AM
Dear Developer,

I'm trying to install BRAIL in order to use it in building classification.
Unfortunately, I have encountered the following error (attached to the message).

I'm quite new to python. I have just installed Python3.8 and pip 20.2.1. My operating system is Windows10.
I would be grateful if you could help me.

Thanks in advance,
Amir
Title: Re: Queries about BRAILS installation
Post by: charles on January 26, 2021, 05:02:49 PM
Hi Amir,

Thanks for your question.
This error is caused by two dependencies - Fiona and GDAL, installing them on Windows with pip is problematic.

Base on our email communications, your solution is to switch to conda as your python environment.

I'm putting here another solution, which doesn't need conda.
Instead, we download Fiona and GDAL's wheel files (https://www.lfd.uci.edu/~gohlke/pythonlibs/) and manually install them.


For example, if you are using Python3.8:

1. Go to https://www.lfd.uci.edu/~gohlke/pythonlibs/ and download

GDAL-3.1.4-cp38-cp38-win_amd64.whl and
Fiona-1.8.18-cp38-cp38-win_amd64.whl


here cp38 means python3.8.

2. pip install GDAL-3.1.4-cp38-cp38-win_amd64.whl

3. pip install Fiona-1.8.18-cp38-cp38-win_amd64.whl


Then you'll be able to:
pip install BRAILS

 :)




Title: Re: Queries about BRAILS installation
Post by: mbenitez on March 23, 2021, 10:49:20 PM
Hello,

I am also trying to install BRAILS in a Mac Big Sur Version 11.2.3 and I am receiving different errors. A text file with the errors from my terminal is attached.

I would greatly appreciate the help.
 
Thanks,
Mariana
Title: Re: Queries about BRAILS installation
Post by: charles on March 30, 2021, 03:44:44 AM
This is strange, not sure why anaconda wanted to install leven ...

Surprised that it required libstdc++, which has been deprecated.

Solutions:
1. Try virtualenv instead of anaconda
or
2. Try install libstdc++ manually, for example, copy the files to your corresponding folders:
https://github.com/imkiwa/xcode-missing-libstdc-
Title: Re: Queries about BRAILS installation
Post by: jsaw on April 11, 2021, 05:10:35 AM
Hello, I'm currently having difficulties installing BRAILS. I have Python 3.7.6 so I downloaded Fiona-1.8.18-cp37-cp37m-win_amd64.whl and GDAL-3.2.2-cp37-cp37m-win_amd64.whl. However, the pip install BRAILS is taking a very long time. What might be the issues causing this problem? Thank you in advance!
Title: Re: Queries about BRAILS installation
Post by: charles on April 13, 2021, 05:19:22 PM
http://simcenter-messageboard.designsafe-ci.org/smf/index.php?topic=124.0