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
fix libgap on python3 #24990
Comments
comment:1
I believe this kind of thing has been fixed already in other places. |
comment:2
This is an error in here, lines 246-8 of sage/libs/gap/util.pyx
|
comment:3
these are few changes that I was able to figure out so far. New commits:
|
Commit: |
Branch: public/libgappy3 |
comment:5
after
I get past It seems to happen at |
comment:6
see also #24269 and its dependencies |
comment:7
Wrapping with bytes() is not the correct way to go ; one should rather use str_to_bytes or the converse bytes_to_str, see other py3 tickets. And cython understands basestring, no need to import it from anywhere. |
comment:8
I already fixed all the issues with |
comment:9
Yeah, it's here, but I need to rebase it: #24460 I propose to close this ticket as a duplicate if that's alright. |
Author: Dima Pasechnik |
Reviewer: Erik Bray |
comment:12
Ah, I should put libgap in the keywords as well. |
cython (cdef) function
initialize()
fails insrc/sage/libs/gap/util.pyx
withTypeError: expected bytes, str found
.This can be traced to the lines
which get a string
memory_pool
from Python and try to assign it toargv[4]
of C typechar*
. This is something that needs extra care on Python3, asmemory_pool
is of typestr
.Depends on #24343
Depends on #24922
CC: @fchapoton @embray @jdemeyer
Component: python3
Author: Dima Pasechnik
Branch/Commit: public/libgappy3 @
cd47b7e
Reviewer: Erik Bray
Issue created by migration from https://trac.sagemath.org/ticket/24990
The text was updated successfully, but these errors were encountered: