constellation-app / constellation

A graph-focused data visualisation and interactive analysis application.
https://constellation-app.com
Apache License 2.0
385 stars 59 forks source link

constellation_client in the nightly build is not compatible with older versions of Python #2176

Closed OrionsGuardian closed 3 weeks ago

OrionsGuardian commented 1 month ago

Prerequisites

Description

Trying to run Jupyter Notebook with the Linux nightly build has shown this problem.

image

This is from testing on a Centos 7 Linux box where the latest release of Python was version 3.6.8. The new code apparently requires Python 3.9 or later.

I would suggest changing the code to remain compatible with older versions of Python (3.6 onwards)

Behaviour

Expected behaviour: Expect to be able to continue using Centos 7 Linux with Python 3.6.8 to run Jupyter Notebooks connecting to Constellation.

Actual behaviour: Fails to import the constellation_client.py due to new code requiring a later release of Python.

Reproduces how often: 100%

HolandCrick commented 3 weeks ago

@Quasar985 thanks for your help to fix the code. Both issues (#2176 and #2165) are working correctly now on the Linux Box.