[sage-support] help debugging latex() printing with trace()
I would like to debug the latex printing of an expression that ambiguous. To reproduce it: t = var('t') x = function('x')(t) latex( diff(x,t)^2 ) This produces ambiguous output, essentially: partial_t x^2 instead of (partial_t x)^2 I have tried: from sage.misc.trace import trace trace("latex( diff(x,t)^2 )") but I can't understand in which .py file the translation of "diff" occurs. As I understand the source code, there should be a _latex_(self) for every object or method to display latex code, but I can't seem to find it here. Any help is greatly appreciated. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/a530254d-9fec-452f-80cd-153d3769d34fn%40googlegroups.com.
[sage-support] Re: scipy fails to build in sage 10.2.beta4 on fedora 38
I have the python package mesonpy installed... Perhaps I'm not setting my python path appropriately, but PYTHONPATH=/usr/lib/python3.11/site-packages points right to it. On Monday, September 25, 2023 at 4:30:11 PM UTC-5 Eric Majzoub wrote: > Fresh clone of git repository of sage. I issued: > > cd sage > ./bootstrap > ./configure --no-create --no-recursion > make > > I've attached the log file for the scipy fail. > > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/c8b97804-3015-496f-803a-5184659cac7dn%40googlegroups.com.
[sage-support] scipy fails to build in sage 10.2.beta4 on fedora 38
Fresh clone of git repository of sage. I issued: cd sage ./bootstrap ./configure --no-create --no-recursion make I've attached the log file for the scipy fail. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/b65e6f4f-78b9-4e17-982d-a7839748dea4n%40googlegroups.com. Attempting to download package scipy-1.11.2.tar.gz from mirrors https://mirrors.mit.edu/sage/spkg/upstream/scipy/scipy-1.11.2.tar.gz [..] scipy-1.11.2 Setting up build directory for scipy-1.11.2 Finished extraction Applying patches from ../patches... Applying ../patches/numpy-include.patch patching file scipy/spatial/setup.py Hunk #1 succeeded at 39 (offset -1 lines). Applying ../patches/tests_no_internet_dependency.patch patching file scipy/datasets/meson.build Host system: Linux fedora 6.4.15-200.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Sep 7 00:25:01 UTC 2023 x86_64 GNU/Linux C compiler: gcc C compiler version: Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/13/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-redhat-linux Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,m2,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --enable-libstdcxx-backtrace --with-libstdcxx-zoneinfo=/usr/share/zoneinfo --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl=/builddir/build/BUILD/gcc-13.2.1-20230728/obj-x86_64-redhat-linux/isl-install --enable-offload-targets=nvptx-none --without-cuda-driver --enable-offload-defaulted --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux --with-build-config=bootstrap-lto --enable-link-serialization=1 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 13.2.1 20230728 (Red Hat 13.2.1-1) (GCC) Package 'scipy' is currently not installed No legacy uninstaller found for 'scipy'; nothing to do Installing scipy-1.11.2 DEPRECATION: --no-binary currently disables reading from the cache of locally built wheels. In the future --no-binary will not influence the wheel cache. pip 23.1 will enforce this behaviour change. A possible replacement is to use the --no-cache-dir option. You can use the flag --use-feature=no-binary-enable-wheel-cache to test the upcoming behaviour. Discussion can be found at https://github.com/pypa/pip/issues/11453 Processing /home/packages/SOURCE/sage/local/var/lib/sage/venv-python3.11/var/tmp/sage/build/scipy-1.11.2/src Preparing metadata (pyproject.toml): started Running command Preparing metadata (pyproject.toml) Preparing metadata (pyproject.toml): finished with status 'done' ERROR: Exception: Traceback (most recent call last): File "/home/packages/SOURCE/sage/local/var/lib/sage/venv-python3.11/lib64/python3.11/site-packages/pip/_internal/cli/base_command.py", line 160, in exc_logging_wrapper status = run_func(*args) ^^^ File "/home/packages/SOURCE/sage/local/var/lib/sage/venv-python3.11/lib64/python3.11/site-packages/pip/_internal/cli/req_command.py", line 247, in wrapper return func(self, options, args) ^ File "/home/packages/SOURCE/sage/local/var/lib/sage/venv-python3.11/lib64/python3.11/site-packages/pip/_internal/commands/wheel.py", line 170, in run requirement_set = resolver.resolve(reqs, check_supported_wheels=True) ^^^ File "/home/packages/SOURCE/sage/local/var/lib/sage/venv-python3.11/lib64/python3.11/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 73, in resolve collected = self.factory.collect_root_requirements(root_reqs) ^ File "/home/packages/SOURCE/sage/local/var/lib/sage/venv-python3.11/lib64/python3.11/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 491, in collect_root_requirements req = self._make_requirement_from_install_req( File
[sage-support] Re: Error building 9.8 on Ubuntu 23.04
Thank you, this allows sage to complete the build. However, now I have another problem. When I run sage from its install directory it gives the error: AttributeError: module 'sage_conf' has no attribute '_main' And then strangely, it starts Sage 9.5, the version installed on my system through apt. I didn't want to remove this version using apt because I thought it would remove a lot of packages that I need for other programs. Here is the full output. ./sage Traceback (most recent call last): File "/home/packages/SOURCE/sage/ehm_install/bin/././sage-config", line 33, in < module> sys.exit(load_entry_point('sage-conf', 'console_scripts', 'sage-config')()) ^^^ File "/home/packages/SOURCE/sage/ehm_install/bin/././sage-config", line 25, in i mportlib_load_entry_point return next(matches).load() File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 204, in load return functools.reduce(getattr, attrs, module) AttributeError: module 'sage_conf' has no attribute '_main' Traceback (most recent call last): File "/home/packages/SOURCE/sage/ehm_install/bin/././sage-config", line 33, in < module> sys.exit(load_entry_point('sage-conf', 'console_scripts', 'sage-config')()) ^^^ File "/home/packages/SOURCE/sage/ehm_install/bin/././sage-config", line 25, in i mportlib_load_entry_point return next(matches).load() File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 204, in load return functools.reduce(getattr, attrs, module) AttributeError: module 'sage_conf' has no attribute '_main' ┌┐ │ SageMath version 9.5, Release Date: 2022-01-30 │ │ Using Python 3.11.2. Type "help()" for help. │ └┘ On Friday, April 7, 2023 at 4:53:15 PM UTC-5 John H Palmieri wrote: > Some recent versions of Singular don't seem to work with Sage. You could > try "make distclean" (to start over) and "./configure > --with-system-singular=no" to force Sage to build its own Singular. Then > "make". > > On Friday, April 7, 2023 at 2:22:20 PM UTC-7 Eric Majzoub wrote: > >> Following the procedure outlined on the Sage install page for Ubuntu. >> >> make fails showing: >> Error building Sage. >> >> The following package(s) may have failed to build (not necessarily >> during this run of 'make all-start'): >> >> * package: sagelib-9.8 >> last build time: Apr 7 15:48 >> log file:/home/packages/SOURCE/sage/logs/pkgs/sagelib-9.8.log >> >> The log file is attached. It shows that gcc exits with status 1, but >> doesn't give any specific error output from gcc itself. It fails on >> building multi_polynomial_libsingular. >> >> Any help is appreciated. >> > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-support/815d19ca-00ae-49ec-84bf-6a015fb0ecfcn%40googlegroups.com.