Open sam81 opened 10 years ago
@sam81 Thanks for the report. Can you see if this call works with python 3:
PyCall.pyeval("execfile(x, globals())", x = Pkg.dir("PySide", "tpl", "imports.tpl"))
For some reason (long forgotten) I added this code to get it to work under python 3
PyCall.pyeval("exec(open(x, 'rb'), globals())", x = Pkg.dir("PySide", "tpl", "imports.tpl"))
but it is now failing as exec wants only 1 argument.
https://github.com/jverzani/PySide.jl/issues/9
PyCall.pyeval("exec(open(x, 'rb').read(), globals())", x = Pkg.dir("PySide", "tpl", "imports.tpl"))
You forgot the .read()
...
Thanks. Just pushed that change to the master on github.
On Tue, Jul 8, 2014 at 2:28 PM, Oleh Prypin notifications@github.com wrote:
PyCall.pyeval("exec(open(x, 'rb').read(), globals())", x = Pkg.dir("PySide", "tpl", "imports.tpl"))
You forgot the .read()...
— Reply to this email directly or view it on GitHub https://github.com/jverzani/PySide.jl/issues/10#issuecomment-48380330.
John Verzani Chair, Department of Mathematics College of Staten Island, CUNY verzani@math.csi.cuny.edu
Thanks, I can confirm that the fix pushed on the master branch works.
Thanks again!
On Tue, Jul 8, 2014 at 3:11 PM, Samuele Carcagno notifications@github.com wrote:
Thanks, I can confirm that the fix pushed on the master branch works.
— Reply to this email directly or view it on GitHub https://github.com/jverzani/PySide.jl/issues/10#issuecomment-48386271.
John Verzani Chair, Department of Mathematics College of Staten Island, CUNY verzani@math.csi.cuny.edu
I'm unable to load PySide when I initialize
PyCall
withpython3
as follows: