-
Notifications
You must be signed in to change notification settings - Fork 20
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
Reading excel file: ArgumentError: ref of NULL PyObject #20
Comments
Can you post the full code you are trying to run, and the full output you get? |
Sorry! I was out and I forgot to update you. I don't exactly know what I did, but it is working now. |
I met the same problem like him. using ExcelReaders
data = readxl("/Users/neo/Documents/data.xlsx", "Sheet1!A1:C1572")
#=
LoadError: ArgumentError: ref of NULL PyObject
while loading In[19], in expression starting on line 2
in getindex at /Users/neo/.julia/v0.4/PyCall/src/PyCall.jl:264
in readxl at /Users/neo/.julia/v0.4/ExcelReaders/src/ExcelReaders.jl:152
=# Pkg.installed()
#=
Dict{ASCIIString,VersionNumber} with 48 entries:
"ExcelReaders" => v"0.4.1"
"ZMQ" => v"0.3.1"
"ArrayViews" => v"0.6.4"
"DataStructures" => v"0.4.4"
"Compat" => v"0.7.18"
"Calculus" => v"0.1.14"
"GZip" => v"0.2.18"
"Measures" => v"0.0.2"
"StatsFuns" => v"0.2.2"
"DataFrames" => v"0.7.2"
"Showoff" => v"0.0.7"
"Distributions" => v"0.8.10"
"FixedPointNumbers" => v"0.1.3"
"SHA" => v"0.1.2"
"DualNumbers" => v"0.2.2"
"KernelDensity" => v"0.1.2"
"Iterators" => v"0.1.9"
"ColorTypes" => v"0.2.2"
"Gadfly" => v"0.4.2"
"Dates" => v"0.4.4"
"Contour" => v"0.1.0"
"PDMats" => v"0.4.1"
"Optim" => v"0.4.5"
"SortingAlgorithms" => v"0.0.6"
"Conda" => v"0.2.0"
⋮ => ⋮
=# My julia version: ➜ ~ julia --version
julia version 0.4.5 Could you please help me? Thank you! |
@nixlehrer Could you run using PyCall
@pyimport math
math.sin(math.pi / 4) - sin(pi / 4) |
Thank you for your reply! julia> Pkg.test("ExcelReaders")
INFO: Testing ExcelReaders
INFO: Recompiling stale cache file /Users/neo/.julia/lib/v0.4/PyCall.ji for module PyCall.
INFO: Recompiling stale cache file /Users/neo/.julia/lib/v0.4/ExcelReaders.ji for module ExcelReaders.
INFO: ExcelReaders tests passed julia> using PyCall
julia> @pyimport math
julia> math.sin(math.pi / 4) - sin(pi / 4)
0.0 It's now working. It seems because that my sheet was not named by 'Sheet1' before I corrected it. |
Ok, thanks! |
I have hit this problem today on Julia 1.0.2-pre.0 (2018-09-30).
(I'm running this from a Jupyter notebook.) The sheets in this Excel file have long names with spaces; changing them the Trying to loading a specific sheet results in the same error: It seems that ExcelReaders is installed correctly:
Any idea how to get this to run? Anything else I could try? Thanks! |
Hm, any chance you could share the original file? If you can't share it publicly, maybe you could email me a copy? |
I'll email you the file. |
Were you able to find anything? |
Hi, I am new with Julia. I am trying with ExcelReaders but I get an error.
First, in order to use ExcelReaders I have to do:
ENV["PYTHON"]=""
Pkg.build("PyCall")
It seems to work, but when I try to read some excel file like data = readxl("File.xlsx", "Sheet1!A1:C4"), it gives the error ArgumentError: ref of NULL PyObject
I do not know what is it.
Thank you
The text was updated successfully, but these errors were encountered: