gumo-py / datastore-viewer

MIT License
7 stars 5 forks source link

SyntaxError: invalid syntax #14

Closed krolaw closed 4 years ago

krolaw commented 4 years ago

$ export DATASTORE_VIEWER_HOST=127.0.0.1 $ export DATASTORE_VIEWER_PORT=8082 $ datastore-viewer Traceback (most recent call last): File "/home/krolaw/.local/bin/datastore-viewer", line 4, in from datastore_viewer import DatastoreViewer File "/home/krolaw/.local/lib/python2.7/site-packages/datastore_viewer/init.py", line 15 emulator_host: Optional[str] = None, ^ SyntaxError: invalid syntax

This may be because, during installation: flasgger 0.9.3 has requirement jsonschema<3.0.0, but you'll have jsonschema 3.2.0 which is incompatible.

Running Ubuntu 19.10

akiray03 commented 4 years ago

@krolaw Thank you for your inquiry.

datastore-viewer only supports versions newer than Python 3.7. If necessary, install and try with Python 3.7.

If the problem continues, please contact us again.

krolaw commented 4 years ago

$ python3 --version Python 3.7.5

krolaw commented 4 years ago

@akiray03, ok reinstalled with pip3:

$ export DATASTORE_VIEWER_HOST=127.0.0.1 $ export DATASTORE_VIEWER_PORT=8082 $ datastore-viewer Traceback (most recent call last): File "/home/krolaw/.local/bin/datastore-viewer", line 8, in DatastoreViewer().run( File "/home/krolaw/.local/lib/python3.7/site-packages/datastore_viewer/init.py", line 21, in init raise RuntimeError(f'Environment variable "DATASTORE_EMULATOR_HOST" is required.')

akiray03 commented 4 years ago

@krolaw Sorry for the inconvenience caused by the lack of a README description.

Please set the IP and port number of the Cloud Datastore Emulator to the environment variable DATASTORE_EMULATOR_HOST.

See the following page for details on how to start it: https://cloud.google.com/datastore/docs/tools/datastore-emulator?hl=en

README was updated with #15.

If the problem continues, please contact us again.

krolaw commented 4 years ago

Ok, working, thanks.

akiray03 commented 4 years ago

Thank you for your feedback 😄