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

unable to install on Mac OS 12.3.1 #69

Open
droundy opened this issue Apr 25, 2022 · 7 comments
Open

unable to install on Mac OS 12.3.1 #69

droundy opened this issue Apr 25, 2022 · 7 comments

Comments

@droundy
Copy link
Sponsor

droundy commented Apr 25, 2022

I am unable to install kaldi-active-grammar on macOS Monterey version 12.3.1.

My Python is 3.8.9, and pip install kaldi-active-grammar fails with an error message "No matching distribution found for kaldi-active-grammar".

When I download the release wheel for macOS, I am told that it is not a supported wheel on this platform.

Any suggestions? Or do you just need to build another wheel? I notice the download is labeled macos_10_9 so maybe it's for too old a macOS?

@droundy
Copy link
Sponsor Author

droundy commented Apr 26, 2022

Looks like the issue may be that I have an m1 Mac with an arm cpu?

@denvaar
Copy link

denvaar commented Aug 6, 2022

I'm also seeing this problem. M1 Mac as well.

@denvaar
Copy link

denvaar commented Aug 8, 2022

@droundy have you found a way around it? I've been trying to build from source, but running into a lot of issues.

@droundy
Copy link
Sponsor Author

droundy commented Aug 8, 2022

No, I have not.

@denvaar
Copy link

denvaar commented Aug 11, 2022

@droundy after a lot of tweaking and trial and error I was finally able to build from source and create a wheel that I can use with Dragonfly. I can try to come up with some instructions if you're interested, though it may be pretty hacky.

@bogdan0083
Copy link

@denvaar Hi there! I would be happy if you could provide some kind of instruction for building this project on Macbook M1.

I've been trying to build the project wheel for a few days to no avail, your instructions would help a lot.

Thank you! ❤️

@bogdan0083
Copy link

bogdan0083 commented Jan 28, 2023

I finally managed to build kaldi-active-grammar on Mac M1. Here's PR: #75. It's not merged yet but you can already try to clone that branch from my fork, remove SOURCE_DIR, BUILD_DIR, DOWNLOAD_DIR and add the following changes to the file CMakeLists.txt:

Снимок экрана 2023-01-28 в 15 18 56

This temporary fix will use my kaldi fork instead of David's. Then use can use

python setup.py bdist_wheel

and the wheel will be installed in the dist folder. Now you can install the built .whl file as a pip package.

In case you're stuck or something is not working you can ask a question here, I'd be happy to help.

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

3 participants