Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

better error message for loading 32-bit Python from 64-bit Julia #148

Open
breisfeld opened this issue May 26, 2015 · 6 comments
Open

better error message for loading 32-bit Python from 64-bit Julia #148

breisfeld opened this issue May 26, 2015 · 6 comments

Comments

@breisfeld
Copy link

Executing

> using PyCall
> @pyimport math

within the Julia console interpreter crashes it immediately (i.e., makes the console quit and disappear immediately with no time to see any warnings or error messages).

Relevant software versions:

  • OS: Windows 7
  • julia: Version 0.3.8 (2015-04-30 23:40 UTC), x86_64-w64-mingw32
  • PyCall: v0.8.1
  • Python: Python 2.7.8 |Anaconda 2.1.0 (32-bit)| (default, Jul 2 2014, 15:13:35) [MSC v.1500 32 bit (Intel)] on win32
@ihnorton
Copy link
Member

32-bit Python will not work with 64-bit Julia.

On Tue, May 26, 2015 at 11:18 AM, Brad Reisfeld [email protected]
wrote:

Executing

using PyCall
@pyimport math

within the Julia console interpreter crashes it immediately (i.e., makes
the console quit and disappear immediately with no time to see any warnings
or error messages).

Relevant software versions:

  • OS: Windows 7
  • julia: Version 0.3.8 (2015-04-30 23:40 UTC), x86_64-w64-mingw32
  • PyCall: v0.8.1
  • Python: Python 2.7.8 |Anaconda 2.1.0 (32-bit)| (default, Jul 2 2014,
    15:13:35) [MSC v.1500 32 bit (Intel)] on win32


Reply to this email directly or view it on GitHub
#148.

@breisfeld
Copy link
Author

Thank you for the information.
Will 32-bit Julia work with 32-bit Python?

@stevengj
Copy link
Member

Yes, 32-bit Julia should workd with 32-bit Python.

It would be good to give a better error message than a crash here. Ideally, this would be fixed in the Julia dlopen function.

@stevengj stevengj changed the title crash of Julia console repl on Windows better error message for loading 32-bit Python from 64-bit Julia May 26, 2015
@yuyichao
Copy link
Collaborator

I think this is windows specific. I override dlopen_libpython to only find the lib32 version and PyCall.jl refuses to load it (as it should).

dhoegh pushed a commit to dhoegh/PyCall.jl that referenced this issue Sep 21, 2015
Fix some deprecation warnings and white spaces.
@PallHaraldsson
Copy link
Contributor

@yuyichao "I think this is windows specific." Should this be marked "up for grabs"? It seems this might be easy if not already done and overlooked to close.. [I assume reading between the lines not a problem elsewhere.]

@ihnorton "32-bit Python will not work with 64-bit Julia." I do not expect it to work and, imagine it would be a lot of work if at all possible..

@stevengj
Copy link
Member

stevengj commented May 26, 2016

I still think the Julia dlopen function on Windows should be fixed to refuse to load a DLL with the wrong word size, rather than crashing, if that is still happening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants