ladybug-tools / butterfly

:butterfly: A light python API for creating and running OpenFoam cases for CFD simulation.
http://ladybug-tools.github.io/butterfly.html
GNU General Public License v3.0
249 stars 72 forks source link

Import butterfly python problem 'Config.yml' missing #407

Open eapuertoc opened 4 years ago

eapuertoc commented 4 years ago

Hello!

My apologies if my question is an easy one but I'm has no much experience with python.

I try to install the package such as ladybug: pip install lbt-butterfly

But throws the following error:

File "/usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/models.py", line 935, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://pypi.org/simple/lbt-butterfly/

So I clone your package using: git clone https://github.com/ladybug-tools/butterfly I include the package in python using: python setup.py install But if I use "from butterfly import *" in python it throws the following error:

Traceback (most recent call last): File "", line 1, in File "/home/user/Programs/Anaconda/lib/python3.7/site-packages/lbt_butterfly-1.0.2.dev1+g78e3a8b-py3.7.egg/butterfly/init.py", line 34, in with open('config.yml') as inst: FileNotFoundError: [Errno 2] No such file or directory: 'config.yml'

I don't know what I'm doing wrong, again, my apologies if is something trivial.