Freshwater-Initiative / Observatory

Codebase for water research
MIT License
9 stars 12 forks source link

Need test cases. #3

Open lsetiawan opened 6 years ago

lsetiawan commented 6 years ago

Probably okay for now, but it'd be great to have a couple of test cases to test the functions.

jphuong commented 6 years ago

I've tried pip install ogh, but I'm not able to import the library. There seems to be an encryption error going on.

screen shot 2018-03-14 at 2 11 38 pm

lsetiawan commented 6 years ago

@jphuong How did you install ogh? Just pip install?

jphuong commented 6 years ago

yes. "pip install ogh". I looked up this error and found this related thread. [https://github.com/Miserlou/Zappa/issues/854] They suggest that it might have something to do with the .pyc, something strange about the python interpreter that could differ between the python 2.7 and python 3.6 versions.

lsetiawan commented 6 years ago

There are many different issues that can be happening, probably related more dependencies, etc. Try installing the dependencies first with conda then do pip install. That works for me.

lsetiawan commented 6 years ago

Gotta figure out what's missing. I can't even complete pip install. What python version are you using?

jphuong commented 6 years ago

Python environment: 3.6.4.final.0

conda version: 4.3.29

It seems that you, me, and Christina are each getting different error messages. Christina's error message has to do with line 14 in the ogh.py. After inspecting that error code, I'm just going remove that line as it was a constraint from a different environment that no longer applies. That doesn't resolve your issue, Don.

lsetiawan commented 6 years ago

It's in conda now. Try installing from conda. conda install -c conda-forge ogh

lsetiawan commented 6 years ago

It's in conda. I think the error is just in dependencies. I am having no problem now as long as I have installed all of the dependencies first. Of course installing via conda is the easiest way out. https://anaconda.org/conda-forge/ogh