You are not logged in.
Using Python 3.7.4 and Matplotlib 3.1.1, I receive the following error when importing pyplot:
[david@david-pc ~]$ which python
/usr/bin/python
[david@david-pc ~]$ python
Python 3.7.4 (default, Oct 4 2019, 06:57:26)
[GCC 9.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
>>> matplotlib.__version__
'3.1.1'
>>> import matplotlib.pyplot
python: Relink `/usr/lib/libcairo.so.2' with `/usr/lib/librt.so.1' for IFUNC symbol `clock_gettime'
Segmentation fault (core dumped)
When using Python2.7 this does not occur:
[david@david-pc ~]$ python2.7
Python 2.7.16 (default, Mar 11 2019, 18:59:25)
[GCC 8.2.1 20181127] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
>>> matplotlib.__version__
'2.2.4'
>>> import matplotlib.pyplot
>>>
I need to use Python3. I would appreciate very much if someone could help me
Many thanks
[david@david-pc ~]$ pacman -Qi python-matplotlib
Name : python-matplotlib
Version : 3.1.1-1
Description : A python plotting library, making publication quality plots
Architecture : x86_64
URL : https://matplotlib.org
Licenses : custom
Groups : None
Provides : None
Depends On : freetype2 libpng python-numpy python-cycler python-dateutil python-kiwisolver python-pyparsing
Optional Deps : tk: Tk{Agg,Cairo} backends [installed]
python-pyqt5: Qt5{Agg,Cairo} backends [installed]
python-gobject: for GTK3{Agg,Cairo} backend [installed]
python-wxpython: WX{,Agg,Cairo} backend
python-cairo: {GTK3,Qt5,Tk,WX}Cairo backends [installed]
python-cairocffi: alternative for Cairo backends
python-tornado: WebAgg backend [installed]
ffmpeg: for saving movies [installed]
imagemagick: for saving animated gifs [installed]
python-pillow: for reading/saving jpeg/bmp/tiff files [installed]
ghostscript: usetex dependencies [installed]
texlive-bin: usetex dependencies
Required By : None
Optional For : vtk
Conflicts With : None
Replaces : None
Installed Size : 25,50 MiB
Packager : Bruno Pagani <archange@archlinux.org>
Build Date : 2019-07-01T14:59:33 CEST
Install Date : 2019-10-19T21:29:42 CEST
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature
Last edited by David_1 (2019-10-20 10:07:51)
Offline
And what version of cairo and glibc?
Offline
And what version of cairo and glibc?
[david@david-pc ~]$ pacman -Qi cairo
Name : cairo
Version : 1.17.2+17+g52a7c79fd-2
Description : 2D graphics library with support for multiple output devices
Architecture : x86_64
URL : https://cairographics.org/
Licenses : LGPL MPL
Groups : None
Provides : None
Depends On : libpng libxrender libxext fontconfig pixman glib2 lzo
Optional Deps : None
Required By : cairomm fltk frei0r-plugins gjs gnuplot gst-plugins-good
gtk2 gtk3 libchamplain pango poppler python-cairo
python2-cairo
Optional For : harfbuzz hwloc python-gobject
Conflicts With : None
Replaces : None
Installed Size : 3,43 MiB
Packager : Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Build Date : 2019-10-05T14:10:22 CEST
Install Date : 2019-10-19T21:08:15 CEST
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : Signature
[david@david-pc ~]$ pacman -Qi glibc
Name : glibc
Version : 2.30-1
Description : GNU C Library
Architecture : x86_64
URL : https://www.gnu.org/software/libc
Licenses : GPL LGPL
Groups : base
Provides : None
Depends On : linux-api-headers>=4.10 tzdata filesystem
Optional Deps : gd: for memusagestat [installed]
Required By : a52dec acpi alsa-lib argon2 attr b43-fwcutter bash
binutils bison bluez-libs btrfs-progs bubblewrap bzip2
cdparanoia cmark-gfm coreutils cpupower cracklib dav1d
device-mapper dhclient dhcpcd diffutils ding-libs discount
dmidecode dnsmasq dosfstools exfat-utils expat faad2
fakeroot file findutils flex fribidi fuse2 fuse3 gavl
gawk gcc-libs gdbm giflib grep gsl gsm gzip haveged
hdparm hspell hyphen ijs iproute2 jack jansson jemalloc
jq json-c kbd keyutils kmod l-smash less lib32-glibc
libaec libass libasyncns libatomic_ops libbsd libcap
libcap-ng libcddb libcerf libcue libdatrie libdvdcss
libdvdread libepoxy libevdev libexif libexttextcat libffi
libfreexl libgpg-error libical libice libidn libiptcdata
libksba liblouis libmms libmnl libmpcdec libmpeg2 libndp
libnet libnfnetlink libnghttp2 libnl libogg
libomxil-bellagio libpcap libpciaccess libpgm libpipeline
libraw1394 libseccomp libsigsegv libsodium libstemmer
libsynctex libtasn1 libtommath libtool libunistring
libunwind libusb libutempter libuv libvisual libvterm
libwbclient libxau libxdg-basedir libxdmcp libxkbcommon
libxshmfence libytnef lmdb lpsolve lz4 lzo m4 make mdadm
metis mkinitcpio-busybox msgpack-c mtdev ncurses nspr
nss-mdns openal opencore-amr opus orc p11-kit pacman pam
patch pciutils pdflib-lite perl pixman pkgconf popt ppp
psutils qhull readline rhash rpcbind rtmpdump run-parts
sbc sdl sdl2 sed shaderc sip snappy speexdsp spglib
sudo sysfsutils systemd-libs t1utils talloc tar tree
tslib twolame unibilium v86d vid.stab vim
vulkan-icd-loader wavpack wayland wget which
xf86-input-elographics xf86-input-keyboard xf86-input-mouse
xf86-input-void xorg-bdftopcf xvidcore zita-alsa-pcmi
zita-resampler zlib
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 46,01 MiB
Packager : Allan McRae <allan@archlinux.org>
Build Date : 2019-09-30T13:49:44 CEST
Install Date : 2019-10-11T19:27:11 CEST
Install Reason : Explicitly installed
Install Script : Yes
Validated By : Signature
Last edited by David_1 (2019-10-19 23:07:29)
Offline