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

ImportError: No module named site #72

Closed
cmey opened this issue May 7, 2014 · 1 comment
Closed

ImportError: No module named site #72

cmey opened this issue May 7, 2014 · 1 comment

Comments

@cmey
Copy link

cmey commented May 7, 2014

Hi,
Reporting a crash during any call of a python function.
Config:

  • Win 7 64 bits
  • Julia Version 0.3.0-prerelease+2809 (2014-04-28 22:41 UTC) Commit d1095bb* (8 days old master) x86_64-w64-mingw32 (latest snapshot installer)
  • PyCall.jl version 0.4.2
  • Python version 2.7.6 from Enthought Canopy 64 bits (the only python installed on the machine) (comes with matplotlib and dependancies)

Steps to reproduce:

julia> using PyCall
julia> @pyimport math

Error message:
ImportError: No module named site

Other infos:

  • python works fine from within the Windows cmd:
C:\Users\cmey\Downloads\Julia 0.3.0-prerelease>python
Enthought Canopy Python 2.7.6 | 64-bit | (default, Apr 11 2014, 20:31:44) [MSC v
.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> from math import *
>>> sin(math.pi / 4) - sin(pi / 4)  # returns 0.0
0.0
  • I launch Julia from within the same Windows cmd as Python
  • PYTHONHOME and PYTHONPATH are unset

Might be related to #42, but my case differs at least at the OS level.

As a workaround, may I ask for a different and recomended python distribution that works with PyPlot on Win 7 64 ?

@stevengj
Copy link
Member

stevengj commented May 7, 2014

Seems like a duplicate of #42; PyCall doesn't work with Canopy on any platform currently, though the symptoms vary between Mac and Windows. I recommend using Anaconda rather than Canopy.

@stevengj stevengj closed this as completed May 7, 2014
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

2 participants