NOAA-ORR-ERD / WebGnomeClient

Javascript client that uses the WebGnomeAPI to create and run py_gnome models.
3 stars 9 forks source link

Internal server error issue #13

Closed dharanidharan12 closed 6 years ago

dharanidharan12 commented 6 years ago

Configured using this link https://github.com/NOAA-ORR-ERD/WebGnomeClient/blob/master/API_SETUP.md

cd webgnomeapi

I configured both PyGnome and WebGnomeAPI While Running this line: pserve --reload config-example.ini

Getting error like from gnome.movers import PyMover ImportError: cannot import name PyMover

I also tried in file as **from gnome.movers import * It runs and throws the url link, while running it , Showing Internal Server Error**

Why This error occurs, What I did wrong ?..

Please Help. Thanks in Advance!

NaomiWilkins-NOAA commented 6 years ago

What does running the following in a python shell show you?

import gnome
dir(gnome.movers)
dharanidharan12 commented 6 years ago

['CatsMover', 'ComponentMover', 'CurrentCycleMover', 'CyMover', 'GridCurrentMover', 'GridWindMover', 'IceAwareRandomMover', 'IceMover', 'IceWindMover', 'Mover', 'Process', 'ProcessSchema', 'PyCurrentMover', 'PyWindMover', 'RandomMover', 'RandomVerticalMover', 'RiseVelocityMover', 'ShipDriftMover', 'SimpleMover', 'TamocRiseVelocityMover', 'WindMover', 'builtins', 'doc', 'file', 'name', 'package', 'path', 'constant_wind_mover', 'current_movers', 'movers', 'py_current_movers', 'py_wind_movers', 'random_movers', 'ship_drift_mover', 'simple_mover', 'vertical_movers', 'wind_mover_from_file', 'wind_movers']

while running in shell, it shows

NaomiWilkins-NOAA commented 6 years ago

Well that definitely doesn't include a PyMover. What version of pygnome do you have installed?

dharanidharan12 commented 6 years ago

gnome-terminal --version GNOME Terminal 3.6.2

apt-cache show gnome-shell | grep Version Version: 3.10.4-0ubuntu5.2 Version: 3.10.4-0ubuntu5

which version of pygnome is required for PyMover. Please Mention the version.

NaomiWilkins-NOAA commented 6 years ago

@jay-hennen @JamesMakela-NOAA any idea when we added PyMover?

NaomiWilkins-NOAA commented 6 years ago

It look like it's not released yet (should be updated soon). You can get this working in the mean time by adding PyMover to the end of line 5 in py_gnome/gnome/movers/__init__.py.