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

can't install on python 3.10 #49

Open
backenders-game opened this issue Jun 15, 2022 · 2 comments
Open

can't install on python 3.10 #49

backenders-game opened this issue Jun 15, 2022 · 2 comments

Comments

@backenders-game
Copy link

backenders-game commented Jun 15, 2022

I couldn't install package on ubuntu 22 with python3.10. Can't tell cpython version
Error was legacy-install-failure

tried git+https://github.com/pytries/DAWG.git and git+https://github.com/pytries/DAWG.git@actions

@aed3
Copy link

aed3 commented Dec 5, 2022

I got it compiling and working with the following steps:

  1. Clone this repo
  2. Install the latest version of Cython (that's 0.29.32 when writing)
  3. Make this change:
diff --git a/src/dawg.pyx b/src/dawg.pyx
index 6dba921..66b9c58 100644
--- a/src/dawg.pyx
+++ b/src/dawg.pyx
@@ -569,7 +569,7 @@ cdef class BytesDAWG(CompletionDAWG):
                 self._completer.length(),
                 b64_decoder_storage
             )
-            results.push_back(string(b64_decoder_storage, key_len))
+            results.push_back(str(b64_decoder_storage, key_len))
 
         return results
  1. Run the update_cpp.sh file
  2. Run sudo python3 setup.py install

@crodar33
Copy link

crodar33 commented Jan 23, 2023

fix in this PR #50

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