GithubHelp home page GithubHelp logo

Comments (7)

sschelm avatar sschelm commented on July 23, 2024 1

I'm having huge troubles right now to get PyCall working with my system installs.
It therefore looks to me more like a setup and/or PyCall issue than a Queryverse or ExcelReader one.

I'm sticking to the Conda version for now.

from queryverse.jl.

sschelm avatar sschelm commented on July 23, 2024

The issue seems to come from the ExcelReaders package

julia> using ExcelReaders
INFO: Precompiling module ExcelReaders.
ImportError: No module named site
ERROR: Failed to precompile ExcelReaders to /Users/schelm/.julia/lib/v0.6/ExcelReaders.ji.
Stacktrace:
 [1] compilecache(::String) at ./loading.jl:710
 [2] _require(::Symbol) at ./loading.jl:497
 [3] require(::Symbol) at ./loading.jl:405

from queryverse.jl.

davidanthoff avatar davidanthoff commented on July 23, 2024

Hm... Does the PyCall package generally work on your system?

from queryverse.jl.

sschelm avatar sschelm commented on July 23, 2024

Yes, IJulia for example works fine.
Strange, now I'm just getting the ExcelReaders precompile LoadError but the shell doesn't crash anymore.

But I found the cause of the issue:
I changed the python exe to a system wide one.
I just switched back to the Conda default, rebuilt PyCall and voila: using Queryverse worked fine, no errors.

That other python version was 3.6.6, Condas default seems to be 2.7.
Just to be sure, I tested it with a system wide python version of 2.7.15
That didn't work either:

julia> using Queryverse
INFO: Precompiling module ExcelReaders.
ERROR: LoadError: InitError: 
signal (11): Segmentation fault: 11
while loading no file, in expression starting on line 0
PyObject_Call at /usr/lib/libpython2.7.dylib (unknown line)
macro expansion at /Users/schelm/.julia/v0.6/PyCall/src/exception.jl:81 [inlined]
__pycall! at /Users/schelm/.julia/v0.6/PyCall/src/pyfncall.jl:44
_pycall! at /Users/schelm/.julia/v0.6/PyCall/src/pyfncall.jl:29
unknown function (ip: 0x120953068)
...

It seems to me that there's something different between the Conda python version and other ones.
Any interest in the full error message for the system wide 2.7.15 test?

from queryverse.jl.

davidanthoff avatar davidanthoff commented on July 23, 2024

I think the issue is that you need the Python package xlrd installed. When you use a conda managed Python, that happens automatically, but with the system wide it probably doesn't. Could you try to install xlrd (via pip, I think) for the system wide Python and check whether that works?

from queryverse.jl.

sschelm avatar sschelm commented on July 23, 2024

The xlrd package was not installed on the system wide versions, as you guessed.
I installed it for both python 2.7.15 and 3.6.6 and verified the installations.

Unfortunately it didn't really help:
For the 2.7.15 version, I'm getting an init error due to a segfault.
Whereas for the 3.6.6, I'm getting the original error:

ImportError: No module named site
ERROR: LoadError: LoadError: Failed to precompile ExcelReaders to /Users/schelm/.julia/lib/v0.6/ExcelReaders.ji.

Both during precompile of the ExcelReaders.ji package.

Is there another py module that's needed for ExcelReaders?

from queryverse.jl.

sschelm avatar sschelm commented on July 23, 2024

Interesting.
When I check the packages in the Condo install with ./python pip freeze at ~/.julia/v0.6/Conda/deps/usr/bin, xlrd does not show up.

I'll have a look at the package diffs.

from queryverse.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.