# What does a ReadOnlyMemoryError mean?

**URL:** <https://discourse.julialang.org/t/what-does-a-readonlymemoryerror-mean/84809>\
**Category:** General Usage\
**Tags:** pycall\
**Created:** [July 26, 2022, 10:45am UTC](https://discourse.julialang.org/t/what-does-a-readonlymemoryerror-mean/84809 "2022-07-26T10:45:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Impressium](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/impressium/32/19575_2.png) [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Post date:** [July 26, 2022, 10:45am UTC](https://discourse.julialang.org/t/what-does-a-readonlymemoryerror-mean/84809/1 "2022-07-26T10:45:59Z")

</div>

Hi all 🙂

I use `pycall` to get data from Snowflake. But sometimes I get a `ReadOnlyMemoryError` error. What does that mean and how to prevent it?

```julia
ReadOnlyMemoryError()
Stacktrace:
  [1] macro expansion
    @ C:\.julia\packages\PyCall\BD546\src\exception.jl:95 [inlined]
  [2] #107
    @ C:\.julia\packages\PyCall\BD546\src\pyfncall.jl:43 [inlined]
  [3] disable_sigint
    @ .\c.jl:458 [inlined]
  [4] __pycall!
    @ C:\.julia\packages\PyCall\BD546\src\pyfncall.jl:42 [inlined]
  [5] _pycall!(ret::PyCall.PyObject o::PyCall.PyObject args::Tuple{} nargs::Int64 kw::PyCall.PyObject)
    @ PyCall C:\.julia\packages\PyCall\BD546\src\pyfncall.jl:29
  [6] _pycall!
    @ C:\.julia\packages\PyCall\BD546\src\pyfncall.jl:11 [inlined]
  [7] (::PyCall.PyObject)(; kwargs::Base.Iterators.Pairs{Symbol String NTuple{5 Symbol} NamedTuple{(:user :password :account :warehouse :role) NTuple{5 String}}})
    @ PyCall C:\.julia\packages\PyCall\BD546\src\pyfncall.jl:86
  [8] receive(sql_command::String)
    @ Main.Snowflake \<user>\shared$\TrinityAPI\Ressource\Packages\julia\Snowflake\src\Snowflake.jl:26
  [9] get_NMS_symbol()
    @ Main.FillTimeDistribution.SnowflakeManager \<user>\shared$\TrinityAPI\Ressource\Projects\julia\fill_time_distribution\src\utils\snowflake_manager.jl:102
 [10] start(; is_failover::Bool)
    @ Main.FillTimeDistribution \<user>\shared$\TrinityAPI\Ressource\Projects\julia\fill_time_distribution\src\FillTimeDistribution.jl:20
 [11] top-level scope
    @ \<user>\shared$\TrinityAPI\Ressource\Projects\julia\fill_time_distribution\fill_time_distribution.jl:7
 [12] include(mod::Module _path::String)
    @ Base .\Base.jl:386
 [13] exec_options(opts::Base.JLOptions)
    @ Base .\client.jl:285
 [14] _start()
    @ Base .\client.jl:485

```

---

<div class="post-metadata">

**Author:** ![vettert](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vettert/32/30599_2.png) [@vettert](https://discourse.julialang.org/u/vettert)\
**Post date:** [July 26, 2022, 11:36am UTC](https://discourse.julialang.org/t/what-does-a-readonlymemoryerror-mean/84809/2 "2022-07-26T11:36:57Z")

</div>

I had that before when my hard disk was too full. Might have other reasons.
