Open simone-fdr opened 1 week ago
We are sorry for the inconvenience. On my MacBook (Sonoma), I got a similar error
error libmamba Could not solve for environment specs
The following packages are incompatible
├─ openssl >=1.1,<1.1.24 is requested and can be installed;
└─ openssl >=3,<3.1 is not installable because it conflicts with any installable versions previously reported.
critical libmamba Could not solve for environment specs
ERROR: LoadError: InitError: failed process: Process(`/Users/hiroshi/.julia/artifacts/98aba21a6802e06a5d2e7c48633d7dc1c3d4a749/bin/micromamba -r /Users/hiroshi/.julia/scratchspaces/0b3b1443-0f03-428d-bdfb-f27f9c1191ea/root install -y -p /Users/hiroshi/git/T4AJuliaTutorials/.CondaPkg/env --override-channels --no-channel-priority "jupyter-book[version='*']" "jupytext[version='>=1.16']" "matplotlib[version='>=1']" "openssl[version='>=3, <3.1']" "openssl[version='>=1.1, <1.1.24']" "python[version='>=3.8,<4',channel='conda-forge',build='*cpython*']" "python[version='>=3.11,<3.12']" -c conda-forge`, ProcessExited(1)) [1]
This dependence on conda
, which is required for plotting using PythonPlot.jl
, is very annoying. We are now removing the dependence by switching to pure Julia plotting libraries.
Could you try the following commands?
$ make clean
$ rm Manifest.toml
$ make
On GitHub Action, we could see the expected result:
https://github.com/tensor4all/T4AJuliaTutorials/actions/runs/10711417889/job/29700077099#step:8:284
https://github.com/tensor4all/T4AJuliaTutorials/pull/35 is merged on main. Could you do git pull and build book again?
@terasakisatoshi Thank you for the update. I still face the same problem....
hiroshi@MBA15 T4AJuliaTutorials % make
julia --project scripts/setup.jl
Added `General` registry to ~/.julia/registries
Building Conda ─→ `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/b19db3927f0db4151cb86d073689f2428e524576/build.log`
Building IJulia → `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/1702f79fa30f56b68d5b2fd6fb3a9a14ff6f9130/build.log`
julia --project scripts/jupytext.jl compress.jl index.jl interfacingwithitensors.jl plots.jl qft.jl quantics1d.jl quantics1d_advanced.jl quantics2d.jl
CondaPkg Found dependencies: /Users/hiroshi/Downloads/T4AJuliaTutorials/CondaPkg.toml
CondaPkg Found dependencies: /Users/hiroshi/.julia/packages/PythonCall/Nr75f/CondaPkg.toml
CondaPkg Found dependencies: /Users/hiroshi/.julia/packages/PythonCall/flx5V/CondaPkg.toml
CondaPkg Found dependencies: /Users/hiroshi/.julia/packages/PythonPlot/469aA/CondaPkg.toml
CondaPkg Resolving changes
+ jupyter-book
+ jupytext
+ matplotlib
+ openssl
+ python
CondaPkg Creating environment
│ /Users/hiroshi/.julia/artifacts/98aba21a6802e06a5d2e7c48633d7dc1c3d4a749/bin/micromamba
│ -r /Users/hiroshi/.julia/scratchspaces/0b3b1443-0f03-428d-bdfb-f27f9c1191ea/root
│ create
│ -y
│ -p /Users/hiroshi/Downloads/T4AJuliaTutorials/.CondaPkg/env
│ --override-channels
│ --no-channel-priority
│ jupyter-book[version='*']
│ jupytext[version='>=1.16']
│ matplotlib[version='>=1']
│ openssl[version='>=3, <3.1']
│ openssl[version='>=1.1, <1.1.24']
│ python[version='>=3.8,<4',channel='conda-forge',build='*cpython*']
│ python[version='>=3.11,<3.12']
└ -c conda-forge
conda-forge/osx-arm64 Using cache
conda-forge/noarch Using cache
error libmamba Could not solve for environment specs
The following packages are incompatible
├─ openssl >=1.1,<1.1.24 is requested and can be installed;
└─ openssl >=3,<3.1 is not installable because it conflicts with any installable versions previously reported.
critical libmamba Could not solve for environment specs
ERROR: LoadError: InitError: failed process: Process(`/Users/hiroshi/.julia/artifacts/98aba21a6802e06a5d2e7c48633d7dc1c3d4a749/bin/micromamba -r /Users/hiroshi/.julia/scratchspaces/0b3b1443-0f03-428d-bdfb-f27f9c1191ea/root create -y -p /Users/hiroshi/Downloads/T4AJuliaTutorials/.CondaPkg/env --override-channels --no-channel-priority "jupyter-book[version='*']" "jupytext[version='>=1.16']" "matplotlib[version='>=1']" "openssl[version='>=3, <3.1']" "openssl[version='>=1.1, <1.1.24']" "python[version='>=3.8,<4',channel='conda-forge',build='*cpython*']" "python[version='>=3.11,<3.12']" -c conda-forge`, ProcessExited(1)) [1]
@shinaoka @simone-fdr
Could you show me the versions of CondaPkg and PythonCall?
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.10.5 (2024-08-27)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
(T4AJuliaTutorials) pkg> st
Status `~/work/atelierarith/tensor4all/T4AJuliaTutorials/Project.toml`
[992eb4ea] CondaPkg v0.2.23
[7073ff75] IJulia v1.25.0
[9136182c] ITensors v0.6.17
[b964fa9f] LaTeXStrings v1.3.1
[16fef848] LiveServer v1.3.1
[91a5bcdd] Plots v1.40.8
[6099a3de] PythonCall v0.9.23
[87f76fb3] Quantics v0.3.8
[634c7f73] QuanticsGrids v0.3.2
[b11687fd] QuanticsTCI v0.7.0
[9f0aa9f4] TCIITensorConversion v0.1.4
[b261b2ec] TensorCrossInterpolation v0.9.12
[de0858da] Printf
@shinaoka
Make sure you have switched to the latest main branch. On the main branch, CondaPkg.toml does NOT require matplotlib', while your terminal output contains
matplotlib'.
Before running make
command, you may want to remove .CondaPkg
directory manually.
I cloned the repository from the scratch (main branch).
A workaround could be the following.
Download all notebooks from here.
Unzip the zip file.
Launch a jupyter server from a Julia REPL:
cd ipynbs
Julia
julia> using Pkg;Pkg.activate(".");Pkg.instantiate();
Activating project at `XXXX/ipynbs`
julia> using IJulia; IJulia.notebook()
A workaround could be the following.
- Download all notebooks from here.
- Unzip the zip file.
- Launch a jupyter server from a Julia REPL:
cd ipynbs Julia julia> using Pkg;Pkg.activate(".");Pkg.instantiate(); Activating project at `XXXX/ipynbs` julia> using IJulia; IJulia.notebook()
There seems to be some dependence on PythonPlot.jl
. It is weird.
(T4AJuliaTutorials) pkg> st
Status `~/git/T4AJuliaTutorials/Project.toml`
[992eb4ea] CondaPkg v0.2.23
[7073ff75] IJulia v1.25.0
[9136182c] ITensors v0.6.17
[b964fa9f] LaTeXStrings v1.3.1
[16fef848] LiveServer v1.3.1
[91a5bcdd] Plots v1.40.8
[6099a3de] PythonCall v0.9.23
[87f76fb3] Quantics v0.3.8
[634c7f73] QuanticsGrids v0.3.2
[b11687fd] QuanticsTCI v0.7.0
[9f0aa9f4] TCIITensorConversion v0.1.4
[b261b2ec] TensorCrossInterpolation v0.9.12
[de0858da] Printf
hiroshi@MBA15 T4AJuliaTutorials % make
julia --project scripts/setup.jl
Added `General` registry to ~/.julia/registries
Building Conda ─→ `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/b19db3927f0db4151cb86d073689f2428e524576/build.log`
Building IJulia → `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/1702f79fa30f56b68d5b2fd6fb3a9a14ff6f9130/build.log`
julia --project scripts/jupytext.jl compress.jl
CondaPkg Found dependencies: /Users/hiroshi/.julia/packages/PythonCall/Nr75f/CondaPkg.toml
CondaPkg Found dependencies: /Users/hiroshi/.julia/packages/PythonCall/flx5V/CondaPkg.toml
CondaPkg Found dependencies: /Users/hiroshi/.julia/packages/PythonPlot/469aA/CondaPkg.toml
CondaPkg Resolving changes
+ matplotlib
+ openssl
+ python
CondaPkg Creating environment
│ /Users/hiroshi/.julia/artifacts/98aba21a6802e06a5d2e7c48633d7dc1c3d4a749/bin/micromamba
│ -r /Users/hiroshi/.julia/scratchspaces/0b3b1443-0f03-428d-bdfb-f27f9c1191ea/root
│ create
│ -y
Could you remove the following paths manually e.g., rm -r ...
and try again?
/Users/hiroshi/.julia/packages/PythonCall
/Users/hiroshi/.julia/packages/PythonPlot
/Users/hiroshi/.julia/artifacts
/Users/hiroshi/.julia/scratchspaces
Here is what I did:
Open a terminal with zsh
yes | rm -rf ~/.julia
yes | rm -rf ~/.juliaup
curl -fsSL https://install.julialang.org | sh -s -- --yes
source ~/.zshrc
git clone https://github.com/tensor4all/T4AJuliaTutorials.git
cd T4AJuliaTutorials
make
This works on my Intel macOS and M2 macOS
I am on an Alma Linux machine and after doing
I simply run
And I get the following error
I get a very similar error using the Julia VS Code extension while running an .ipynb file.
How can I proceed to resolve this error or workaround it?