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

bug: ModuleNotFoundError: No module named 'pythainlp.chat' #828

Closed
tonezzz opened this issue Jul 26, 2023 · 7 comments
Closed

bug: ModuleNotFoundError: No module named 'pythainlp.chat' #828

tonezzz opened this issue Jul 26, 2023 · 7 comments

Comments

@tonezzz
Copy link

tonezzz commented Jul 26, 2023

Description

Hi,
I'm just starting to learn to build AI. I stumbled to your project and it looks interesting. So I'm trying to learn to create a chat bot out of your project now. Starting from the test-chat.jpynb. But I cannot run it.
Please let me know what've I missed or did wrong.
Thank you very much.
Cheers,
Tony.

Expected results

A successful import of:
from pythainlp.chat.core import ChatBotModel

Current results


ModuleNotFoundError Traceback (most recent call last)
in <cell line: 1>()
----> 1 from pythainlp.chat.core import ChatBotModel
2 import torch
ModuleNotFoundError: No module named 'pythainlp.chat'

NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.

Steps to reproduce

  1. Open test-chat.jpynb on Colab.
  2. Add "!pip install --upgrade pythainlp[full]" on top & run.
  3. Run the import block.

PyThaiNLP version

4.1.0beta1

Python version

3.10.6

Operating system and version

(from Colab)
Linux version 5.15.109+ (builder@a1d285de7a25) (Chromium OS 15.0_pre458507_p20220602-r18 clang version 15.0.0 (/var/tmp/portage/sys-devel/llvm-15.0_pre458507_p20220602-r18/work/llvm-15.0_pre458507_p20220602/clang a58d0af058038595c93de961b725f86997cf8d4a), LLD 15.0.0) #1 SMP Fri Jun 9 10:57:30 UTC 2023

More info

No response

Possible solution

No response

Files

No response

@github-actions
Copy link

Hello @tonezzz, thank you for your interest in our work!

If this is a bug report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you.

@tonezzz
Copy link
Author

tonezzz commented Jul 27, 2023

Here're two screen shots of the 1st block added by me and the 2nd block from test-chat.jpynb.

s-02
s-01

@wannaphong
Copy link
Member

Hello! PyThaiNLP v4.1.0beta1 still is in beta channel. You can install by !pip install --pre --upgrade pythainlp[full]

@tonezzz
Copy link
Author

tonezzz commented Jul 27, 2023

Hello! PyThaiNLP v4.1.0beta1 still is in beta channel. You can install by !pip install --pre --upgrade pythainlp[full]

Thank you. I'm quite sure I tried that before without success. Anyway, I tried again and it works now.
Have a nice day & Cheers.
image

@tonezzz
Copy link
Author

tonezzz commented Jul 27, 2023

OK, now I'm using GPU instance. And still got this error. Could you help me again please?
image

wannaphong added a commit that referenced this issue Jul 27, 2023
Fixed bug #828
wannaphong added a commit that referenced this issue Jul 27, 2023
@wannaphong
Copy link
Member

I just released PyThaiNLP v.4.1.0-beta2 cc9139c. Can you try again?

OK, now I'm using GPU instance. And still got this error. Could you help me again please? image

@tonezzz
Copy link
Author

tonezzz commented Jul 27, 2023

I just released PyThaiNLP v.4.1.0-beta2 cc9139c. Can you try again?

Nice! It's working now Thank you.
image

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