pipx install sentencepiece fails to install
- Fix with gcc 15 (include cstdint)
- Release a new version and upload to Pypi, so that CMake 4 works
diff --git a/src/sentencepiece_processor.h b/src/sentencepiece_processor.h
index dd3f092..010d500 100644
--- a/src/sentencepiece_processor.h
+++ b/src/sentencepiece_processor.h
@@ -15,6 +15,7 @@
#ifndef SENTENCEPIECE_PROCESSOR_H_
#define SENTENCEPIECE_PROCESSOR_H_
+#include <cstdint>
#include <cstring>
#include <memory>
#include <string>
Thanks for reporting this here too. This definitely is going to be a pain point going forward as more systems update CMake and GCC versions.
Seems there's been a PR with that fix for a few weeks now (April 22): https://github.com/google/sentencepiece/pull/1109
The author hasn't signed the CLA apparently which might be why no review has taken place 🤷♂
No new releases since Feb 2024 though? Ideally a new release is tagged after that's resolved.
This issue is fixed on the head master. Thank you.
This issue is fixed on the head master. Thank you.
No it's not. You fixed 1. (GCC issue), but 2. (Release and upload to Pypi) is not done. 👎 Until that is done, all packages relying on sentencepiece (Modular, mojo) are broken. Unfortunately I'm not allowed to reopen my own issue. 👎
For modular/mojo/max, the dependency was removed, at least in the last few weeks of nightlies, and the next stable will also have the dependency removed.
For modular/mojo/max, the dependency was removed, at least in the last few weeks of nightlies, and the next stable will also have the dependency removed.
Ok. But that doesn't change the fact that the fixed cstdint is worthless without a release.
Yes, agreed.