# ERROR: LoadError: Python: IndexError: only integers, slices (\`:\`), ellipsis (\`...\`), numpy.newaxis (\`None\`) and integer or boolean arrays are valid indices

**URL:** https://discourse.julialang.org/t/error-loaderror-python-indexerror-only-integers-slices-ellipsis-numpy-newaxis-none-and-integer-or-boolean-arrays-are-valid-indices/117028
**Category:** General Usage
**Tags:** pythoncall
**Created:** [July 14, 2024, 12:07pm UTC](https://discourse.julialang.org/t/error-loaderror-python-indexerror-only-integers-slices-ellipsis-numpy-newaxis-none-and-integer-or-boolean-arrays-are-valid-indices/117028 "2024-07-14T12:07:07Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![cjdoris](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cjdoris/32/213133_2.png) [@cjdoris](https://discourse.julialang.org/u/cjdoris)
#### Post date: [July 14, 2024, 6:48pm UTC](https://discourse.julialang.org/t/error-loaderror-python-indexerror-only-integers-slices-ellipsis-numpy-newaxis-none-and-integer-or-boolean-arrays-are-valid-indices/117028/5 "2024-07-14T18:48:38Z")

</div>

The Julia `:` is not converted to anything very useful currently when passed to Python. You can get a Python `:` with `pyslice(nothing)`.

---

_[View the full topic](https://discourse.julialang.org/t/error-loaderror-python-indexerror-only-integers-slices-ellipsis-numpy-newaxis-none-and-integer-or-boolean-arrays-are-valid-indices/117028)._
