JuliaPy / PyCall.jl

Package to call Python functions from the Julia language
MIT License
1.47k stars 187 forks source link

using Pycall fails with pyjlwrap_hash error on julia-0.4rc+65 with Anaconda 2.7 on OS X #192

Closed mkborregaard closed 9 years ago

mkborregaard commented 9 years ago

When I try using PyCall i get the error message

ERROR: InitError: cfunction: return type of pyjlwrap_hash does not match
 in __init__ at /Users/michael/.julia/v0.4/PyCall/src/pyinit.jl:108
 in _require_from_serialized at loading.jl:84
 in _require_from_serialized at /usr/local/lib/julia/sys.dylib
 in require at /usr/local/lib/julia/sys.dylib
during initialization of module PyCall

output of versioninfo(true)

Julia Version 0.4.0-rc1+65
Commit 89b944e (2015-09-16 03:59 UTC)
Platform Info:
  System: Darwin (x86_64-apple-darwin14.5.0)
  CPU: Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz
  WORD_SIZE: 64
  uname: Darwin 14.5.0 Darwin Kernel Version 14.5.0: Wed Jul 29 02:26:53 PDT 2015; root:xnu-2782.40.9~1/RELEASE_X86_64 x86_64 i386
Memory: 16.0 GB (5119.71875 MB free)
Uptime: 7523.0 sec
Load Avg:  1.74169921875  1.72607421875  1.70361328125
Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz:
       speed         user         nice          sys         idle          irq
#1  3100 MHz       9991 s          0 s      11390 s      44687 s          0 s
#2  3100 MHz       3386 s          0 s       2187 s      60487 s          0 s
#3  3100 MHz       9247 s          0 s       7798 s      49015 s          0 s
#4  3100 MHz       3652 s          0 s       2106 s      60302 s          0 s

  BLAS: libopenblas (USE64BITINT NO_AFFINITY NEHALEM)
  LAPACK: libopenblas
  LIBM: libopenlibm
  LLVM: libLLVM-3.3
Environment:
  TERM = xterm-256color
  PATH = /Users/michael/.julia/v0.4/Homebrew/deps/usr/Cellar/imagemagick/6.8.9-1_1/bin:/Users/michael/.julia/v0.4/Homebrew/deps/usr/Cellar/imagemagick/6.8.9-1_1/bin:/Users/michael/.julia/v0.4/Homebrew/deps/usr/Cellar/imagemagick/6.8.9-1_1/bin:/Users/michael/.julia/v0.4/Homebrew/deps/usr/Cellar/imagemagick/6.8.9-1_1/bin:/Users/michael/.julia/v0.4/Homebrew/deps/usr/Cellar/imagemagick/6.8.9-1_1/bin:/Users/michael/.julia/v0.4/Homebrew/deps/usr/bin:/Users/michael/.julia/v0.4/Homebrew/deps/usr/sbin:/Users/michael/anaconda/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/texbin
  XPC_FLAGS = 0x0
  HOME = /Users/michael
  HOMEBREW_CACHE = /Users/michael/Library/Caches/Homebrew.jl/
  MAGICK_CONFIGURE_PATH = /Users/michael/.julia/v0.4/Homebrew/deps/usr/Cellar/imagemagick/6.8.9-1_1/lib/ImageMagick/config-Q16
  MAGICK_CODER_MODULE_PATH = /Users/michael/.julia/v0.4/Homebrew/deps/usr/Cellar/imagemagick/6.8.9-1_1/lib/ImageMagick/modules-Q16/coders

Package Directory: /Users/michael/.julia/v0.4
36 required packages:
 - Atom                          0.1.1
 - Bootstrap                     0.3.2
 - Cairo                         0.2.30
 - Color                         0.4.8
 - ColorBrewer                   0.2.1
 - Colors                        0.5.3
 - Compose                       0.3.15
 - DataFrames                    0.6.9
 - DataStructures                0.3.12
 - Dates                         0.4.4
 - Distance                      0.5.1
 - Distributions                 0.8.6
 - EcologicalNetwork             1.0.1
 - FactCheck                     0.4.0
 - FunctionalData                0.0.15
 - GLM                           0.4.7
 - GLPlot                        0.0.5
 - Gadfly                        0.3.16
 - GeoInterface                  0.0.1
 - Geodesy                       0.0.1
 - GreatCircle                   0.0.1
 - IJulia                        1.0.3
 - ImageView                     0.1.16
 - Images                        0.4.46
 - NamedArrays                   0.4.4
 - OpenStreetMap                 0.8.1
 - Pandas                        0.2.0
 - Phylogenetics                 0.0.2
 - PyPlot                        2.1.0
 - RCall                         0.2.1
 - RDatasets                     0.1.2
 - SFML                          0.0.9
 - Shapefile                     0.0.3
 - Stats                         0.1.0
 - TestImages                    0.0.8
 - Yeppp                         0.0.8
73 additional packages:
 - ArrayViews                    0.6.3
 - BinDeps                       0.3.15
 - Bio                           0.0.0-             Ward9250PhyloV1 (unregistered)
 - Calculus                      0.1.10
 - CodeTools                     0.1.0
 - Codecs                        0.1.4
 - ColorTypes                    0.1.4
 - ColorVectorSpace              0.0.3
 - Compat                        0.7.0
 - Contour                       0.0.7
 - DataArrays                    0.2.18
 - Distances                     0.2.0
 - Docile                        0.5.18
 - DualNumbers                   0.1.3
 - FixedPointNumbers             0.0.10
 - GLAbstraction                 0.0.5
 - GLFW                          1.0.0-alpha.7
 - GLText                        0.0.4
 - GLWindow                      0.0.5
 - GZip                          0.2.17
 - Graphics                      0.1.3
 - Graphs                        0.5.6
 - Grid                          0.3.10
 - Hexagons                      0.0.4
 - Hiccup                        0.0.1
 - Homebrew                      0.1.16
 - HttpCommon                    0.2.3
 - ImmutableArrays               0.0.10
 - IniFile                       0.2.4
 - IntervalTrees                 0.0.4
 - Iterators                     0.1.8
 - JSON                          0.4.5
 - JuliaParser                   0.6.2+             master
 - KernelDensity                 0.1.1
 - LNR                           0.0.1
 - LaTeXStrings                  0.1.4
 - Lazy                          0.10.0
 - Lexicon                       0.1.15
 - LibExpat                      0.0.8
 - LightXML                      0.2.0
 - Loess                         0.0.4
 - Logging                       0.1.1
 - Lumberjack                    1.0.0
 - MacroTools                    0.2.0
 - Media                         0.1.1
 - ModernGL                      0.0.5
 - Mustache                      0.0.12
 - NaNMath                       0.1.0
 - Nettle                        0.1.10
 - NumericFuns                   0.2.3
 - Optim                         0.4.2
 - PDMats                        0.3.5
 - PyCall                        1.0.0              master
 - Quaternions                   0.0.4
 - Reactive                      0.2.2
 - Reexport                      0.0.3
 - Requires                      0.2.0
 - SHA                           0.1.1
 - SIUnits                       0.0.5
 - Showoff                       0.0.5
 - SortingAlgorithms             0.0.5
 - StatsBase                     0.7.2
 - StatsFuns                     0.1.3
 - Switch                        0.0.1
 - TexExtensions                 0.0.2
 - Tk                            0.3.6
 - URIParser                     0.1.0
 - UUID                          0.1.0
 - Winston                       0.11.12
 - WoodburyMatrices              0.1.1
 - ZMQ                           0.2.0
 - ZipFile                       0.2.4
 - Zlib                          0.1.9
stevengj commented 9 years ago

Dup of #193. I haven't been able to reproduce this yet, even though I am also using OSX.