Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't run the example command #25

Open
jink1994 opened this issue Oct 14, 2022 · 2 comments
Open

Couldn't run the example command #25

jink1994 opened this issue Oct 14, 2022 · 2 comments

Comments

@jink1994
Copy link

Traceback (most recent call last):
File "/Users/jessejing/DILP-Core/run.py", line 55, in
B, pred_f, constants_f = process_file('%s/facts.dilp' % sys.argv[1])
File "/Users/jessejing/DILP-Core/run.py", line 46, in process_file
terms = [Term(False, term) for term in result['arguments'][idx]]
File "/Users/jessejing/miniforge3/envs/dilp/lib/python3.9/site-packages/pyparsing/results.py", line 193, in getitem
return self._toklist[i]
IndexError: list index out of range

Although I didn't install the python 3.6 as indicated in the dockerfile, the error seems not related to this, can you tried to recreate this error?

@youssefmahmoud89
Copy link

Has anyone been able to fix this error yet?

@youssefmahmoud89
Copy link

I have been able to run the example and the python-notebook tests. I had to do the following:
(Tested it on an M1 mac and an intel Mac as well)

  1. You need anaconda installed.

  2. You need to create a conda virtual environment by:
    conda create -n myenv python=3.6

  3. Activate your environment and install the packages required in requirements.txt through conda install or pip install (For tensorflow conda install tensorflow worked in my case and for ray pip install ray worked)

  4. You need to install pyparsing version 2.4.6:
    pip install pyparsing==2.4.6

  5. Run the example by executing:
    python run.py examples/even

  6. to run the untitled.ipynb test you need to change
    tf.enable_eager_execution() to tf.compat.v1.enable_eager_execution()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants