iPython issues with EPD 6.2

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

iPython issues with EPD 6.2

mike tallhamer
Ok upon further investigation I find that I don't have issues with chaco
and iPython as long as I exclude the -pylab option. I can't explain why
this doesn't work on this setup and works fine on my other machines. Any
thoughts?

-Mike

_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: iPython issues with EPD 6.2

Tony S Yu

On Jul 3, 2010, at 7:11 PM, mike tallhamer wrote:

> Ok upon further investigation I find that I don't have issues with chaco
> and iPython as long as I exclude the -pylab option. I can't explain why
> this doesn't work on this setup and works fine on my other machines. Any
> thoughts?
>
> -Mike

I think I've had a related issue cause problems. Basically, whenever I run chaco and matplotlib together, I run into problems. (I never intentionally run them together, but I have a lot of utility modules that define matplotlib tools that get imported unintentionally---i.e. I need to refactor my code.) Anyway, since -pylab imports matplotlib, I'll bet this is the same problem.

Unfortunately, I've never figured out a simple way to reproduce the error. For example, the code below will segfault, but not consistently. Sometimes I get an error that Python itself crashed, while at other times I get an error that it crashed while using _path.so (a compiled module in matplotlib). Since the errors seem to be happening in C code, I've never been able to track down the problem. I just know to avoid importing matplotlib and chaco together.

Best,
-Tony


#~~~

import matplotlib.pyplot as plt

import enthought.traits.api as traits
import enthought.traits.ui.api as ui
import enthought.chaco.api as chaco
from enthought.enable.component_editor import ComponentEditor


class LinePlot(traits.HasTraits):
    plot = traits.Instance(chaco.Plot)
    traits_view = ui.View(
        ui.Item('plot', editor=ComponentEditor()),
                width=500, height=500, resizable=True)

    def __init__(self):
        plotdata = chaco.ArrayPlotData(x=[1,2,3], y=[1,2,3])
        self.plot = chaco.Plot(plotdata)
        self.plot.plot(('x', 'y'))

viewer = LinePlot()
viewer.configure_traits()
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Jed
Reply | Threaded
Open this post in threaded view
|

Re: iPython issues with EPD 6.2

Jed
On Sun, 04 Jul 2010 08:59:05 -0600, Tony S Yu <[hidden email]> wrote:

>
> On Jul 3, 2010, at 7:11 PM, mike tallhamer wrote:
>
>> Ok upon further investigation I find that I don't have issues with chaco
>> and iPython as long as I exclude the -pylab option. I can't explain why
>> this doesn't work on this setup and works fine on my other machines. Any
>> thoughts?
>>
>> -Mike
>
> I think I've had a related issue cause problems. Basically, whenever I  
> run chaco and matplotlib together, I run into problems. (I never  
> intentionally run them together, but I have a lot of utility modules  
> that define matplotlib tools that get imported unintentionally---i.e. I  
> need to refactor my code.) Anyway, since -pylab imports matplotlib, I'll  
> bet this is the same problem.

I think I ran into a similar issue a couple of days ago. An old data  
analysis script with 2 functions, one that generates 3D plots with Mayavi  
and another that generates 2D plots with Matplotlib was seg faulting. This  
script worked when I originally wrote it in August 2009. I couldn't tell  
you what software versions I had at that time but currently I have the  
packages from Debian Testing: Python 2.6.5, Matplotlib 0.99.3, Traits  
3.4.0, Mayavi 3.3.2.

Cheers,

--
Jed Frechette

Lidar Guys
Mobile: 505-280-1340
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: iPython issues with EPD 6.2

mike tallhamer
What OSs are you guys using? Over the weekend I tried this using the
same EPD (6.2.2) release on my Mac and on an old Windows machine I
still had and both ran the Chaco scripts just fine under iPtyhon
started with -pylab and -wthread.

Mike

On 7/5/10, Jed Frechette <[hidden email]> wrote:

> On Sun, 04 Jul 2010 08:59:05 -0600, Tony S Yu <[hidden email]> wrote:
>
>>
>> On Jul 3, 2010, at 7:11 PM, mike tallhamer wrote:
>>
>>> Ok upon further investigation I find that I don't have issues with chaco
>>> and iPython as long as I exclude the -pylab option. I can't explain why
>>> this doesn't work on this setup and works fine on my other machines. Any
>>> thoughts?
>>>
>>> -Mike
>>
>> I think I've had a related issue cause problems. Basically, whenever I
>> run chaco and matplotlib together, I run into problems. (I never
>> intentionally run them together, but I have a lot of utility modules
>> that define matplotlib tools that get imported unintentionally---i.e. I
>> need to refactor my code.) Anyway, since -pylab imports matplotlib, I'll
>> bet this is the same problem.
>
> I think I ran into a similar issue a couple of days ago. An old data
> analysis script with 2 functions, one that generates 3D plots with Mayavi
> and another that generates 2D plots with Matplotlib was seg faulting. This
> script worked when I originally wrote it in August 2009. I couldn't tell
> you what software versions I had at that time but currently I have the
> packages from Debian Testing: Python 2.6.5, Matplotlib 0.99.3, Traits
> 3.4.0, Mayavi 3.3.2.
>
> Cheers,
>
> --
> Jed Frechette
>
> Lidar Guys
> Mobile: 505-280-1340
> _______________________________________________
> Enthought-Dev mailing list
> [hidden email]
> https://mail.enthought.com/mailman/listinfo/enthought-dev
>

--
Sent from my mobile device
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: iPython issues with EPD 6.2

Tony S Yu

On Jul 5, 2010, at 12:53 PM, Michael Tallhamer wrote:

> What OSs are you guys using? Over the weekend I tried this using the
> same EPD (6.2.2) release on my Mac and on an old Windows machine I
> still had and both ran the Chaco scripts just fine under iPtyhon
> started with -pylab and -wthread.
>
> Mike

I'm on OSX 10.6 (I believe I ran into the same problems with 10.5), but I don't use EPD. I run Python 2.6.1 and trunk versions of Matplotlib, Traits, and Chaco.
-Tony

> On 7/5/10, Jed Frechette <[hidden email]> wrote:
>> On Sun, 04 Jul 2010 08:59:05 -0600, Tony S Yu <[hidden email]> wrote:
>>
>>>
>>> On Jul 3, 2010, at 7:11 PM, mike tallhamer wrote:
>>>
>>>> Ok upon further investigation I find that I don't have issues with chaco
>>>> and iPython as long as I exclude the -pylab option. I can't explain why
>>>> this doesn't work on this setup and works fine on my other machines. Any
>>>> thoughts?
>>>>
>>>> -Mike
>>>
>>> I think I've had a related issue cause problems. Basically, whenever I
>>> run chaco and matplotlib together, I run into problems. (I never
>>> intentionally run them together, but I have a lot of utility modules
>>> that define matplotlib tools that get imported unintentionally---i.e. I
>>> need to refactor my code.) Anyway, since -pylab imports matplotlib, I'll
>>> bet this is the same problem.
>>
>> I think I ran into a similar issue a couple of days ago. An old data
>> analysis script with 2 functions, one that generates 3D plots with Mayavi
>> and another that generates 2D plots with Matplotlib was seg faulting. This
>> script worked when I originally wrote it in August 2009. I couldn't tell
>> you what software versions I had at that time but currently I have the
>> packages from Debian Testing: Python 2.6.5, Matplotlib 0.99.3, Traits
>> 3.4.0, Mayavi 3.3.2.
>>
>> Cheers,
>>
>> --
>> Jed Frechette
>>
>> Lidar Guys
>> Mobile: 505-280-1340
>> _______________________________________________
>> Enthought-Dev mailing list
>> [hidden email]
>> https://mail.enthought.com/mailman/listinfo/enthought-dev
>>
>
> --
> Sent from my mobile device
> _______________________________________________
> Enthought-Dev mailing list
> [hidden email]
> https://mail.enthought.com/mailman/listinfo/enthought-dev

_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev