From zsysally at 163.com Fri Jan 7 22:20:40 2022 From: zsysally at 163.com (=?GBK?B?1PjK6ebC?=) Date: Sat, 8 Jan 2022 11:20:40 +0800 (CST) Subject: [Matplotlib-users] Fail to create pixmap with Tk_GetPixmap in TkImgPhotoInstanceSetSize Message-ID: <3c1d0bf5.766.17e37b3db26.Coremail.zsysally@163.com> Hi, guys: Recently we are developing the code for handling the png file, we always got such results when we reached around 350 png files, as below on Windows 10: Fail to create pixmap with Tk_GetPixmap in TkImgPhotoInstanceSetSize Process finished with exit code -2147483645 From our view, this is the matplotlib issue, maybe define the max size for Tkinter windows, but we do not know how to redefine this para, so we need more help from your side. Thank you!! (PS:Matplotlib is the latest version we can get from pip install) Have a good day! Sally from Shanghai 2022.1.8 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ndbecker2 at gmail.com Tue Jan 11 08:06:17 2022 From: ndbecker2 at gmail.com (Neal Becker) Date: Tue, 11 Jan 2022 08:06:17 -0500 Subject: [Matplotlib-users] unable to save file x2go/fedora f35 Message-ID: Since updating my remote server to fedora f35 I am unable to save files through the mpl gui. Instead, hitting the save file icon gives a segfault. My usual backend is mplcairo, but I've tried removing that config option (reverting to default). When run on a local display there is no problem: on hitting the save button a file selection dialog pops up. The problem is only occurring when run on a remote server using x2go. I've tried some different remote desktops, same result (current remote desktop is mate) The initial stack trace looks like this: Stack trace of thread 2887172: #0 0x000055662b13a97c handle_save_file (xdg-desktop-portal + 0x2597c) #1 0x00007f51eb363c04 ffi_call_unix64 (libffi.so.6 + 0x6c04) #2 0x00007f51eb363108 ffi_call (libffi.so.6 + 0x6108) #3 0x00007f51eb774bfd g_cclosure_marshal_generic (libgobject-2.0.so.0 + 0x19bfd) #4 0x00007f51eb76ec7f g_closure_invoke (libgobject-2.0.so.0 + 0x13c7f) #5 0x00007f51eb78aaf4 signal_emit_unlocked_R (libgobject-2.0.so.0 + 0x2faf4) #6 0x000055662b1646e4 _xdp_file_chooser_skeleton_handle_method_call (xdg-desktop-portal + 0x4f6e4) #7 0x00007f51eb8da4ae dispatch_in_thread_func (libgio-2.0.so.0 + 0x1234ae) #8 0x00007f51eb86850f g_task_thread_pool_thread (libgio-2.0.so.0 + 0xb150f) #9 0x00007f51eb6a2114 g_thread_pool_thread_proxy.lto_priv.0 (libglib-2.0.so.0 + 0x82114) #10 0x00007f51eb69f842 g_thread_proxy (libglib-2.0.so.0 + 0x7f842) #11 0x00007f51eb486a87 start_thread (libc.so.6 + 0x8da87) #12 0x00007f51eb50b Obviously, it isn't mpl problem, but can anyone suggest a workaround I could try? Thanks, Neal -------------- next part -------------- An HTML attachment was scrubbed... URL: From ndbecker2 at gmail.com Tue Jan 11 09:11:10 2022 From: ndbecker2 at gmail.com (Neal Becker) Date: Tue, 11 Jan 2022 09:11:10 -0500 Subject: [Matplotlib-users] unable to save file x2go/fedora f35 References: Message-ID: Neal Becker wrote: > Since updating my remote server to fedora f35 I am unable to save files > through the mpl gui. Instead, hitting the save file icon gives a > segfault. My usual backend is mplcairo, but I've tried removing that > config option (reverting to default). > > When run on a local display there is no problem: on hitting the save > button > a file selection dialog pops up. The problem is only occurring when run > on a remote server using x2go. > > I've tried some different remote desktops, same result (current remote > desktop is mate) > The initial stack trace looks like this: > > Stack trace of thread > 2887172: > #0 0x000055662b13a97c > handle_save_file (xdg-desktop-portal + 0x2597c) > #1 0x00007f51eb363c04 > ffi_call_unix64 (libffi.so.6 + 0x6c04) > #2 0x00007f51eb363108 > ffi_call (libffi.so.6 + 0x6108) > #3 0x00007f51eb774bfd > g_cclosure_marshal_generic (libgobject-2.0.so.0 + 0x19bfd) > #4 0x00007f51eb76ec7f > g_closure_invoke (libgobject-2.0.so.0 + 0x13c7f) > #5 0x00007f51eb78aaf4 > signal_emit_unlocked_R (libgobject-2.0.so.0 + 0x2faf4) > #6 0x000055662b1646e4 > _xdp_file_chooser_skeleton_handle_method_call (xdg-desktop-portal + > 0x4f6e4) > #7 0x00007f51eb8da4ae > dispatch_in_thread_func (libgio-2.0.so.0 + 0x1234ae) > #8 0x00007f51eb86850f > g_task_thread_pool_thread (libgio-2.0.so.0 + 0xb150f) > #9 0x00007f51eb6a2114 > g_thread_pool_thread_proxy.lto_priv.0 (libglib-2.0.so.0 + 0x82114) > #10 0x00007f51eb69f842 > g_thread_proxy (libglib-2.0.so.0 + 0x7f842) > #11 0x00007f51eb486a87 > start_thread (libc.so.6 + 0x8da87) > #12 0x00007f51eb50b > > Obviously, it isn't mpl problem, but can anyone suggest a workaround I > could try? > > Thanks, > Neal Workaround is to use xfce instead of mate. From pabloemma at gmail.com Sun Jan 16 18:42:46 2022 From: pabloemma at gmail.com (andi klein) Date: Sun, 16 Jan 2022 16:42:46 -0700 Subject: [Matplotlib-users] illegal instruction on raspberry pi0 Message-ID: <256ee33e-4aea-ab24-48fd-e6bf3f3b898d@gmail.com> I am trying to get matplotlib to run on a pi0. The system is running bullseye and the python is 3.9.2 First I did*pip install matplotlib *when I do import matplotlib, I get illegal instruction, so I did pip uninstall matlpotlib and then did sudo apt-get install python3-matplotlib Now I can do import matlpotlib, but I get another illegal instruction when I do import matplotlib.pyplot I removed this version and downloaded the latest tar.gz file then: git clone https://github.com/matplotlib/matplotlib.git matplotlib cd matplotlib python -m pip install -e . Now it gives me an illegal istruction again at import matplotlib. I am now at my wits end. Doe anyone have seen a similar behavior? Thanks, andi -- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Dilbert-lean-strategic-changes-9.gif Type: image/gif Size: 56275 bytes Desc: not available URL: From ndbecker2 at gmail.com Sun Jan 16 20:32:18 2022 From: ndbecker2 at gmail.com (Neal Becker) Date: Sun, 16 Jan 2022 20:32:18 -0500 Subject: [Matplotlib-users] illegal instruction on raspberry pi0 In-Reply-To: <256ee33e-4aea-ab24-48fd-e6bf3f3b898d@gmail.com> References: <256ee33e-4aea-ab24-48fd-e6bf3f3b898d@gmail.com> Message-ID: Illegal instructions means the executable is not compiled for your processor. On Sun, Jan 16, 2022, 6:42 PM andi klein wrote: > I am trying to get matplotlib to run on a pi0. > The system is running bullseye and the python is 3.9.2 > First I did > * pip install matplotlib *when I do > import matplotlib, I get illegal instruction, so I did pip uninstall > matlpotlib and then did > sudo apt-get install python3-matplotlib > Now I can do import matlpotlib, but I get another illegal instruction when > I do > import matplotlib.pyplot > I removed this version and downloaded the latest tar.gz file > then: > git clone https://github.com/matplotlib/matplotlib.git matplotlib > cd matplotlib > python -m pip install -e . > > Now it gives me an illegal istruction again at import matplotlib. > I am now at my wits end. Doe anyone have seen a similar behavior? > Thanks, andi > > -- > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users at python.org > https://mail.python.org/mailman/listinfo/matplotlib-users > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Dilbert-lean-strategic-changes-9.gif Type: image/gif Size: 56275 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Dilbert-lean-strategic-changes-9.gif Type: image/gif Size: 56275 bytes Desc: not available URL: From pabloemma at gmail.com Mon Jan 17 08:37:17 2022 From: pabloemma at gmail.com (andi klein) Date: Mon, 17 Jan 2022 06:37:17 -0700 Subject: [Matplotlib-users] illegal instruction on raspberry pi0 In-Reply-To: References: <256ee33e-4aea-ab24-48fd-e6bf3f3b898d@gmail.com> Message-ID: <2457a26f-368d-bd4e-7596-d998abefbcb5@gmail.com> Yes, I understand this. This is why thought downloading it and building from scratch would rectify this. On 1/16/22 18:32, Neal Becker wrote: > Illegal instructions means the executable is not compiled for your > processor. > > On Sun, Jan 16, 2022, 6:42 PM andi klein wrote: > > I am trying to get matplotlib to run on a pi0. > The system is running bullseye and the python is 3.9.2 > First I did*pip install matplotlib > *when I do > import matplotlib, I get illegal instruction, so I did pip > uninstall matlpotlib and then did > sudo apt-get install python3-matplotlib > Now I can do import matlpotlib, but I get another illegal > instruction when I do > import matplotlib.pyplot > I removed this version and downloaded the latest tar.gz file > then: > git clone https://github.com/matplotlib/matplotlib.git matplotlib > cd matplotlib > python -m pip install -e . > > Now it gives me an illegal istruction again at import matplotlib. > I am now at my wits end. Doe anyone have seen a similar behavior? > Thanks, andi > > -- > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users at python.org > https://mail.python.org/mailman/listinfo/matplotlib-users > -- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Dilbert-lean-strategic-changes-9.gif Type: image/gif Size: 56275 bytes Desc: not available URL: From ndbecker2 at gmail.com Mon Jan 17 08:48:04 2022 From: ndbecker2 at gmail.com (Neal Becker) Date: Mon, 17 Jan 2022 08:48:04 -0500 Subject: [Matplotlib-users] illegal instruction on raspberry pi0 In-Reply-To: <2457a26f-368d-bd4e-7596-d998abefbcb5@gmail.com> References: <256ee33e-4aea-ab24-48fd-e6bf3f3b898d@gmail.com> <2457a26f-368d-bd4e-7596-d998abefbcb5@gmail.com> Message-ID: OK, sorry, I hadn't read you message carefully. I can only suppose that the build did not target the correct arch, even though you built it on that machine. I'm guessing that if you could somehow modify the compile flags to --march=native, maybe that would do it. But not sure if you can do this with pip. On Mon, Jan 17, 2022 at 8:37 AM andi klein wrote: > Yes, I understand this. This is why thought downloading it and building > from scratch > would rectify this. > > > On 1/16/22 18:32, Neal Becker wrote: > > Illegal instructions means the executable is not compiled for your > processor. > > On Sun, Jan 16, 2022, 6:42 PM andi klein wrote: > >> I am trying to get matplotlib to run on a pi0. >> The system is running bullseye and the python is 3.9.2 >> First I did >> * pip install matplotlib *when I do >> import matplotlib, I get illegal instruction, so I did pip uninstall >> matlpotlib and then did >> sudo apt-get install python3-matplotlib >> Now I can do import matlpotlib, but I get another illegal instruction >> when I do >> import matplotlib.pyplot >> I removed this version and downloaded the latest tar.gz file >> then: >> git clone https://github.com/matplotlib/matplotlib.git matplotlib >> cd matplotlib >> python -m pip install -e . >> >> Now it gives me an illegal istruction again at import matplotlib. >> I am now at my wits end. Doe anyone have seen a similar behavior? >> Thanks, andi >> >> -- >> _______________________________________________ >> Matplotlib-users mailing list >> Matplotlib-users at python.org >> https://mail.python.org/mailman/listinfo/matplotlib-users >> > > > -- > -- *Those who don't understand recursion are doomed to repeat it* -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Dilbert-lean-strategic-changes-9.gif Type: image/gif Size: 56275 bytes Desc: not available URL: From pabloemma at gmail.com Mon Jan 17 09:17:39 2022 From: pabloemma at gmail.com (andi klein) Date: Mon, 17 Jan 2022 07:17:39 -0700 Subject: [Matplotlib-users] illegal instruction on raspberry pi0 In-Reply-To: References: <256ee33e-4aea-ab24-48fd-e6bf3f3b898d@gmail.com> <2457a26f-368d-bd4e-7596-d998abefbcb5@gmail.com> Message-ID: <7d7979b1-94ad-7737-6ce8-60c468ebbff3@gmail.com> Yes, I agree. I probably have to get my head into pip and see if I can find anything like this. On 1/17/22 06:48, Neal Becker wrote: > OK, sorry, I hadn't read you message carefully.? I can only suppose > that the build did not target the correct arch, even though you built > it on that machine.? I'm guessing that if you could somehow modify the > compile flags to --march=native, maybe that would do it.? But not sure > if you can do this with pip. > > On Mon, Jan 17, 2022 at 8:37 AM andi klein wrote: > > Yes, I understand this. This is why? thought downloading it and > building from scratch > would rectify this. > > > On 1/16/22 18:32, Neal Becker wrote: >> Illegal instructions means the executable is not compiled for >> your processor. >> >> On Sun, Jan 16, 2022, 6:42 PM andi klein wrote: >> >> I am trying to get matplotlib to run on a pi0. >> The system is running bullseye and the python is 3.9.2 >> First I did*pip install matplotlib >> *when I do >> import matplotlib, I get illegal instruction, so I did pip >> uninstall matlpotlib and then did >> sudo apt-get install python3-matplotlib >> Now I can do import matlpotlib, but I get another illegal >> instruction when I do >> import matplotlib.pyplot >> I removed this version and downloaded the latest tar.gz file >> then: >> git clone https://github.com/matplotlib/matplotlib.git matplotlib >> cd matplotlib >> python -m pip install -e . >> >> Now it gives me an illegal istruction again at import matplotlib. >> I am now at my wits end. Doe anyone have seen a similar behavior? >> Thanks, andi >> >> -- >> _______________________________________________ >> Matplotlib-users mailing list >> Matplotlib-users at python.org >> https://mail.python.org/mailman/listinfo/matplotlib-users >> > > > -- > > > > -- > /Those who don't understand recursion are doomed to repeat it/ -- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Dilbert-lean-strategic-changes-9.gif Type: image/gif Size: 56275 bytes Desc: not available URL: