Coder Social home page Coder Social logo

Comments (7)

jeremyh avatar jeremyh commented on August 26, 2024

Hi Alex -- thanks for the report.

Support for the next/develop version of the core is in branch next-core.

Our current installations are all in environments that use the stable version of datacube (and the conda install instructions install a stable datacube), so it's the default target at the moment.

Tell me if you run into problems, as it hasn't been tested as thoroughly. I've been rebasing/force-pushing to keep it up to date as a clean set of patches, but changes to core develop could break it again.

from datacube-explorer.

alexgleith avatar alexgleith commented on August 26, 2024

Ah, ok @jeremyh. I'll try with that branch.

from datacube-explorer.

alexgleith avatar alexgleith commented on August 26, 2024

Got another issue this time:

(Ignore all the dashboard_1 bits)

This may be an issue with out product definition?

dashboard_1     | [2018-04-04 04:38:15 +0000] [1] [INFO] Starting gunicorn 19.7.1
dashboard_1     | [2018-04-04 04:38:15 +0000] [1] [INFO] Listening at: http://0.0.0.0:80 (1)
dashboard_1     | [2018-04-04 04:38:15 +0000] [1] [INFO] Using worker: sync
dashboard_1     | [2018-04-04 04:38:15 +0000] [9] [INFO] Booting worker with pid: 9
dashboard_1     | [2018-04-04 04:38:15 +0000] [10] [INFO] Booting worker with pid: 10
dashboard_1     | [2018-04-04 04:38:15 +0000] [12] [INFO] Booting worker with pid: 12
dashboard_1     | [2018-04-04 04:38:15 +0000] [21] [INFO] Booting worker with pid: 21
dashboard_1     | [2018-04-04 04:38:15 +0000] [22] [INFO] Booting worker with pid: 22
dashboard_1     | [2018-04-04 04:38:16 +0000] [9] [ERROR] invalid syntax (_utils.py, line 125)
dashboard_1     | Traceback (most recent call last):
dashboard_1     |   File "/usr/local/lib/python3.5/dist-packages/gunicorn/workers/base.py", line 135, in load_wsgi
dashboard_1     |     self.wsgi = self.app.wsgi()
dashboard_1     |   File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/base.py", line 67, in wsgi
dashboard_1     |     self.callable = self.load()
dashboard_1     |   File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/wsgiapp.py", line 65, in load
dashboard_1     |     return self.load_wsgiapp()
dashboard_1     |   File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
dashboard_1     |     return util.import_app(self.app_uri)
dashboard_1     |   File "/usr/local/lib/python3.5/dist-packages/gunicorn/util.py", line 352, in import_app
dashboard_1     |     __import__(module)
dashboard_1     |   File "/code/cubedash/__init__.py", line 3, in <module>
dashboard_1     |     from . _pages import app
dashboard_1     |   File "/code/cubedash/_pages.py", line 12, in <module>
dashboard_1     |     from cubedash import _utils as utils
dashboard_1     |   File "/code/cubedash/_utils.py", line 125
dashboard_1     |     field: Field = product.metadata_type.dataset_fields.get(field_name)
dashboard_1     |          ^
dashboard_1     | SyntaxError: invalid syntax
dashboard_1     | [2018-04-04 04:38:16 +0000] [9] [ERROR] Exception in worker process
dashboard_1     | Traceback (most recent call last):
dashboard_1     |   File "/usr/local/lib/python3.5/dist-packages/gunicorn/workers/base.py", line 135, in load_wsgi
dashboard_1     |     self.wsgi = self.app.wsgi()
dashboard_1     |   File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/base.py", line 67, in wsgi
dashboard_1     |     self.callable = self.load()
dashboard_1     |   File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/wsgiapp.py", line 65, in load
dashboard_1     |     return self.load_wsgiapp()
dashboard_1     |   File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
dashboard_1     |     return util.import_app(self.app_uri)
dashboard_1     |   File "/usr/local/lib/python3.5/dist-packages/gunicorn/util.py", line 352, in import_app
dashboard_1     |     __import__(module)
dashboard_1     |   File "/code/cubedash/__init__.py", line 3, in <module>
dashboard_1     |     from . _pages import app
dashboard_1     |   File "/code/cubedash/_pages.py", line 12, in <module>
dashboard_1     |     from cubedash import _utils as utils
dashboard_1     |   File "/code/cubedash/_utils.py", line 125
dashboard_1     |     field: Field = product.metadata_type.dataset_fields.get(field_name)
dashboard_1     |          ^
dashboard_1     | SyntaxError: invalid syntax

from datacube-explorer.

jeremyh avatar jeremyh commented on August 26, 2024

That type definition is Python 3.6 syntax. Our Conda installs (and Travis) are all using Python 3.6.

I assume the Python 3.5 you're using is the default on Ubuntu? The difference is quite minor so we could support 3.5 if needed.

from datacube-explorer.

alexgleith avatar alexgleith commented on August 26, 2024

I just found that.

Datacube supports version 3.5+, so I standardised on that. Never seen the type hints in Python before! Not sure what I think yet ;-)

I think supporting 3.5 would be better.

from datacube-explorer.

alexgleith avatar alexgleith commented on August 26, 2024

Ok, got it working. I needed to use Python 3.6 and the next-core branch, and also needed to change the generate command to say python3, but it seems happy.

You might like to update the readme in the root to say nohup python3 -m cubedash.generate --all &>> summary-gen.log &

image

from datacube-explorer.

jeremyh avatar jeremyh commented on August 26, 2024

Closing. Datacube 1.6 is now released, and we've merged support for it into develop.

from datacube-explorer.

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.