Welcome to Cadabra Q&A, where you can ask questions and receive answers from other members of the community.
0 votes

Happy New Year community!

I've been using manjaro linux as my main OS for four year now (perhaps even more than that), and I compile cadabra2 every few months. The standard process is:

cd ~/Software/git.src/cadabra2
git fetch
git pull
rm -Rf build/ && mkdir build && cd build && cmake ../ 
make -j6
sudo make install

After that, I can execute cadabra2-gtk without problems (most of the times, hehehe).

Lately, I haven't been able of using the cadabra notebook... The source is compiled, but when I call cadabra2-gtk I get the following:

(cadabra2-gtk:984345): Gtk-WARNING **: 11:47:21.946: Theme parsing error: gtk.css:68:35: The style property GtkButton:child-displacement-x is deprecated and shouldn't be used anymore. It will be removed in a future version

(cadabra2-gtk:984345): Gtk-WARNING **: 11:47:21.946: Theme parsing error: gtk.css:69:35: The style property GtkButton:child-displacement-y is deprecated and shouldn't be used anymore. It will be removed in a future version

(cadabra2-gtk:984345): Gtk-WARNING **: 11:47:21.946: Theme parsing error: gtk.css:70:34: The style property GtkCheckButton:indicator-size is deprecated and shouldn't be used anymore. It will be removed in a future version

(cadabra2-gtk:984345): Gtk-WARNING **: 11:47:21.946: Theme parsing error: gtk.css:71:36: The style property GtkCheckMenuItem:indicator-size is deprecated and shouldn't be used anymore. It will be removed in a future version

(cadabra2-gtk:984345): Gtk-WARNING **: 11:47:21.946: Theme parsing error: gtk.css:73:46: The style property GtkScrolledWindow:scrollbars-within-bevel is deprecated and shouldn't be used anymore. It will be removed in a future version

(cadabra2-gtk:984345): Gtk-WARNING **: 11:47:21.946: Theme parsing error: gtk.css:76:30: The style property GtkExpander:expander-size is deprecated and shouldn't be used anymore. It will be removed in a future version

(cadabra2-gtk:984345): Gtk-WARNING **: 11:47:21.949: Theme parsing error: gtk.css:83:29: The style property GtkStatusbar:shadow-type is deprecated and shouldn't be used anymore. It will be removed in a future version

which seems harmless... but also this:

cadabra-server: Symbol `PyInstanceMethod_Type' has different size in shared object, consider re-linking
cadabra-server: Symbol `PyCapsule_Type' has different size in shared object, consider re-linking
cadabra-server: Symbol `PyModule_Type' has different size in shared object, consider re-linking
cadabra-server: Symbol `PyType_Type' has different size in shared object, consider re-linking
cadabra-server: Symbol `PyByteArray_Type' has different size in shared object, consider re-linking
cadabra-server: Symbol `PyCFunction_Type' has different size in shared object, consider re-linking
cadabra-server: Symbol `PyProperty_Type' has different size in shared object, consider re-linking
cadabra-server: Symbol `PyBaseObject_Type' has different size in shared object, consider re-linking
cadabra-server: Symbol `PyFloat_Type' has different size in shared object, consider re-linking
*** stack smashing detected ***: terminated
terminate called after throwing an instance of 'std::logic_error'
  what():  Failed to read port from server.

At first the notebook opens, but after a couple of seconds it closes.

Question

What is happening to my cadabra installation?

ago in Installation trouble by (15.3k points)

1 Answer

+1 vote
 
Best answer

That sounds you either have some old version of cadabra-server floating around, or there is a mixture of different python versions on your system which are not picked up consistently. Can you email me the output of the cmake stage (with a clean build folder)?

The theme warning errors probably have something to do with customisations you (or some manjaro package) has made to the gtk theme.

ago by (84.7k points)
selected ago by

Hi K.

Sure, here it is!

-- Set CMake policy CMP0042 to NEW
-- Set CMake policy CMP0054 to NEW
-- Set CMake policy CMP0127 to NEW
-- Set CMake policy CMP0148 to NEW
-- Set CMake policy CMP0167 to NEW
-- Set CMake policy CMP0094 to NEW (use first Python found)
-- Set CMake policy CMP0169 to NEW (use new FetchContent)
-- Set CMake policy CMP0177 to NEW (destination paths are normalised)
-- The C compiler identification is GNU 14.2.1
-- The CXX compiler identification is GNU 14.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Build id '3596.a4153ca480' dated 2024-12-30
-- Build mode is set to ''
-- Architecture is 'x86_64'
-- Install directory set to /usr/local
-- Building in user mode
-- Building tests
-- IPO / LTO enabled
-- Found Python: /usr/bin/python3.12 (found version "3.12.7") found components: Interpreter Development Development.Module Development.Embed
-- Performing Test HAS_FLTO
-- Performing Test HAS_FLTO - Success
-- Found pybind11: /usr/include (found version "2.13.6")
-- Found python /usr/lib/libpython3.12.so
-- Python version is 3.12.
-- Making PYTHON_SITE_PATH relative if possible
-- Installing Cadabra Python modules in (PYTHON_SITE_PATH) /usr/lib/python3.12/site-packages
-- relative to CMake install prefix /usr/local
-- Python abi name cpython-312-x86_64-linux-gnu
-- Python module extension cpython-312-x86_64-linux-gnu.so
-- Building the default Jupyter kernel
-- Found PkgConfig: /usr/bin/pkg-config (found version "2.3.0")
-- Checking for module 'glibmm-2.4'
--   Found glibmm-2.4, version 2.66.7
-- Found glibmm; include path /usr/include/glibmm-2.4;/usr/lib/glibmm-2.4/include;/usr/include;/usr/include/glib-2.0;/usr/lib/glib-2.0/include;/usr/include/sysprof-6;/usr/include/sigc++-2.0;/usr/lib/sigc++-2.0/include
-- Found glibmm; lib glibmm-2.4;gobject-2.0;glib-2.0;sigc-2.0
-- Checking for module 'sqlite3'
--   Found sqlite3, version 3.47.2
-- Found SQLITE3: sqlite3
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found OpenSSL: /usr/lib/libcrypto.so (found version "3.4.0")
-- OPENSSL_LIBRARIES:      /usr/lib/libssl.so;/usr/lib/libcrypto.so
-- OPENSSL_SSL_LIBRARY:    /usr/lib/libssl.so
-- OPENSSL_CRYPTO_LIBRARY: /usr/lib/libcrypto.so
-- Found glibmm; include path /usr/include/glibmm-2.4;/usr/lib/glibmm-2.4/include;/usr/include;/usr/include/glib-2.0;/usr/lib/glib-2.0/include;/usr/include/sysprof-6;/usr/include/sigc++-2.0;/usr/lib/sigc++-2.0/include
-- Found glibmm; lib glibmm-2.4;gobject-2.0;glib-2.0;sigc-2.0
-- Found gmp
-- Found gmpxx
-- Linking to GMP   library /usr/lib/libgmp.so
-- Linking to GMPXX library /usr/lib/libgmpxx.so
-- IPO / LTO for cadabra2 enabled
-- Building without Mathematica support
-- Found gmp
-- Found gmpxx
-- Storing algorithm C++ module as core
-- IPO / LTO for _component enabled
-- Storing algorithm C++ module as utils
-- IPO / LTO for _algorithm enabled
-- Checking for module 'gtkmm-3.0'
--   Found gtkmm-3.0, version 3.24.9
-- Found gtkmm
-- Using gtkmm frontend
-- Including MicroTeX support for typesetting
-- Fetching MicroTeX using FetchContent
-- Have cwrapper: 
-- Cross-building using GTK
-- Found Fontconfig: /usr/lib/libfontconfig.so (found version "2.15.0")
-- Checking for module 'cairo'
--   Found cairo, version 1.18.2
-- Checking for module 'pango'
--   Found pango, version 1.54.0
-- Checking for module 'pangocairo'
--   Found pangocairo, version 1.54.0
-- Found glibmm; include path /usr/include/glibmm-2.4;/usr/lib/glibmm-2.4/include;/usr/include;/usr/include/glib-2.0;/usr/lib/glib-2.0/include;/usr/include/sysprof-6;/usr/include/sigc++-2.0;/usr/lib/sigc++-2.0/include
-- Found glibmm; lib glibmm-2.4;gobject-2.0;glib-2.0;sigc-2.0
-- Found gtkmm
-- MicroTeX binaries will be built at /home/oscar/Software/git.src/cadabra2/build/_deps/microtex-build
-- Checking for module 'fontconfig'
--   Found fontconfig, version 2.15.0
-- Checking for module 'cairomm-1.0'
--   Found cairomm-1.0, version 1.14.5
-- Checking for module 'pangomm-1.4'
--   Found pangomm-1.4, version 2.46.4
-- Installing LaTeX style files in share/cadabra2/latex
-- Book will be created in /home/oscar/Software/git.src/cadabra2/build/book
-- Configuring done (6.9s)
-- Generating done (0.2s)
-- Build files have been written to: /home/oscar/Software/git.src/cadabra2/build

Hi K. Problem solved!

I found the old cadabra-server, eraced the files, and it worked.

THANK YOU, Happy new year!!!

...