JuliaPy / JuliaPy/PyCall.jl

Pkg.build("PyCall"), json.decoder.JSONDecodeError: Extra data

Open
#1,057 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
1.5k
Forks
186
PR merge metrics
No merged PRs in 30d

Description

Hi everyone,

I am running Julia "v"1.9.3" (https://julialang-s3.julialang.org/bin/mac/aarch64/1.9/julia-1.9.3-macaarch64.dmg) on Apple M2 Max with Ventura 13.6.

The Python version on my laptop is Python 3.10.13 build with Anaconda.

I've got the following error when I tried to build "Pycall". Any idea about this?

`Pkg.build("PyCall")`
Building Conda ─→ `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/8c86e48c0db1564a1d49548d3515ced5d604c408/build.log`
Building PyCall → `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/43d304ac6f0354755f1d60730ece8c499980f7ba/build.log`
ERROR: Error building `PyCall`, showing the last 100 of log:
self.load()
File "~/.julia/conda/3/aarch64/lib/python3.10/site-packages/conda/core/subdir_data.py", line 264, in load
_internal_state = self._load()
File "~.julia/conda/3/aarch64/lib/python3.10/site-packages/conda/core/subdir_data.py", line 321, in _load
repodata, state = fetcher.fetch_latest_parsed()
File "~.julia/conda/3/aarch64/lib/python3.10/site-packages/conda/gateways/repodata/__init__.py", line 757, in fetch_latest_parsed
parsed, state = self.fetch_latest()
File "~/.julia/conda/3/aarch64/lib/python3.10/site-packages/conda/gateways/repodata/__init__.py", line 819, in fetch_latest
cache.load_state()
File "~/.julia/conda/3/aarch64/lib/python3.10/site-packages/conda/gateways/repodata/__init__.py", line 625, in load_state
self.load(state_only=True)
File "~/.julia/conda/3/aarch64/lib/python3.10/site-packages/conda/gateways/repodata/__init__.py", line 575, in load
state = json.loads(state_file.read())
File "~/.julia/conda/3/aarch64/lib/python3.10/json/__init__.py", line 346, in loads
return _default_decoder.decode(s)
File "~/.julia/conda/3/aarch64/lib/python3.10/json/decoder.py", line 340, in decode
raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 9 column 2 (char 292)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.