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

Failed to install on docker on pi4b #33

Closed
lokxii opened this issue Feb 20, 2024 · 5 comments
Closed

Failed to install on docker on pi4b #33

lokxii opened this issue Feb 20, 2024 · 5 comments

Comments

@lokxii
Copy link

lokxii commented Feb 20, 2024

I have the following Dockerfile

FROM python:3.10-bookworm

WORKDIR /app
COPY . .
RUN pip install -r requirements.txt

CMD ["python", "main.py"]

where content of requirements.txt is

atproto == 0.0.42
python-dotenv == 1.0.1
nagisa == 0.2.11

I am getting error

ERROR: Could not find a version that satisfies the requirement DyNet38 (from nagisa) (from versions: none)
ERROR: No matching distribution found for DyNet38

How can I resolve it?

@taishi-i
Copy link
Owner

Hi, @lokxii. Thank you for using nagisa!

How about using python:3.10 instead of python:3.10-bookworm?
I was able to build in my environment with the following dockerfile.

FROM python:3.10

WORKDIR /app
COPY . .
RUN pip install -r requirements.txt

CMD ["python", "main.py"]

If you need to use nagisa with python:3.10-bookworm, please contact us again.
Thank you.

@lokxii
Copy link
Author

lokxii commented Feb 20, 2024

Sorry, I forgot to mention that I am building on a raspberry pi 4b

@taishi-i
Copy link
Owner

taishi-i commented Feb 20, 2024

Sorry. At this time, nagisa does not support the CPU of ARM processors such as Raspberry Pi.

Since I can't provide an immediate solution, why not try using an alternative, Janome, which is implemented in Pure Python? I think this will probably work.

@lokxii
Copy link
Author

lokxii commented Feb 20, 2024

Thank you for your reply! I really like nagisa but it becomes a deal breaker when I can't deploy my app using nagisa on my pi4b. I will try other alternatives.

@lokxii lokxii closed this as completed Feb 20, 2024
@taishi-i
Copy link
Owner

Hi @lokxii. I apologize for any inconvenience caused.Thank you for your patience. Nagisa is now available on Raspberry Pi 4. It is compatible with Python versions 3.9 to 3.12.

Please install nagisa using the following command.

pip install nagisa

Here is the basic usage.

import nagisa

text = 'Pythonで簡単に使えるツールです'
words = nagisa.tagging(text)
print(words)
#=> Python/名詞 で/助詞 簡単/形状詞 に/助動詞 使える/動詞 ツール/名詞 です/助動詞

# Get a list of words
print(words.words)
#=> ['Python', 'で', '簡単', 'に', '使える', 'ツール', 'です']

# Get a list of POS-tags
print(words.postags)
#=> ['名詞', '助詞', '形状詞', '助動詞', '動詞', '名詞', '助動詞']

If you encounter any installation errors, please comment again. Thank you for considering the use of nagisa. I hope this tool will be useful to you.

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