I just spent some time to debug this, but I failed. The problem seems to be that sage-shell:wait-for-redirection-to-complete in https://github.com/sagemath/sage-shell-mode/blob/80fbb4ee9ed8507d22214ed7a4ffd135c9e8c7c8/sage-shell-mode.el#L889 does not return. There is only one python file involved, https://github.com/sagemath/sage-shell-mode/blob/master/emacs_sage_shell.py, but I do not see what #34547 has to do with it. Something about lazy_import maybe?
I can see that in sage-shell:run-cell-raw-output the command _emacs_sage_shell.run_cell_and_print_msg_id("_emacs_sage_shell.print_sage_root()", ’emacs_sage_shell_msg_idb3d6f70f24e51147305a3aea036ba747start’, ’emacs_sage_shell_msg_idb3d6f70f24e51147305a3aea036ba747end’) was sent to the process (using process-send-string), and after that, (sage-shell:wait-for-redirection-to-complete) never returns. I don't know how to debug the python code, unfortunately. Most importantly, I don't see what changed - what does #34547 have to do with it? Martin On Tuesday, 24 January 2023 at 11:09:23 UTC+1 axio...@yahoo.de wrote: > Indeed, that was a great suggestion: 9.8.beta6 works - and it seems that > #16522 was already in 9.8.beta6. However 9.8.beta6 + #34547 fails. > Not sure where to go from here. Should I open a ticket on trac? > > For me personally, this is a blocker, but I have no idea how many emacs > users there are. > > Martin > > > On Tuesday, 24 January 2023 at 10:21:11 UTC+1 axio...@yahoo.de wrote: > >> Thank you for this suggestion! I will try with 9.8.beta6 + #33842. I >> hope that all dependencies are in the branch. >> >> Martin >> >> On Monday, 23 January 2023 at 21:32:10 UTC+1 John H Palmieri wrote: >> >>> Could it be #34547, #16522, or #33842? I'm just taking guesses based on >>> the newly merged tickets. >>> >>> On Monday, January 23, 2023 at 10:42:37 AM UTC-8 emanuel.c...@gmail.com >>> wrote: >>> >>>> From someone called mantepse in the sage-shell-mode >>>> <https://github.com/sagemath/sage-shell-mode/issues/69#issuecomment-1400278482> >>>> issue >>>> on github : >>>> >>>> ``` >>>> It is really strange: I have a 9.8.beta7 build and a 9.8.beta6 build. >>>> Apparently, if I first use the beta6 one for sage-shell-mode, I can then >>>> use beta7 in the same emacs session. >>>> ``` >>>> >>>> I don't get it either... >>>> >>>> There are two short Python files in the current `sahe-shell-mode` emacs >>>> package, which are my prime suspects for an incompatibility with Python >>>> 3.11. Now for a strategy for debugging *this*... >>>> >>>> Any idea ? >>>> >>>> Le lundi 23 janvier 2023 à 10:48:48 UTC+1, axio...@yahoo.de a écrit : >>>> >>>>> Emacs stopped working for me again! I don't get it. >>>>> >>>>> This is terrible. >>>>> >>>>> On Sunday, 22 January 2023 at 14:41:04 UTC+1 emanuel.c...@gmail.com >>>>> wrote: >>>>> >>>>>> This patches fix my Fricas issue indeed. But losing the Emacs >>>>>> interface is a big hit for me, so I revert to 9.6.beta6 for now. >>>>>> >>>>>> Thank you nevertheless ! >>>>>> >>>>>> Le vendredi 20 janvier 2023 à 22:58:53 UTC+1, John H Palmieri a >>>>>> écrit : >>>>>> >>>>>>> In the hopes that this will fix it, I opened >>>>>>> https://trac.sagemath.org/ticket/34927. >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Friday, January 20, 2023 at 1:46:02 PM UTC-8 John H Palmieri >>>>>>> wrote: >>>>>>> >>>>>>>> Does this change fix the fricas.py failure? >>>>>>>> >>>>>>>> diff --git a/src/sage/interfaces/fricas.py >>>>>>>> b/src/sage/interfaces/fricas.py >>>>>>>> index dc2ce71f26..ceba6f90dc 100644 >>>>>>>> --- a/src/sage/interfaces/fricas.py >>>>>>>> +++ b/src/sage/interfaces/fricas.py >>>>>>>> @@ -891,7 +891,7 @@ http://fricas.sourceforge.net. >>>>>>>> """ >>>>>>>> EXAMPLES:: >>>>>>>> >>>>>>>> - sage: fricas.__reduce__() >>>>>>>> # optional - fricas >>>>>>>> + sage: FriCAS().__reduce__() >>>>>>>> # optional - fricas >>>>>>>> (<function reduce_load_fricas at 0x...>, ()) >>>>>>>> sage: f, args = _ >>>>>>>> # optional - fricas >>>>>>>> sage: f(*args) >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On Friday, January 20, 2023 at 12:34:21 PM UTC-8 >>>>>>>> emanuel.c...@gmail.com wrote: >>>>>>>> >>>>>>>>> Apart from the Emacs issye alteady reported >>>>>>>>> <https://groups.google.com/g/sage-release/c/QRjzctTlVeU/m/MKACzqcVAQAJ>, >>>>>>>>> >>>>>>>>> I get the three permanent failures I reported for the previous betas, >>>>>>>>> as >>>>>>>>> well as a new one, which gives three errors : >>>>>>>>> >>>>>>>>> charpent@zen-book-flip:/usr/local/sage-9$ sage -t --long >>>>>>>>> --warn-long 259.6 >>>>>>>>> --random-seed=41414648133166628206443904124754495105 >>>>>>>>> src/sage/interfaces/fricas.py # 3 doctests failed >>>>>>>>> Running doctests with ID 2023-01-20-20-50-00-ee865d6d. >>>>>>>>> Git branch: develop >>>>>>>>> Git ref: 9.8.beta7 >>>>>>>>> Running with SAGE_LOCAL='/usr/local/sage-9/local' and >>>>>>>>> SAGE_VENV='/usr/local/sage-9/local/var/lib/sage/venv-python3.10' >>>>>>>>> Using >>>>>>>>> --optional=debian,dot2tex,fricas,gap_packages,libsemigroups,mathics,mathics_scanner,msolve,palettable,pint,pip,saclib,sage,sage_spkg >>>>>>>>> Features to be detected: >>>>>>>>> 4ti2,benzene,bliss,buckygen,conway_polynomials,csdp,cvxopt,database_cremona_ellcurve,database_cremona_mini_ellcurve,database_cubic_hecke,database_jones_numfield,database_knotinfo,dvipng,gfan,graphviz,imagemagick,jupymake,kenzo,latte_int,lrslib,mcqd,meataxe,msolve,nauty,palp,pandoc,pdf2svg,pdftocairo,phitigra,plantri,polytopes_db,polytopes_db_4d,pynormaliz,python_igraph,rubiks,sage.combinat,sage.geometry.polyhedron,sage.graphs,sage.groups,sage.misc.cython,sage.plot,sage.rings.number_field,sage.rings.padics,sage.rings.real_double,sage.symbolic,sage_numerical_backends_coin,sagemath_doc_html,sphinx,tdlib >>>>>>>>> Doctesting 1 file. >>>>>>>>> sage -t --long --warn-long 259.6 >>>>>>>>> --random-seed=41414648133166628206443904124754495105 >>>>>>>>> src/sage/interfaces/fricas.py >>>>>>>>> >>>>>>>>> ********************************************************************** >>>>>>>>> File "src/sage/interfaces/fricas.py", line 894, in >>>>>>>>> sage.interfaces.fricas.FriCAS.__reduce__ >>>>>>>>> Failed example: >>>>>>>>> fricas.__reduce__() >>>>>>>>> # optional - fricas >>>>>>>>> Exception raised: >>>>>>>>> >>>>>>>>> Traceback (most recent call last): >>>>>>>>> File "/usr/local/sage-9/src/sage/doctest/forker.py", line >>>>>>>>> 695, in _run >>>>>>>>> self.compile_and_execute(example, compiler, test.globs) >>>>>>>>> File "/usr/local/sage-9/src/sage/doctest/forker.py", line >>>>>>>>> 1093, in compile_and_execute >>>>>>>>> exec(compiled, globs) >>>>>>>>> File "<doctest >>>>>>>>> sage.interfaces.fricas.FriCAS.__reduce__[0]>", line 1, in <module> >>>>>>>>> fricas.__reduce__() >>>>>>>>> # optional - fricas >>>>>>>>> File "/usr/lib/python3.10/copyreg.py", line 76, in _reduce_ex >>>>>>>>> raise TypeError(f"cannot pickle {cls.__name__!r} object") >>>>>>>>> TypeError: cannot pickle 'LazyImport' object >>>>>>>>> >>>>>>>>> ********************************************************************** >>>>>>>>> File "src/sage/interfaces/fricas.py", line 896, in >>>>>>>>> sage.interfaces.fricas.FriCAS.__reduce__ >>>>>>>>> Failed example: >>>>>>>>> f, args = _ >>>>>>>>> # optional - fricas >>>>>>>>> Exception raised: >>>>>>>>> >>>>>>>>> Traceback (most recent call last): >>>>>>>>> File "/usr/local/sage-9/src/sage/doctest/forker.py", line >>>>>>>>> 695, in _run >>>>>>>>> self.compile_and_execute(example, compiler, test.globs) >>>>>>>>> File "/usr/local/sage-9/src/sage/doctest/forker.py", line >>>>>>>>> 1093, in compile_and_execute >>>>>>>>> exec(compiled, globs) >>>>>>>>> File "<doctest >>>>>>>>> sage.interfaces.fricas.FriCAS.__reduce__[1]>", line 1, in <module> >>>>>>>>> f, args = _ >>>>>>>>> # optional - fricas >>>>>>>>> TypeError: cannot unpack non-iterable int object >>>>>>>>> >>>>>>>>> ********************************************************************** >>>>>>>>> File "src/sage/interfaces/fricas.py", line 897, in >>>>>>>>> sage.interfaces.fricas.FriCAS.__reduce__ >>>>>>>>> Failed example: >>>>>>>>> f(*args) >>>>>>>>> # optional - fricas >>>>>>>>> Exception raised: >>>>>>>>> >>>>>>>>> Traceback (most recent call last): >>>>>>>>> File "/usr/local/sage-9/src/sage/doctest/forker.py", line >>>>>>>>> 695, in _run >>>>>>>>> self.compile_and_execute(example, compiler, test.globs) >>>>>>>>> File "/usr/local/sage-9/src/sage/doctest/forker.py", line >>>>>>>>> 1093, in compile_and_execute >>>>>>>>> exec(compiled, globs) >>>>>>>>> File "<doctest >>>>>>>>> sage.interfaces.fricas.FriCAS.__reduce__[2]>", line 1, in <module> >>>>>>>>> f(*args) >>>>>>>>> # optional - fricas >>>>>>>>> NameError: name 'f' is not defined >>>>>>>>> >>>>>>>>> ********************************************************************** >>>>>>>>> 1 item had failures: >>>>>>>>> 3 of 4 in sage.interfaces.fricas.FriCAS.__reduce__ >>>>>>>>> [277 tests, 3 failures, 42.89 s] >>>>>>>>> >>>>>>>>> ---------------------------------------------------------------------- >>>>>>>>> sage -t --long --warn-long 259.6 >>>>>>>>> --random-seed=41414648133166628206443904124754495105 >>>>>>>>> src/sage/interfaces/fricas.py # 3 doctests failed >>>>>>>>> >>>>>>>>> ---------------------------------------------------------------------- >>>>>>>>> Total time for all tests: 48.0 seconds >>>>>>>>> cpu time: 4.2 seconds >>>>>>>>> cumulative wall time: 42.9 seconds >>>>>>>>> Features detected for doctesting: >>>>>>>>> >>>>>>>>> HTH, >>>>>>>>> Le jeudi 19 janvier 2023 à 00:48:25 UTC+1, Volker Braun a écrit : >>>>>>>>> >>>>>>>>>> As always, you can get the latest beta version from the "develop" >>>>>>>>>> git branch. Alternatively, the self-contained source tarball is at >>>>>>>>>> http://www.sagemath.org/download-latest.html >>>>>>>>>> >>>>>>>>>> We should probably gear up for a 9.8 release soon, so get your >>>>>>>>>> tickets ready ;) >>>>>>>>>> >>>>>>>>>> 047281e0287 (trac/develop, tag: 9.8.beta7) Updated SageMath >>>>>>>>>> version to 9.8.beta7 >>>>>>>>>> 272c557d1f3 Trac #31668: Run TestSuite on polynomial rings >>>>>>>>>> 6f8fb9ba3ef Trac #22067: generating function of integral points >>>>>>>>>> of polyhedra >>>>>>>>>> 5544a33b815 Trac #21003: Add package pyscipopt, add MIP backend >>>>>>>>>> b0422b2536b Trac #34838: setuptools_scm, contourpy, >>>>>>>>>> sphinxcontrib_websupport, typing_extensions: Add missing dependencies >>>>>>>>>> 30d58156a46 Trac #34717: Check the presence of lrsnash for >>>>>>>>>> obtain_nash() >>>>>>>>>> c7299453922 Trac #34891: fixing some E502 in tensor, dynamics, >>>>>>>>>> modules, plot, numerical >>>>>>>>>> bc832cb3578 Trac #34889: Installation guide: On WSL, clear /mnt/c >>>>>>>>>> stuff from PATH >>>>>>>>>> 3570a9a63bd Trac #34881: allow to remove no constraints >>>>>>>>>> 0ceb1032430 Trac #34878: >>>>>>>>>> MixedIntegerLinearProgram.add_constraint: Option to return row >>>>>>>>>> indices, fix >>>>>>>>>> handling of empty constraints >>>>>>>>>> df74efb66d2 Trac #34859: sagelib: Remove unnecessary import of >>>>>>>>>> typing_extensions >>>>>>>>>> b6a76d7a848 Trac #34857: bump giac's GIAC_MIN_VERSION to 1.9 >>>>>>>>>> 6a8155e6e5d Trac #34854: molien_series() should not use GAP's >>>>>>>>>> VirtualCharacter >>>>>>>>>> dddf3ca0b08 Trac #34853: sage-env: Fix misconfiguration of pip >>>>>>>>>> 6f631021ac4 Trac #34847: modernize some for loops in cython files >>>>>>>>>> 9ffabc7f3e1 Trac #34844: removal of some unused imports about >>>>>>>>>> string conversion >>>>>>>>>> 4b50bc2af27 Trac #34843: pep8 cleanup in >>>>>>>>>> ore_polynomial_element.pyx >>>>>>>>>> bdd14cec19b Trac #34837: fix E502 in some pyx files >>>>>>>>>> 172ad73ae38 Trac #34836: fix E271 and E272 in rings/ and schemes/ >>>>>>>>>> 3d861266040 Trac #34749: Packages dsdp, scip_sdp >>>>>>>>>> 64d232b5bfd Trac #31329: Update scipoptsuite to 8.0.2 (now open >>>>>>>>>> source!), rename to scip >>>>>>>>>> 2dcafb3ac57 Trac #34839: Support tox 4 >>>>>>>>>> ad68f15d97f Trac #34648: Developer's guide: warn the transition >>>>>>>>>> to GitHub and add links to the transition guide >>>>>>>>>> acebbc1a9e8 Trac #34824: do not include parent in hash of parking >>>>>>>>>> functions >>>>>>>>>> 9a7b6310dde Trac #34818: Error when defining differentials over >>>>>>>>>> GCA's with relations. >>>>>>>>>> bb63c582122 Trac #34807: Add Construction of Hadamard matrices up >>>>>>>>>> to order 664 >>>>>>>>>> 8a0b16d93be Trac #34804: Deprecate sage.interfaces is_...Element >>>>>>>>>> functions >>>>>>>>>> 80f8f950e95 Trac #34793: clean 3 files inside modular >>>>>>>>>> b0cc282500e Trac #34547: Interfaces: use more lazy imports, >>>>>>>>>> restore top-level functions maxima_console etc. >>>>>>>>>> 5905da7ebfc Trac #33915: inseparable elliptic-curve isogenies >>>>>>>>>> 98b22ebdcf7 Trac #32826: scalar-multiplication endomorphisms of >>>>>>>>>> elliptic curves >>>>>>>>>> 4f11a750df9 Trac #8744: Improve add_edge in BipartiteGraph to >>>>>>>>>> make it independent from the current coloring >>>>>>>>>> 08aa2f8edaa Trac #33842: Upgrade python to 3.11 >>>>>>>>>> 75bedf95960 Trac #34783: various details in combinat/ >>>>>>>>>> 33fa8715bd5 Trac #34742: Optional package soplex (dependency of >>>>>>>>>> scip) >>>>>>>>>> f84915f69d8 Trac #34726: Optional package papilo (dependency of >>>>>>>>>> scip) >>>>>>>>>> e5cf1c0d9f2 Trac #34694: Bug in ExteriorAlgebra interior product >>>>>>>>>> ebb9b611d02 Trac #34416: Manage pexpect logs created during >>>>>>>>>> doctesting >>>>>>>>>> 962177a2da1 Trac #33907: interfaces/expect.py random test failure >>>>>>>>>> 66409243991 Trac #16522: lazy_import doesn't resolve properly >>>>>>>>>> when indirectly imported >>>>>>>>>> 2114066f877 (tag: 9.8.beta6) Updated SageMath version to 9.8.beta6 >>>>>>>>>> >>>>>>>>>> -- You received this message because you are subscribed to the Google Groups "sage-release" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-release+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-release/e489239f-548a-4266-8728-7d3598e40916n%40googlegroups.com.