planetfederal / geogig-py

A Python library to use GeoGit
BSD 3-Clause "New" or "Revised" License
24 stars 14 forks source link

Method nextOutputPage([]) does not exist when testing. #29

Closed garnertb closed 10 years ago

garnertb commented 10 years ago

I get a Method nextOutputPage([]) does not exist exception when attempting to run the test suite or any command using the py4j connector. I'm running GeoGit 0.8-SNAPSHOT (@ 60653c00034d873a8da905ff405cb52161465fc7). Below is the stacktrace.

(geogit-py)server:test tyler$ python featuretest.py 
Traceback (most recent call last):
  File "featuretest.py", line 12, in <module>
    class GeogitFeatureTest(unittest.TestCase):
  File "featuretest.py", line 14, in GeogitFeatureTest
    repo = testRepo()
  File "/Users/tyler/projects/geogit-py/src/test/testrepo.py", line 41, in testRepo
    createRepo()
  File "/Users/tyler/projects/geogit-py/src/test/testrepo.py", line 13, in createRepo
    repo = Repository(getTempRepoPath(), init = True)
  File "/Users/tyler/projects/geogit-py/src/geogitpy/repo.py", line 63, in __init__
    self.init(initParams)        
  File "/Users/tyler/projects/geogit-py/src/geogitpy/repo.py", line 624, in init
    self.connector.init(initParams)
  File "/Users/tyler/projects/geogit-py/src/geogitpy/cliconnector.py", line 674, in init
    self.run(commands)
  File "/Users/tyler/projects/geogit-py/src/geogitpy/py4jconnector.py", line 143, in run
    return _runGateway(commands, self.repo.url)
  File "/Users/tyler/projects/geogit-py/src/geogitpy/py4jconnector.py", line 57, in _runGateway
    page = _javaGateway().entry_point.nextOutputPage()
  File "/Users/tyler/env/geogit-py/lib/python2.7/site-packages/py4j/java_gateway.py", line 537, in __call__
    self.target_id, self.name)
  File "/Users/tyler/env/geogit-py/lib/python2.7/site-packages/py4j/protocol.py", line 304, in get_return_value
    format(target_id, '.', name, value))
py4j.protocol.Py4JError: An error occurred while calling t.nextOutputPage. Trace:
py4j.Py4JException: Method nextOutputPage([]) does not exist
    at py4j.reflection.ReflectionEngine.getMethod(ReflectionEngine.java:333)
    at py4j.reflection.ReflectionEngine.getMethod(ReflectionEngine.java:342)
    at py4j.Gateway.invoke(Gateway.java:251)
    at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132)
    at py4j.commands.CallCommand.execute(CallCommand.java:79)
    at py4j.GatewayConnection.run(GatewayConnection.java:207)
    at java.lang.Thread.run(Thread.java:695)
(geogit-py)server:geogit-py tyler$ pip freeze
Shapely==1.3.2
geogit-py==0.8-SNAPSHOT
geojson==1.0.7
gnureadline==6.3.3
ipdb==0.8
ipython==2.0.0
py4j==0.8.1
requests==2.3.0
wsgiref==0.1.2

Any ideas?

volaya commented 10 years ago

you need a more recent version of geogit. I have tagged a geogit version as 0.10 (and that's the one currently in pypi), which should work fine with geogit 0.10. We will try to keep version numbers in parallel with geogit, so it's easier to identify the version needed.