jverzani / PySide.jl

julia interface for accessing Qt via PyCall and PySide
MIT License
18 stars 6 forks source link

Install error? #3

Closed timholy closed 10 years ago

timholy commented 10 years ago
julia> include("pyqtgraph.jl")
ERROR: PyError (PyImport_ImportModule) <type 'exceptions.ImportError'>
ImportError('No module named pyqtgraph',)

 in pyerr_check at /home/tim/.julia/PyCall/src/exception.jl:58
 in pyimport at /home/tim/.julia/PyCall/src/PyCall.jl:85
 in include at boot.jl:238
at /home/tim/.julia/PySide/src/pyqtgraph.jl:643
at /home/tim/.julia/PySide/src/PySide.jl:31
at /home/tim/.julia/PySide/examples/pyqtgraph.jl:5

I installed PySide following the "Ubuntu" instructions here. Any tips about what I may be missing?

jverzani commented 10 years ago

You need to install pyqtgraph as a python package: http://www.pyqtgraph.org/ I'm pretty sure it was painless, but forget the details.

jverzani commented 10 years ago

Okay, master should work now to get through most of the pyqtgraph demos.

timholy commented 10 years ago

Definitely this fixed this original problem. Here's the current error:

julia> include("pyqtgraph.jl")
Warning: New definition 
    setindex!(GridLayout,QtLayout,Union(Range1{T<:Real},Range{T<:Real},Int64),Union(Range1{T<:Real},Range{T<:Real},Int64)) at /home/tim/.julia/PySide/src/qtextras.jl:256
is ambiguous with 
    setindex!(GridLayout,Union(PyObject,QtWidget),Union(Range1{T<:Real},Range{T<:Real},Int64),Union(Range1{T<:Real},Range{T<:Real},Int64)) at /home/tim/.julia/PySide/src/qtextras.jl:244.
Make sure 
    setindex!(GridLayout,QtLayout,Union(Range1{T<:Real},Range{T<:Real},Int64),Union(Range1{T<:Real},Range{T<:Real},Int64))
is defined first.
Warning: imported binding for transpose overwritten in module __anon__
WARNING: min(x) is deprecated, use minimum(x) instead.
ERROR: type PyObject has no field QTimer
 in include at boot.jl:238
at /home/tim/.julia/PySide/examples/pyqtgraph.jl:67
jverzani commented 10 years ago

This should be fixed now. Thanks.

timholy commented 10 years ago

That's awesome. Now I can try to learn more about out how it works...thanks!