Git Product home page Git Product logo

Comments (8)

kandread avatar kandread commented on July 22, 2024

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.

vks01 avatar vks01 commented on July 22, 2024

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.

kandread avatar kandread commented on July 22, 2024

Can you apply 57997f8 and see if that fixes it?

from rheas.

vks01 avatar vks01 commented on July 22, 2024

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.

kandread avatar kandread commented on July 22, 2024

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.

vks01 avatar vks01 commented on July 22, 2024

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....

testlog.txt

command_output.txt

from rheas.

vks01 avatar vks01 commented on July 22, 2024

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.

nndas avatar nndas commented on July 22, 2024

Resolved.

from rheas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.