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

Fatal Python error: PyThreadState_Get: no current thread #39

Open
Le0nT1 opened this issue Oct 5, 2023 · 4 comments
Open

Fatal Python error: PyThreadState_Get: no current thread #39

Le0nT1 opened this issue Oct 5, 2023 · 4 comments

Comments

@Le0nT1
Copy link

Le0nT1 commented Oct 5, 2023

Describe the bug
Got an error when trying to run pickaxe_run.py or pickaxe_run_template.py. Tried both python and python3 and got the same erorr.
The error message is:
Fatal Python error: PyThreadState_Get: no current thread
zsh: abort python3 pickaxe_run.py

To Reproduce
Steps to reproduce the behavior:
Follow the instructions. Install minedatabase and then run pickaxe.py

Desktop (please complete the following information):

  • OS: macOS Monterey
  • Version: 12.6.9
  • Python version: 3.6.13
@KShebek
Copy link
Contributor

KShebek commented Oct 5, 2023

It seems like you are running a lower version of python than we support. Could you please update your python version to 3.9 and try again?

@Le0nT1
Copy link
Author

Le0nT1 commented Oct 5, 2023

It seems like you are running a lower version of python than we support. Could you please update your python version to 3.9 and try again?

Thanks.
When I ran python3 pickaxe_run_template.py, it returned an error
'/usr/local/lib/python3.9/site-packages/minedatabase/data/metacyc_rules/metacyc_intermediate_rules.tsv'
I then downloaded this repository and copied and pasted the /minedatabase/data/ in the repository to /usr/local/lib/python3.9/site-packages/minedatabase/data/ and the error is resolved and the python program ran successfully.
However, when I ran pickaxe_run.py from the instruction document webapge, it returned from minedatabase.filters import (
ImportError: cannot import name 'TanimotoFilter' from 'minedatabase.filters' (/usr/local/lib/python3.9/site-packages/minedatabase/filters/init.py) and I didn't find the tanimotoFilter file in the filters folder in the repository so I am not sure how to fix it.
I will play with the pickaxe_template.py first and see how to make predictions properly.
btw: is there a public repository for the MINE2.0 program like MINE1.0 so that the users can run the program and make predictions locally?

Thanks

@KShebek
Copy link
Contributor

KShebek commented Oct 11, 2023

Sorry for the delay. How are you installing Pickaxe? Did you use pip or are you installing from source?

@Le0nT1
Copy link
Author

Le0nT1 commented Oct 13, 2023

Sorry for the delay. How are you installing Pickaxe? Did you use pip or are you installing from source?

Hi,
I used pip and followed the instructions here: https://mine-database.readthedocs.io/en/latest/install.html

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