You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following the tutorial I got an error that numpy isn't installed...
>>> from operator import add
>>> from graphtik import operation
>>> add_op = operation(add, needs=['a', 'b'], provides=['a_plus_b'])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/cmclaughlin-local/.pyenv/versions/raven-3.11.2/lib/python3.11/site-packages/graphtik/fnop.py", line 1128, in operation
op = FnOp(**kw)
^^^^^^^^^^
File "/Users/cmclaughlin-local/.pyenv/versions/raven-3.11.2/lib/python3.11/site-packages/graphtik/fnop.py", line 357, in __init__
from .jsonpointer import jsonp_path
File "/Users/cmclaughlin-local/.pyenv/versions/raven-3.11.2/lib/python3.11/site-packages/graphtik/jsonpointer.py", line 36, in <module>
import numpy as np
ModuleNotFoundError: No module named 'numpy'
After installing numpy, I got an error that pandas wasn't installed...
>>> from operator import add
>>> from graphtik import operation
>>> add_op = operation(add, needs=['a', 'b'], provides=['a_plus_b'])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/cmclaughlin-local/.pyenv/versions/raven-3.11.2/lib/python3.11/site-packages/graphtik/fnop.py", line 1128, in operation
op = FnOp(**kw)
^^^^^^^^^^
File "/Users/cmclaughlin-local/.pyenv/versions/raven-3.11.2/lib/python3.11/site-packages/graphtik/fnop.py", line 357, in __init__
from .jsonpointer import jsonp_path
File "/Users/cmclaughlin-local/.pyenv/versions/raven-3.11.2/lib/python3.11/site-packages/graphtik/jsonpointer.py", line 37, in <module>
import pandas as pd
ModuleNotFoundError: No module named 'pandas'
After installing both numpy and pandas, the example works.
I see both in the requirements.txt in the root of the repo, but it doesn't seem that there are any extras_require options in setup.py that install both numpy and pandas. Maybe I'm just not yet familiar enough with the project, but if these are required for getting started shouldn't they get automatically installed?
I'm OK installing numpy and pandas manually, but I figured someone else might hit this problem with less experience and get confused.
The text was updated successfully, but these errors were encountered:
Hi,
I'm just getting started trying out this library. Thank you, it looks great...
I'm following these docs:
https://graphtik.readthedocs.io/en/latest/operations.html
So I started by installing from pypi...
Following the tutorial I got an error that numpy isn't installed...
After installing numpy, I got an error that pandas wasn't installed...
After installing both numpy and pandas, the example works.
I see both in the
requirements.txt
in the root of the repo, but it doesn't seem that there are anyextras_require
options insetup.py
that install both numpy and pandas. Maybe I'm just not yet familiar enough with the project, but if these are required for getting started shouldn't they get automatically installed?I'm OK installing numpy and pandas manually, but I figured someone else might hit this problem with less experience and get confused.
The text was updated successfully, but these errors were encountered: