OmenApps / django-postgresql-dag

Directed Acyclic Graphs with a variety of methods for both Nodes and Edges, and multiple exports (NetworkX, Pandas, etc). This project is the foundation for a commercial product, so expect regular improvements. PR's and other contributions are welcomed.
Apache License 2.0
41 stars 6 forks source link

networkx is missing when installing #5

Closed mheppner closed 3 years ago

mheppner commented 3 years ago

When installing from pip, networkx doesn't get installed. It's imported in transformations.py at the top, but this may want to be moved to an inline import in nx_from_queryset().

The networkx stuff looks like an in-progress feature, but just wanted to let you know.

JackAtOmenApps commented 3 years ago

Yep, it's in-progress work that stalled a couple months ago when things got busy here. Thanks for opening an issue. Should have some time to fix and continue working this.

JackAtOmenApps commented 3 years ago

This should be resolved now. If you want to make use of the experimental tools in tranformations.py, you can install django-postgresql-dag with:

pip install django-postgresql-dag[transforms]

mheppner commented 3 years ago

networkx and pandas still seem to be required when installing the plain pip package (not with transforms specified).

When importing from django_postgresql_dag.models import node_factory, the models.py file imports from .transformations import _ordered_filter. The transformations.py file still has the imports of networkx and pandas declared at the top of the file.

JackAtOmenApps commented 3 years ago

@mheppner - Thank you. This should (for real) be corrected now.