From mboxrd@z Thu Jan 1 00:00:00 1970 From: Federico Beffa Subject: bug#20889: Tkinter moved to separate output Date: Mon, 30 Nov 2015 17:45:58 +0100 Message-ID: References: <8def219fd20047742c102943aaf6dea7@openmailbox.org> <87ziyjxtkp.fsf@gnu.org> <87k2picp2z.fsf_-_@gnu.org> <87a8qe85ku.fsf@gnu.org> <87two4e9v8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=001a1143122a9111430525c4c663 Return-path: Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87two4e9v8.fsf@gnu.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= , Guix-devel , iyzsong@member.fsf.org, 20889@debbugs.gnu.org List-Id: guix-devel.gnu.org --001a1143122a9111430525c4c663 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sun, Nov 29, 2015 at 11:09 PM, Ludovic Court=C3=A8s wrote= : > Federico Beffa skribis: > >> On Mon, Nov 16, 2015 at 1:57 PM, Ludovic Court=C3=A8s wro= te: >>> Federico Beffa skribis: >>>> Yes, given that the back-end currently used by matploblib doesn't >>>> work, I would change that by using 'Tkinter'. >>>> >>>> Since you are at it, I would also change the default back-end by >>>> changing 'GTK3Agg' to 'TkAgg' in the following snippet: >>>> >>>> (lambda (port) >>>> (format port "[rc_options]~% >>>> backend =3D GTK3Agg~%"))))) >>> >>> OTOH I see that Matploblib already depends on GTK+ 3.x and >>> python-pygobject, so maybe it=E2=80=99s best to stick to GTK+ by defaul= t? >> >> Unfortunately, the back-ends based on GTK+ are broken and I didn't >> manage to find how to fix the problem. >> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D20888 >> >> That's why I'm looking forward to get Tkinter :-) > > Could you or someone else test this patch on current master? It does not work. It can't find the tcl/tk header files: ... tkagg: no [The C/C++ header for Tk (tk.h) could not be found. You may need to install the development package.] ... With the attached patch it does find the headers, but then it fails at link time. ... g++ -pthread -shared -Wl,-rpath=3D/gnu/store/cxrqlhbr6xqgi08x3amd0lvl6m7sxx57-python-3.4.3/lib build/temp.linux-x86_64-3.4/src/agg_py_transforms.o build/temp.linux-x86_64-3.4/src/_tkagg.o build/temp.linux-x86_64-3.4/extern/agg24/src/agg_bezier_arc.o build/temp.linux-x86_64-3.4/extern/agg24/src/agg_curves.o build/temp.linux-x86_64-3.4/extern/agg24/src/agg_image_filters.o build/temp.linux-x86_64-3.4/extern/agg24/src/agg_trans_affine.o build/temp.linux-x86_64-3.4/extern/agg24/src/agg_vcgen_contour.o build/temp.linux-x86_64-3.4/extern/agg24/src/agg_vcgen_dash.o build/temp.linux-x86_64-3.4/extern/agg24/src/agg_vcgen_stroke.o build/temp.linux-x86_64-3.4/extern/agg24/src/agg_vpgen_segmentator.o build/temp.linux-x86_64-3.4/extern/CXX/IndirectPythonInterface.o build/temp.linux-x86_64-3.4/extern/CXX/cxxsupport.o build/temp.linux-x86_64-3.4/extern/CXX/cxx_extensions.o build/temp.linux-x86_64-3.4/extern/CXX/cxxextensions.o -L/gnu/store/ipsq9hlk6k0w1qfiw0y0a03bxkp2clhl-tcl-8.6.4/lib -L/gnu/store/my9wgryzpfvksng6k7h87xz9rphdwddw-tk-8.6.4/lib -L/usr/local/lib -L/usr/local/lib -L/gnu/store/cxrqlhbr6xqgi08x3amd0lvl6m7sxx57-python-3.4.3/lib -ltcl -ltk -lstdc++ -lm -lpython3.4m -o build/lib.linux-x86_64-3.4/matplotlib/backends/_tkagg.cpython-34m.so ld: cannot find -ltcl ld: cannot find -ltk collect2: error: ld returned 1 exit status error: command 'g++' failed with exit status 1 phase `build' failed after 94.8 seconds ... Looking into the failed build directory, it seems that PKG_CONFIG_PATH is set correctly. Still, it doesn't get the correct flags. Regards, Fede --001a1143122a9111430525c4c663 Content-Type: text/x-diff; charset=US-ASCII; name="mpl.patch" Content-Disposition: attachment; filename="mpl.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ihm2v6ug1 ZGlmZiAtLWdpdCBhL2dudS9wYWNrYWdlcy9weXRob24uc2NtIGIvZ251L3BhY2thZ2VzL3B5dGhv bi5zY20KaW5kZXggMzlkMDc1MS4uNGRmZTU1NyAxMDA2NDQKLS0tIGEvZ251L3BhY2thZ2VzL3B5 dGhvbi5zY20KKysrIGIvZ251L3BhY2thZ2VzL3B5dGhvbi5zY20KQEAgLTMxOTAsNiArMzE5MCw3 IEBAIHRyYW5zY2VuZGVudGFsIGZ1bmN0aW9ucykuIikKICAgICAgYCgoInB5dGhvbi1weXBhcnNp bmciICxweXRob24tcHlwYXJzaW5nKQogICAgICAgICgicHl0aG9uLXB5Z29iamVjdCIgLHB5dGhv bi1weWdvYmplY3QpCiAgICAgICAgKCJnb2JqZWN0LWludHJvc3BlY3Rpb24iICxnb2JqZWN0LWlu dHJvc3BlY3Rpb24pCisgICAgICAgKCJweXRob24tdGtpbnRlciIgLHB5dGhvbiAidGsiKQogICAg ICAgIDs7IFRoZSAnZ3RrKycgcGFja2FnZSAoYW5kICdnZGstcGl4YnVmJywgJ2F0aycgYW5kICdw YW5nbycgcHJvcGFnYXRlZAogICAgICAgIDs7IGZyb20gJ2d0aysnKSBwcm92aWRlcyB0aGUgcmVx dWlyZWQgJ3R5cGVsaWInIGZpbGVzIHVzZWQgYnkKICAgICAgICA7OyAnZ29iamVjdC1pbnRyb3Nw ZWN0aW9uJy4gVGhlIGxvY2F0aW9uIG9mIHRoZXNlIGZpbGVzIGlzIHNldCB3aXRoIHRoZQpAQCAt MzIyNCw3ICszMjI1LDggQEAgdHJhbnNjZW5kZW50YWwgZnVuY3Rpb25zKS4iKQogICAgICAgIDs7 IEZJWE1FOiBBZGQgYmFja2VuZHMgd2hlbiBhdmFpbGFibGUuCiAgICAgICAgOygicHl0aG9uLXd4 cHl0aG9uIiAscHl0aG9uLXd4cHl0aG9uKQogICAgICAgIDsoInB5dGhvbi1weXF0IiAscHl0aG9u LXB5cXQpCi0gICAgICAgKSkKKyAgICAgICAoInRjbCIgLHRjbCkKKyAgICAgICAoInRrIiAsdGsp KSkKICAgICAobmF0aXZlLWlucHV0cwogICAgICBgKCgicGtnLWNvbmZpZyIgLHBrZy1jb25maWcp CiAgICAgICAgKCJ0ZXhsaXZlIiAsdGV4bGl2ZSkKQEAgLTMyNDMsOCArMzI0NSwxMyBAQCB0cmFu c2NlbmRlbnRhbCBmdW5jdGlvbnMpLiIpCiAgICAgICAgICAgICAoc2V0ZW52ICJIT01FIiAoZ2V0 Y3dkKSkKICAgICAgICAgICAgIChjYWxsLXdpdGgtb3V0cHV0LWZpbGUgInNldHVwLmNmZyIKICAg ICAgICAgICAgICAgKGxhbWJkYSAocG9ydCkKLSAgICAgICAgICAgICAgICAoZm9ybWF0IHBvcnQg IltyY19vcHRpb25zXX4lCi1iYWNrZW5kID0gR1RLM0FnZ34lIikpKSkpCisgICAgICAgICAgICAg ICAgKGZvcm1hdCBwb3J0ICJbZGlyZWN0b3JpZXNdfiUKK2Jhc2VkaXJsaXN0ID0gfmEsfmF+JQor fiUKK1tyY19vcHRpb25zXX4lCitiYWNrZW5kID0gVGtBZ2d+JSIKKyAgICAgICAgICAgICAgICAg ICAgICAgIChhc3NvYy1yZWYgaW5wdXRzICJ0Y2wiKQorICAgICAgICAgICAgICAgICAgICAgICAg KGFzc29jLXJlZiBpbnB1dHMgInRrIikpKSkpKQogICAgICAgICAoYWxpc3QtY29ucy1hZnRlcgog ICAgICAgICAgJ2luc3RhbGwgJ2luc3RhbGwtZG9jCiAgICAgICAgICAobGFtYmRhKiAoIzprZXkg b3V0cHV0cyAjOmFsbG93LW90aGVyLWtleXMpCg== --001a1143122a9111430525c4c663--