Comments (10)
Can you post the full code you are trying to run, and the full output you get?
from excelreaders.jl.
Sorry! I was out and I forgot to update you. I don't exactly know what I did, but it is working now.
Thnaks!
from excelreaders.jl.
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!
from excelreaders.jl.
@nixlehrer Could you run Pkg.test("ExcelReaders")
and paste the output here? If there is an error with that, could you please try this and report whether it works:
using PyCall
@pyimport math
math.sin(math.pi / 4) - sin(pi / 4)
from excelreaders.jl.
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.
from excelreaders.jl.
Ok, thanks!
from excelreaders.jl.
I have hit this problem today on Julia 1.0.2-pre.0 (2018-09-30).
data = openxl("run112+seq+psm.xlsx")
ArgumentError: ref of NULL PyObject
Stacktrace:
[1] getindex(::PyCall.PyObject, ::String) at /home/sh/.julia/packages/PyCall/0jMpb/src/PyCall.jl:284
[2] getindex at /home/sh/.julia/packages/PyCall/0jMpb/src/PyCall.jl:294 [inlined]
[3] openxl(::String) at /home/sh/.julia/packages/ExcelReaders/O29uZ/src/ExcelReaders.jl:64
[4] top-level scope at In[15]:1
(I'm running this from a Jupyter notebook.)
The sheets in this Excel file have long names with spaces; changing them the SheetN
does not help.
Trying to loading a specific sheet results in the same error:
data = readxlsheet("run112+seq+psm.xlsx", "Protein View")
It seems that ExcelReaders is installed correctly:
Pkg.test("ExcelReaders")
Testing ExcelReaders
Status `/tmp/tmpQBK8Si/Manifest.toml`
[34da2185] Compat v1.3.0
[8f4d0f93] Conda v1.1.1
... <omitted 28 lines>
[cf7118a7] UUIDs [`@stdlib/UUIDs`]
[4ec0a83e] Unicode [`@stdlib/Unicode`]
Test Summary: | Pass Total
ExcelReaders | 245 245
Testing ExcelReaders tests passed
Any idea how to get this to run? Anything else I could try?
Thanks!
from excelreaders.jl.
Hm, any chance you could share the original file? If you can't share it publicly, maybe you could email me a copy?
from excelreaders.jl.
I'll email you the file.
from excelreaders.jl.
Were you able to find anything?
from excelreaders.jl.
Related Issues (20)
- TagBot trigger issue HOT 1
- Reading from bytes / IOBuffer
- julia = "1.6" in toml? HOT 2
- Issue with "readxl" HOT 2
- Problem with missing values HOT 3
- Reading excel file: ArgumentError: ref of NULL PyObject HOT 2
- Empty cells in xls Julia showing as NA. Julia does not recognize this sign. HOT 3
- Error in kwfunc HOT 1
- Crash while precompiling, v0.7 mac HOT 2
- readxlsheet reads the empty cells as #NA HOT 6
- What to do about XLDateAmbiguous
- ExcelReaders: suggestion about adding a way to close an .xlsx file after opening it with “openxl”
- pycall api updates HOT 1
- ArgumentError: ref of NULL PyObject
- problem with instal on Julia 1.2 HOT 1
- xlrd not automatically installed HOT 3
- Mention XLSX.jl in Alternatives section in readme? HOT 1
- Support "A3:A" style references? HOT 1
- Reading sheets without column headings HOT 1
- xlrd 2.0.1 issues HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from excelreaders.jl.