[Cython] Cython compiler crash in 0.24
Hi, When cythonizing a .pyx I get an error in Cython 0.24 which was not there in Cython 0.23.3 After printing the stacktrace, this seems to be because of this line https://github.com/cython/cython/commit/6d55fd189f6ee9d4374d00b8c9c320bd04332bab#diff-28c66ef9e2ff564619ef82aa9d72ee7dR2762 where a None object is passed and the following line calls the None object. https://github.com/cython/cython/blob/6d55fd189f6ee9d4374d00b8c9c320bd04332bab/Cython/Compiler/ExprNodes.py#L1780 Let me know if you need more information. Thanks, Isuru Fernando [ 33%] Cythonizing symengine_wrapper.pyx Error compiling Cython file: ... cdef double complex[::1] cmplx_view if real: try: real_view = iterable except (ValueError, TypeError): real_view = cython.view.array(shape=(_size(iterable),), ^ symengine_wrapper.pyx:2464:54: Compiler crash in TransformBuiltinMethods ModuleNode.body = StatListNode(symengine_wrapper.pyx:1:0) StatListNode.stats[163] = StatListNode(symengine_wrapper.pyx:2455:0) StatListNode.stats[0] = DefNode(symengine_wrapper.pyx:2455:0, doc = ' if iterable supports the buffer interface: return iterable,\n if not, return a cython.view.array object (which does) ', modifiers = [...]/0, name = 'with_buffer', num_required_args = 1, py_wrapper_required = True, reqd_kw_flags_cname = '0') DefNode.body = StatListNode(symengine_wrapper.pyx:2456:4) StatListNode.stats[0] = IfStatNode(symengine_wrapper.pyx:2460:4) IfStatNode.if_clauses[0] = IfClauseNode(symengine_wrapper.pyx:2460:7) IfClauseNode.body = StatListNode(symengine_wrapper.pyx:2461:8) StatListNode.stats[0] = TryExceptStatNode(symengine_wrapper.pyx:2461:8) TryExceptStatNode.except_clauses[0] = ExceptClauseNode(symengine_wrapper.pyx:2463:8) ExceptClauseNode.body = StatListNode(symengine_wrapper.pyx:2464:12, is_terminator = True) StatListNode.stats[0] = SingleAssignmentNode(symengine_wrapper.pyx:2464:41) SingleAssignmentNode.rhs = GeneralCallNode(symengine_wrapper.pyx:2464:41, result_is_used = True, use_managed_ref = True) File 'ExprNodes.py', line 8035, in compile_time_value: DictNode(symengine_wrapper.pyx:2464:47, is_dict_literal = True, is_temp = 1, obj_conversion_errors = [...]/0, reject_duplicates = True, result_is_used = True, use_managed_ref = True) File 'ExprNodes.py', line 7334, in compile_time_value: TupleNode(symengine_wrapper.pyx:2464:49, is_sequence_constructor = 1, result_is_used = True, use_managed_ref = True) File 'ExprNodes.py', line 6730, in compile_time_value_list: TupleNode(symengine_wrapper.pyx:2464:49, is_sequence_constructor = 1, result_is_used = True, use_managed_ref = True) File 'ExprNodes.py', line 4981, in compile_time_value: SimpleCallNode(symengine_wrapper.pyx:2464:54, result_is_used = True, use_managed_ref = True) File 'ExprNodes.py', line 1783, in compile_time_value: NameNode(symengine_wrapper.pyx:2464:54, cf_maybe_null = True, is_name = True, name = '_size', result_is_used = True, use_managed_ref = True) Compiler crash traceback from this point on: File "/home/isuru/miniconda3/envs/test-cython/lib/python3.5/site-packages/Cython/Compiler/ExprNodes.py", line 1781, in compile_time_value return denv.lookup(self.name) AttributeError: 'NoneType' object has no attribute 'lookup' ___ cython-devel mailing list cython-devel@python.org https://mail.python.org/mailman/listinfo/cython-devel
Re: [Cython] Cython infrastructure
FYI, travis does support CPython dev versions. https://docs.travis-ci.com/user/languages/python#Choosing-Python-versions-to-test-against Travis supports caching of build dependencies. (I remember it was not free on OS X, but it might be now). https://docs.travis-ci.com/user/caching/ Sage is a bit tricky. If there are binaries of Sage develop branch built for Ubuntu 12.04 or 14.04 built by Sagebots hosted somewhere, then you can use it on Travis. I use a Sage release binary to test a project and haven't had any issues with it. Isuru Fernando On Thu, Jul 21, 2016 at 2:48 PM, Baptiste Carvello < de...@baptiste-carvello.net> wrote: > Le 20/07/2016 19:23, Robert Bradshaw a écrit : > > > +1 > > > > I'm a big advocate of privacy, and informed consent when choosing to > > give any of it away (e.g. allowing linking of activities to build a > > (pseudonymous or not) reputation). > > (philosophical side note: "consent" is not free of coercion, and thus > rather irrelevant, when Github is taking over 90% of Open Source projects.) > > > [...] Personally, I'm actually quite > > happy to have my activities on github correlated with my identity. > > (Actually, it's a net plus, not a concession.) > > I understand your point, but I'd like to make a different choice. > > > Of course you can always set up any number of unrelated pseudonyms on > > github, delete cookies, use incognito mode, and even do everything via > > tor if you really want. > > No, I can't (unless I want to play cat and mouse with them, which is no > fun). And that is the whole of the problem, as I say in my other message. > > > However, while "Subscribe to Github" is a perfectly reasonable answer, > > and one that would in practice include more people than it would > > exclude (compared to our current system, or many alternatives), it's > > not like we're going to suddenly refuse all discussions of bugs on the > > mailing lists. We're low enough volume to be flexible. A real bug > > tracker is simply more useful for tracking issues than an inbox. > > As long as the mailing list stays, any concrete difficulty can be solved > when it arises through a constructive discussion, so nothing is lost! > > I trust that Cython won't ever do like some other projects, which have > suppressed any kind of non-Github contact channel. That would be the > real pain. > > > Does this alleviate your concerns? > > Not fully, but I can live with it :-) > > Baptiste > > ___ > cython-devel mailing list > cython-devel@python.org > https://mail.python.org/mailman/listinfo/cython-devel > ___ cython-devel mailing list cython-devel@python.org https://mail.python.org/mailman/listinfo/cython-devel
Re: [Cython] [cython-users] Re: Cython 0.25 alpha0
Hi, With Cython 0.25a0, following causes a compiler crash. from libcpp.vector cimport vector cdef vector[double complex] v Regards, Isuru Fernando On Sun, Sep 25, 2016 at 11:35 AM, Matthew Brett wrote: > On Sat, Sep 24, 2016 at 10:12 PM, Robert Bradshaw > wrote: > > This prerelease version is also available at PyPi > > > > https://pypi.python.org/pypi/Cython/0.25a0 > > > > installable via > > > > pip install --pre cython > > It looks like the new BUILD file is breaking wheel builds on OSX and > Windows: > > https://ci.appveyor.com/project/matthew-brett/cython- > wheels/build/1.0.20/job/eu6n2eyc07a33ojl > https://travis-ci.org/MacPython/cython-wheels/jobs/162527865#L235 > > Can it be renamed? > > Cheers, > > Matthew > ___ > cython-devel mailing list > cython-devel@python.org > https://mail.python.org/mailman/listinfo/cython-devel > ___ cython-devel mailing list cython-devel@python.org https://mail.python.org/mailman/listinfo/cython-devel