You are not logged in.

#1 2012-11-12 15:49:50

freevryheid
Member
Registered: 2010-09-14
Posts: 15

python2-matplotlib

After the latest update (version 1.2.0-2) i can no longer embed in tk -

ImportError: cannot import name _tkagg

Last edited by freevryheid (2012-11-14 16:30:11)

Offline

#2 2012-11-12 19:53:31

firippusan
Member
Registered: 2012-10-13
Posts: 17

Re: python2-matplotlib

I get an "error file not found: pylab" error after the same update.

Offline

#3 2012-11-14 08:39:42

FreeTheBee
Member
Registered: 2011-01-02
Posts: 125

Re: python2-matplotlib

I noticed the same _tkagg problem on two pc's, also other backends don't work. The problem also occurs for both python-matplotlib and python2-matplotlib, but python-matplotlib-git from the AUR does work.
I was planning to file a bug report, but it slipped my mind.

Offline

#4 2012-11-14 10:41:21

FreeTheBee
Member
Registered: 2011-01-02
Posts: 125

Re: python2-matplotlib

Offline

#5 2012-11-14 12:13:09

Runiq
Member
From: Germany
Registered: 2008-10-29
Posts: 1,053

Re: python2-matplotlib

firippusan wrote:

I get an "error file not found: pylab" error after the same update.

Pylab has been deprecated, I believe – the correct way to get at the pyplot and numpy namespaces is to import them explicitly:

import matplotlib.pyplot as plt
import numpy as np

Offline

#6 2012-11-14 13:17:46

FreeTheBee
Member
Registered: 2011-01-02
Posts: 125

Re: python2-matplotlib

Explicitly importing pyplot gives the same problem.

Offline

#7 2012-11-15 07:37:37

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 6,887

Re: python2-matplotlib

If the latest -git works, issue is upstream (and has been fixed), don't you think?


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#8 2012-11-15 12:58:45

FreeTheBee
Member
Registered: 2011-01-02
Posts: 125

Re: python2-matplotlib

Seems so, if it was ever a bug upstream. Couldn't it be a packaging problem? Regardless the origin the arch package is still broken, so a bug report at the arch bug tracker should be useful right?

Offline

#9 2012-11-15 17:29:08

freevryheid
Member
Registered: 2010-09-14
Posts: 15

Re: python2-matplotlib

python2-matplotlib-noqt in AUR is another option.

Offline

#10 2012-11-15 23:34:29

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 6,887

Re: python2-matplotlib

FreeTheBee wrote:

Seems so, if it was ever a bug upstream. Couldn't it be a packaging problem? Regardless the origin the arch package is still broken, so a bug report at the arch bug tracker should be useful right?

If its a packaging problem that should be easily verified by you (compare the build steps on the -git PKGBUILD with the steps used in the Arch PKGBUILD). Then you'll know which bug tracker to use.

Much less effort overall spent that way, since the maintainer probably doesn't use the package the way you do (hence would have to take additional steps just to trigger the bug). I use python2-matplotlib and its been fine for me, for example.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#11 2012-11-19 20:32:33

FreeTheBee
Member
Registered: 2011-01-02
Posts: 125

Re: python2-matplotlib

I looked at the abs and found that the source of the issue lies in setup.cfg. Under the header [gui_support] it says,

gtk = False
gtkagg = False
tkagg = False
wxagg = False
macosx = False

Commenting these lines or deleting them sets the default option of 'auto' for these settings. This lets matplotlib build the gui extensions if dependencies are met, otherwise they are silently ignored. This is also what is used for the git version on the AUR. Commenting these lines fixed the issue for me. I posted this in the bug report as well.

Last edited by FreeTheBee (2012-11-19 20:32:54)

Offline

Board footer

Powered by FluxBB