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

Build failure with Cython > 0.29 #238

Open
waarmond opened this issue Mar 13, 2024 · 1 comment
Open

Build failure with Cython > 0.29 #238

waarmond opened this issue Mar 13, 2024 · 1 comment

Comments

@waarmond
Copy link

waarmond commented Mar 13, 2024

I'm on Python 3.10, gcc 13.2.1 and Linux of course. Cython 0.29 works, more modern version fail:

[1/1] Cythonizing src/pygrib/_pygrib.pyx
/usr/lib/python3.10/site-packages/Cython/Compiler/Main.py:373: FutureWarning: Cython directive 'language_level' not set, using '3' (Py3). File: ./pygrib/src/pygrib/_pygrib.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)
warning: src/pygrib/_pygrib.pyx:353:12: Unreachable code

Error compiling Cython file:
------------------------------------------------------------
...
            beg, end, inc = key.indices(self.messages)
            msg = self.tell()
            grbs = [self.message(n) for n in xrange(beg,end,inc)]
            self.seek(msg) # put iterator back in original position
            return grbs
        elif type(key) == int or type(key) == long:
                                              ^
------------------------------------------------------------

src/pygrib/_pygrib.pyx:413:46: undeclared name not builtin: long
[..]
@jswhit
Copy link
Owner

jswhit commented Mar 20, 2024

I don't see this on macos x or linux.

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