Yes Jake, I was able to import only the first i.e., wxagg backend. The
other two did not because it says I have to install pygtk and pyqt.

Here's the message:
>>> from matplotlib.backends import backend_wxagg
>>> from matplotlib.backends import backend_gtkagg
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File
"C:\Python27\lib\site-packages\matplotlib\backends\backend_gtkagg.py", line
10, in <module>
    from matplotlib.backends.backend_gtk import gtk, FigureManagerGTK,
FigureCanvasGTK,\
  File "C:\Python27\lib\site-packages\matplotlib\backends\backend_gtk.py",
line 11, in <module>
    raise ImportError("Gtk* backend requires pygtk to be installed.")
ImportError: Gtk* backend requires pygtk to be installed.
>>> from matplotlib.backends import backend_qtagg
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File
"C:\Python27\lib\site-packages\matplotlib\backends\backend_qtagg.py", line
12, in <module>
    from backend_qt import qt, FigureManagerQT, FigureCanvasQT,\
  File "C:\Python27\lib\site-packages\matplotlib\backends\backend_qt.py",
line 21, in <module>
    raise ImportError("Qt backend requires pyqt to be installed.")
ImportError: Qt backend requires pyqt to be installed.



Also I must mention one fact. When I tried ipython --pylab in my first
python install, the DOS shell would not recognize ipython as a command. I
was then asked to place the ipython batch file in the Scripts folder in the
main Python2.7 directory.
And then I was asked to set the environment variable for that directory.
I am now able to run ipython --pylab from dos shell. Therefore, as a test I
made a copy of ipython bat file and placed it in the main Python2.7 folder
which also has python executable and erased the environment variable
linking to the script file and then ran Julia. But error messages are the
same i.e., Julia still gives the same error as in my post.

Thank you for looking into this.



On Fri, Jan 24, 2014 at 12:51 PM, Jake Bolewski <jakebolew...@gmail.com>wrote:

> Are you able to import any of the following from python?
>
> from matplotlib.backends import backend_wxagg
> from matplotlib.backends import backend_gtkagg
> from matplotlib.backends import backend_qtagg
>
> -Jake
>
>
>
> On Friday, January 24, 2014 12:35:12 PM UTC-5, Rajn wrote:
>>
>> Hi Thanks Steve,
>>
>> This is how far I got after making the following changes:
>> changed PYTHONPATH to C:\Python27
>>
>> and in PyCall.jl
>> ENV["PYTHONHOME"]=exec_prefix
>>
>> using PyCall gives me this error now
>>
>>
>> julia> using PyPlot
>> WARNING: No working GUI backend found for matplotlib.
>> ERROR: PyError (PyImport_ImportModule) <type 'exceptions.ImportError'>
>> ImportError('DLL load failed: The specified module could not be found.',)
>>   File "C:\Python27\lib\site-packages\matplotlib\pyplot.py", line 23, in
>> <module
>> >
>>     from matplotlib.figure import Figure, figaspect
>>   File "C:\Python27\lib\site-packages\matplotlib\figure.py", line 16, in
>> <module
>> >
>>     import artist
>>   File "C:\Python27\lib\site-packages\matplotlib\artist.py", line 6, in
>> <module>
>>
>>     from transforms import Bbox, IdentityTransform, TransformedBbox,
>> Transformed
>> Path
>>   File "C:\Python27\lib\site-packages\matplotlib\transforms.py", line
>> 34, in <mo
>> dule>
>>     from matplotlib._path import affine_transform
>>
>> at C:\Users\RGurjar\.julia\PyPlot\src\PyPlot.jl:94
>>
>> Do you think I am a step closer or just take your suggestion and move on
>> to Anaconda. Do I have to uninstall Enthought edition?
>>
>>
>>
>> On Thursday, January 23, 2014 6:38:08 PM UTC-5, Steven G. Johnson wrote:
>>>
>>> On Thursday, January 23, 2014 3:30:00 PM UTC-5, Rajn wrote:
>>>>
>>>> I will appreciate some help here. And also I have only one python
>>>> installation which is the Enthought edition.
>>>> Also a related question, if I change something in *.jl such as what I
>>>> changed above, I read that I have do reverse git. I have no idea what that
>>>> is.
>>>> Really I am quite fresh to this. So please can someone guide me here?
>>>>
>>>
>>> PyCall doesn't work with Enthought Python:
>>>
>>>     https://github.com/stevengj/PyCall.jl/issues/42
>>>
>>> Last I checked, it was because their sysutils.distconfig is completely
>>> broken, and I hadn't found a clean workaround.  I recommend Anaconda Python
>>> if you want a prepackaged Python distro.
>>>
>>

Reply via email to