JuliaPy / PyCall.jl

Package to call Python functions from the Julia language
MIT License
1.47k stars 187 forks source link

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

Open xiang-yu opened 11 months ago

xiang-yu commented 11 months ago

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)