SSCHAcode / python-sscha

The python implementation of the Stochastic Self-Consistent Harmonic Approximation (SSCHA).
GNU General Public License v3.0
55 stars 21 forks source link

Error PyCall while installing with micromamba #178

Open ccigna opened 8 months ago

ccigna commented 8 months ago

While installing the sscha with the following commands

micromamba create -n sscha -c conda-forge python=3.10 gfortran libblas lapack openmpi julia openmpi-mpicc pip numpy scipy spglib
micromamba activate sscha
pip install ase julia mpi4py
pip install cellconstructor python-sscha tdscha

I get the error at the first run:

[ Info: Julia version info
[ Info: Julia executable: /home/cignarella/micromamba/envs/aiida-sscha-1d/bin/julia
[ Info: Trying to import PyCall...
┌ Error: `import PyCall` failed
│   exception =
│    ArgumentError: Package PyCall [438e738f-606a-5dbb-bf0a-cddfbfd45ab0] is required but does not seem to be installed:
│     - Run `Pkg.instantiate()` to install all recorded dependencies.
ccigna commented 8 months ago

The solution I found to fix it is to open julia manually and add the General registry: Inside julia enter the package mode pressing ], then

pkg> registry add General
pkg> add PyCall

This seems to fix the error