NOAA-ORR-ERD / PyGnome

The General NOAA Operational Modeling Environment
https://gnome.orr.noaa.gov/doc/pygnome/index.html
Other
51 stars 43 forks source link

gnome utilities error #20

Open dharanidharan12 opened 7 years ago

dharanidharan12 commented 7 years ago

Sorry for Troubling you Again. Now I have working with Ubuntu 14.04 64-bit version. All Packages were installed . While trying for py.test it throws error like

from gnome.utilities import rand ImportError: No module named gnome.utilities

While searched for the solution , I got this command as a solution. sudo apt-get install unity-tweak-tool gnome-tweak-tool

But After Executing the command also , I am getting the same error. ImportError: No module named gnome.utilities

Thanks in Advance!!!

ChrisBarker-NOAA commented 7 years ago

ImportError: No module named gnome.utilities

This looks like you do not have py_gnome itself installed.

In the py_gnome dir, yuo need to run python setup.py develop or python setup.py install

"develop" will isntall links to the source code, so that you can update it in place.

"install" will build and copy the py_gnome code inot your python installation. if you are not updateing the code, either will work fine.

sudo apt-get install unity-tweak-tool gnome-tweak-tool

that is almost certainly part of the "GNOME desktop environment", not the "General NOAA Operational Environment"

you should be able to do "import gnome" at a Python prompt if GNOME is properly installed.

dharanidharan12 commented 7 years ago

thanks , I have installed the requirements.

while running the py.test command, it gets execute and throws some Error as below:

E assert 0.0 > 0.0

test_weatherers/test_manual_beaching.py:102: AssertionError ======== 6 failed, 1363 passed, 59 skipped, 1 xpassed in 188.21 seconds =======

How to handle this kind of error. What I did wrong now. Thanks in Advance!!!

ChrisBarker-NOAA commented 7 years ago

Actually this is pretty darn good! 1363 tests passed, and only 6 failed. I think you're good to go.

That last test failure is our fault -- it's been fixed, and I'll push a new version soon. Sorry we never should have pushed code with ANY test failures to gitHub.

ChrisBarker-NOAA commented 7 years ago

NOTE: we'll be pushing a version with this addressed soon.

dharanidharan12 commented 7 years ago

Sorry for Troubling you Again. I Am Waiting for your Push only.

Thanks in Advance!!!