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

Dynet38 is not compatible with python3.11 on macos m2 #35

Closed
BarnabasSzabolcs opened this issue May 31, 2024 · 4 comments
Closed

Dynet38 is not compatible with python3.11 on macos m2 #35

BarnabasSzabolcs opened this issue May 31, 2024 · 4 comments

Comments

@BarnabasSzabolcs
Copy link

BarnabasSzabolcs commented May 31, 2024

Hi Taishi-i,

I know you have been battling with dynet not having the proper wheel for some python versions...
unfortunately, I cannot install nagisa on MacOS Sonoma 14.3.1 (23D60), with python3.11.

I got the following error using pip-sync:

ERROR: Ignored the following versions that require a different python version: 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11
ERROR: Could not find a version that satisfies the requirement DyNet38 (from nagisa) (from versions: none)

@taishi-i
Copy link
Owner

taishi-i commented Jun 1, 2024

Hi @BarnabasSzabolcs. Thank you for sending the error report and for trying to use nagisa. I apologize for any inconvenience caused. As discussed in this issue, nagisa cannot be used on Mac computers with the M1 or M2 chip. I am working on improvements to resolve this issue, but as I do not yet have a timeline for providing a Mac wheel, please refer to this as a workaround. I'm sorry.

@taishi-i
Copy link
Owner

Hi @BarnabasSzabolcs. Thank you for your patience. Nagisa is now available on MacOS M1/2. 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. I apologize for any inconvenience caused. Thank you for considering the use of nagisa.I hope this tool will be useful to you.

@BarnabasSzabolcs
Copy link
Author

Thank you, @taishi-i !

@taishi-i
Copy link
Owner

This issue has been resolved, so I will close it. If you are unable to install, please reopen the issue and add a comment. Thank 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