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

Thread problem when runing run_kb.py script in python 3.9 #236

Open
JensenJian opened this issue Nov 16, 2021 · 1 comment · May be fixed by #277
Open

Thread problem when runing run_kb.py script in python 3.9 #236

JensenJian opened this issue Nov 16, 2021 · 1 comment · May be fixed by #277
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@JensenJian
Copy link

What happened:
When I ran the lifelong learning knowledge base run_kb.py.
It shows:
Traceback (most recent call last):
File "D:\sedna-main\lib\sedna\service\run_kb.py", line 36, in
main()
File "D:\sedna-main\lib\sedna\service\run_kb.py", line 32, in main
KBServer(host=host, http_port=int(port), save_dir=kb_dir).start()
File "D:\sedna-main\lib\sedna\service\server\knowledgeBase\server.py", line 92, in start
return self.run(self.app)
File "D:\sedna-main\lib\sedna\service\server\base.py", line 93, in run
return self.wait_stop(current=current_thread)
File "D:\sedna-main\lib\sedna\service\server\base.py", line 99, in wait_stop
if not current.isAlive():
AttributeError: 'Thread' object has no attribute 'isAlive'

It seems because I am using Python 3.9. and the Thread object attribute is changed from isAlive to is_alive

@JensenJian JensenJian added the kind/bug Categorizes issue or PR as related to a bug. label Nov 16, 2021
@JoeyHwong-gk
Copy link
Contributor

Thanks for reporting! Looks like it's an easy fix. Would you like to contribute the pull request yourself?

@JensenJian JensenJian reopened this Feb 15, 2022
@jjia605 jjia605 linked a pull request Feb 17, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants