Comments (8)
From what I can tell, you probably need to install GEOS. Let me know if it works, and I'll add it as an explicit dependency (on Linux it's installed automatically with GDAL).
from rheas.
I tried installing GEOS manually, but that kept popping up some errors (did not make note of the error). I found some forums where people had posted similar issues installing GEOS with OS X 10.9.5, so I updated my machine to El Capitan (10.11.5). After I manually installed GEOS, I was able to run through the setup.
I noticed there was an update to the Git repository, so I tried installing the new version. I go through the install, but when I run ./bin/test, I get the following error (and I get this error on my Mac as well as my linux box)...
----ERROR----
ERROR: Failure: ImportError (No module named psycopg2)
Traceback (most recent call last):
File "/Users/karthiksrinivasan/RHEAS/eggs/nose-1.3.7-py2.7.egg/nose/loader.py", line 418, in loadTestsFromName
addr.filename, addr.module)
File "/Users/karthiksrinivasan/RHEAS/eggs/nose-1.3.7-py2.7.egg/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/Users/karthiksrinivasan/RHEAS/eggs/nose-1.3.7-py2.7.egg/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/Users/karthiksrinivasan/RHEAS/src/datasets/init.py", line 13, in
import dbio
File "/Users/karthiksrinivasan/RHEAS/src/dbio.py", line 15, in
import psycopg2 as pg
ImportError: No module named psycopg2
ERROR: Failure: ImportError (No module named psycopg2)
Traceback (most recent call last):
File "/Users/karthiksrinivasan/RHEAS/eggs/nose-1.3.7-py2.7.egg/nose/loader.py", line 418, in loadTestsFromName
addr.filename, addr.module)
File "/Users/karthiksrinivasan/RHEAS/eggs/nose-1.3.7-py2.7.egg/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/Users/karthiksrinivasan/RHEAS/eggs/nose-1.3.7-py2.7.egg/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/Users/karthiksrinivasan/RHEAS/src/vic/init.py", line 11, in
from vic import VIC
File "/Users/karthiksrinivasan/RHEAS/src/vic/vic.py", line 23, in
import drought
File "/Users/karthiksrinivasan/RHEAS/src/drought.py", line 15, in
import dbio
File "/Users/karthiksrinivasan/RHEAS/src/dbio.py", line 15, in
import psycopg2 as pg
ImportError: No module named psycopg2
ERROR: Failure: ImportError (No module named psycopg2)
Traceback (most recent call last):
File "/Users/karthiksrinivasan/RHEAS/eggs/nose-1.3.7-py2.7.egg/nose/loader.py", line 418, in loadTestsFromName
addr.filename, addr.module)
File "/Users/karthiksrinivasan/RHEAS/eggs/nose-1.3.7-py2.7.egg/nose/importer.py", line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/Users/karthiksrinivasan/RHEAS/eggs/nose-1.3.7-py2.7.egg/nose/importer.py", line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File "/Users/karthiksrinivasan/RHEAS/src/tests/init.py", line 10, in
from testdatasets import testDatasets
File "/Users/karthiksrinivasan/RHEAS/src/tests/testdatasets.py", line 11, in
import dbio
File "/Users/karthiksrinivasan/RHEAS/src/dbio.py", line 15, in
import psycopg2 as pg
ImportError: No module named psycopg2
Ran 3 tests in 1.090s
FAILED (errors=3)
---ERROR END------
During the buildout process, it does install psycopg2.
from rheas.
Can you apply 57997f8 and see if that fixes it?
from rheas.
I dont get the psycopg2 errors anymore. However, the tests run through, but there are 24 errors - it runs 26 tests.
When a test tries to edit a table, it pops up an error similar to:
"ERROR: role "kandread" does not exist
STATEMENT: ALTER TABLE soils OWNER TO kandread;
psql:/Users/karthiksrinivasan/RHEAS/data/tests/vic_soils.sql:37: ERROR: role "kandread" does not exist"
It looks like the code is looking for a 'wb_1.125_35.125' output file. But the scripts write out a 'data_1.125_35.125' file...
When I try to run a nowcast (after updating the database), I get the following error:
ERROR: relation "raster_resampled" does not exist at character 15
This error pops up even though it appears as if updating the database creates the resampled entries.
from rheas.
The database role error doesn't have an effect on writing to the database. The part on the "wb" files is the output from the VIC model run. The "data" files are the VIC forcing files that are written. Can you redirect the output of the tests to a log file and attach here?
from rheas.
Here are 2 files - testlog.txt was what was saved when I tried to redirect the terminal output to a text file. Command_output.txt was what I physically copied from the terminal window....
from rheas.
I verified the unit tests on a fresh install on my Ubuntu box..The unit tests seem to work on Ubuntu, however the DSSAT module gives an error "forrtl: severe (64): input conversion error, unit -5, file Internal Formatted Read". This is the same error that I see when I try to run a nowcast (one of the other open tickets).
Unit tests still dont work on Mac.
from rheas.
Resolved.
from rheas.
Related Issues (20)
- Handle missing data in forcings HOT 5
- Error: Referenced option does not exist: environment EARTHDATA_USER when running HOT 3
- How to add dssat.soil table HOT 2
- conda package for installing RHEAS HOT 2
- ESP forecast: Not enough years available to resample HOT 1
- NMME forecast: Ingest NDVI data HOT 4
- GPM: Input array issue when write to db HOT 1
- SPI Calculation Issue
- DSSAT maize EnKf error
- DSSAT Planting date issue HOT 1
- RHEAS installing on macOS Sierra 10.12.6 - Error: Referenced option does not exist: environment EARTHDATA_USER HOT 2
- Mac OSX buildout issue w HOT 2
- Erros after running ./bin/test .
- Issue with buildout process
- 5km input data files
- This is just example issue
- Error in running python bootstrap.py HOT 5
- Type error in NMME forecast run HOT 2
- What the wheat MODEL is? HOT 1
- Add VHI as drought product HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rheas.