mfherbst / dftk-workshop-material

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Package PyCall not found in current path

mariogeiger opened this issue · comments

Hi,

First time I use julia, I followed the instructions and I get the following error.
I am using a mac M-series.

julia> import Downloads

julia> script = Downloads.download("https://raw.githubusercontent.com/mfherbst/dftk-workshop-material/master/install.jl")
"/var/folders/f2/9bv2p2gj7hqg6j34ym9j6_kc0000gn/T/jl_7uNQ9QX4nq"

julia> include(script)
  Installing known registries into `~/.julia`
     Cloning git-repo `https://github.com/carstenbauer/WorkshopWizard.jl`
    Updating git-repo `https://github.com/carstenbauer/WorkshopWizard.jl`
    Updating registry at `~/.julia/registries/General.toml`
   Resolving package versions...
    Updating `~/.julia/environments/v1.8/Project.toml`
  [2b716af1] + WorkshopWizard v0.1.0 `https://github.com/carstenbauer/WorkshopWizard.jl/#master`
    Updating `~/.julia/environments/v1.8/Manifest.toml`
  [2b716af1] + WorkshopWizard v0.1.0 `https://github.com/carstenbauer/WorkshopWizard.jl/#master`
  [0dad84c5] + ArgTools v1.1.1
  [56f22d72] + Artifacts
  [2a0f44e3] + Base64
  [ade2ca70] + Dates
  [f43a241f] + Downloads v1.6.0
  [7b1f6079] + FileWatching
  [b77e0a4c] + InteractiveUtils
  [b27032c2] + LibCURL v0.6.3
  [76f85450] + LibGit2
  [8f399da3] + Libdl
  [56ddb016] + Logging
  [d6f4376e] + Markdown
  [ca575930] + NetworkOptions v1.2.0
  [44cfe95a] + Pkg v1.8.0
  [de0858da] + Printf
  [3fa0cd96] + REPL
  [9a3f8284] + Random
  [ea8e919c] + SHA v0.7.0
  [9e88b42a] + Serialization
  [6462fe0b] + Sockets
  [fa267f1f] + TOML v1.0.0
  [a4e569a6] + Tar v1.10.0
  [cf7118a7] + UUIDs
  [4ec0a83e] + Unicode
  [deac9b47] + LibCURL_jll v7.84.0+0
  [29816b5a] + LibSSH2_jll v1.10.2+0
  [c8ffd9c3] + MbedTLS_jll v2.28.0+0
  [14a3606d] + MozillaCACerts_jll v2022.2.1
  [83775a58] + Zlib_jll v1.2.12+3
  [8e850ede] + nghttp2_jll v1.48.0+0
  [3f19e933] + p7zip_jll v17.4.0+0
Precompiling project...
  4 dependencies successfully precompiled in 1 seconds
[ Info: Downloading "dftk-workshop-material" to /Users/mario/dftk-workshop-material
[ Info: Installing and precompiling all dependencies (this may take a while)
  Activating project at `~/dftk-workshop-material`
   Installed JpegTurbo_jll ──────────────── v2.1.2+0
   Installed x265_jll ───────────────────── v3.5.0+0
   Installed libfdk_aac_jll ─────────────── v2.0.2+0
   Installed GR_jll ─────────────────────── v0.66.2+0
   Installed LERC_jll ───────────────────── v3.0.0+1
   Installed Libmount_jll ───────────────── v2.35.0+0
   Installed OffsetArrays ───────────────── v1.12.7
   Installed Preferences ────────────────── v1.3.0
   Installed Opus_jll ───────────────────── v1.3.2+0
   Installed Xorg_xkbcomp_jll ───────────── v1.4.2+4
   Installed FFTW ───────────────────────── v1.5.0
   Installed LoggingExtras ──────────────── v0.4.9
   Installed RelocatableFolders ─────────── v0.3.0
   Installed Unitful ────────────────────── v1.11.0


[...]


   Installed LineSearches ───────────────── v7.2.0
   Installed LogExpFunctions ────────────── v0.3.18
   Installed FFTW_jll ───────────────────── v3.3.10+0
   Installed OpenSpecFun_jll ────────────── v0.5.5+0
   Installed UnPack ─────────────────────── v1.0.2
   Installed Xorg_libXcursor_jll ────────── v1.2.0+4
   Installed Wayland_protocols_jll ──────── v1.25.0+0
   Installed Libuuid_jll ────────────────── v2.36.0+0
   Installed Xorg_xcb_util_renderutil_jll ─ v0.3.9+1
   Installed InverseFunctions ───────────── v0.1.7
   Installed CommonSolve ────────────────── v0.2.1
   Installed DocStringExtensions ────────── v0.8.6
   Installed Adapt ──────────────────────── v3.4.0
   Installed Graphite2_jll ──────────────── v1.3.14+0
   Installed libass_jll ─────────────────── v0.15.1+0
   Installed XML2_jll ───────────────────── v2.9.14+0
   Installed Pixman_jll ─────────────────── v0.40.1+0
   Installed IntegerMathUtils ───────────── v0.1.0
   Installed Gettext_jll ────────────────── v0.21.0+0
   Installed Wayland_jll ────────────────── v1.19.0+0
   Installed Latexify ───────────────────── v0.15.16
   Installed Libxc_jll ──────────────────── v5.2.3+0
   Installed Xorg_xtrans_jll ────────────── v1.4.0+3
   Installed OpenSSL_jll ────────────────── v1.1.17+0
   Installed FFMPEG_jll ─────────────────── v4.4.2+0
   Installed IterTools ──────────────────── v1.4.0
   Installed GeometryBasics ─────────────── v0.4.3
   Installed MPI ────────────────────────── v0.19.2
   Installed Libgcrypt_jll ──────────────── v1.8.7+0
   Installed Xorg_xkeyboard_config_jll ──── v2.27.0+4
   Installed Tables ─────────────────────── v1.7.0
   Installed DataAPI ────────────────────── v1.10.0
   Installed Interpolations ─────────────── v0.14.5
   Installed LLVMOpenMP_jll ─────────────── v14.0.4+0
   Installed Xorg_libXrandr_jll ─────────── v1.5.2+4
   Installed FixedPointNumbers ──────────── v0.8.4
   Installed Primes ─────────────────────── v0.5.3
   Installed Optim ──────────────────────── v1.7.3
   Installed LAME_jll ───────────────────── v3.100.1+0
   Installed RecipesBase ────────────────── v1.2.1
   Installed Xorg_libXfixes_jll ─────────── v5.0.3+4
   Installed Libiconv_jll ───────────────── v1.16.1+1
   Installed IteratorInterfaceExtensions ── v1.0.0
   Installed IniFile ────────────────────── v0.5.1
   Installed BlockArrays ────────────────── v0.16.20
   Installed IterativeSolvers ───────────── v0.9.2
   Installed libvorbis_jll ──────────────── v1.3.7+1
   Installed VersionParsing ─────────────── v1.3.0
   Installed URIs ───────────────────────── v1.4.0
   Installed Glib_jll ───────────────────── v2.68.3+2
   Installed Libglvnd_jll ───────────────── v1.3.0+3
   Installed StructArrays ───────────────── v0.6.12
   Installed LaTeXStrings ───────────────── v1.3.0
   Installed AxisAlgorithms ─────────────── v1.0.1
   Installed Xorg_libXdmcp_jll ──────────── v1.1.3+4
   Installed Xorg_libX11_jll ────────────── v1.6.9+4
   Installed FillArrays ─────────────────── v0.13.4
   Installed UnitfulAtomic ──────────────── v1.0.0
   Installed Requires ───────────────────── v1.3.0
   Installed ForwardDiff ────────────────── v0.10.32
   Installed SortingAlgorithms ──────────── v1.0.1
   Installed WoodburyMatrices ───────────── v0.5.5
   Installed ChangesOfVariables ─────────── v0.1.4
   Installed Unzip ──────────────────────── v0.2.0
   Installed Parameters ─────────────────── v0.12.3
   Installed Libxc ──────────────────────── v0.3.9
   Installed GeoInterface ───────────────── v1.0.1
  Downloaded artifact: JpegTurbo
  Downloaded artifact: x265
  Downloaded artifact: libfdk_aac
  Downloaded artifact: GR
  Downloaded artifact: LERC
  Downloaded artifact: Opus
  Downloaded artifact: EarCut
  Downloaded artifact: libsodium
  Downloaded artifact: Cairo
  Downloaded artifact: Fontconfig
  Downloaded artifact: Libgpg_error
  Downloaded artifact: spglib
  Downloaded artifact: Qt5Base
  Downloaded artifact: Bzip2
  Downloaded artifact: HarfBuzz
  Downloaded artifact: LZO
  Downloaded artifact: FriBidi
  Downloaded artifact: ZeroMQ
  Downloaded artifact: GLFW
  Downloaded artifact: x264
  Downloaded artifact: FreeType2
  Downloaded artifact: libpng
  Downloaded artifact: libaom
  Downloaded artifact: MPICH
  Downloaded artifact: Zstd
  Downloaded artifact: Expat
  Downloaded artifact: Libtiff
  Downloaded artifact: PCRE
  Downloaded artifact: Libffi
  Downloaded artifact: Ogg
  Downloaded artifact: XSLT
  Downloaded artifact: FFTW
  Downloaded artifact: OpenSpecFun
  Downloaded artifact: Wayland_protocols
  Downloaded artifact: Graphite2
  Downloaded artifact: libass
  Downloaded artifact: Pixman
  Downloaded artifact: XML2
  Downloaded artifact: Gettext
  Downloaded artifact: Libxc
  Downloaded artifact: OpenSSL
  Downloaded artifact: FFMPEG
  Downloaded artifact: Libgcrypt
  Downloaded artifact: LLVMOpenMP
  Downloaded artifact: LAME
  Downloaded artifact: Libiconv
  Downloaded artifact: libvorbis
  Downloaded artifact: Glib
    Building Conda ─→ `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/6e47d11ea2776bc5627421d59cdcc1296c058071/build.log`
    Building PyCall → `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/53b8b07b721b77144a0fbbbc2675222ebf40a02d/build.log`
    Building GR ────→ `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/cf0a9940f250dc3cb6cc6c6821b4bf8a4286cf9c/build.log`
    Building MPI ───→ `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/d56a80d8cf8b9dc3050116346b3d83432b1912c0/build.log`
    Building IJulia → `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/98ab633acb0fe071b671f6c1785c46cd70bb86bd/build.log`
Precompiling project...
  208 dependencies successfully precompiled in 63 seconds. 7 already precompiled.
Done.

[ Info: Workshop successfully installed to /Users/mario/dftk-workshop-material.

  Activating project at `~/.julia/environments/v1.8`
[ Info: Installing IJulia to global environment
   Resolving package versions...
    Updating `~/.julia/environments/v1.8/Project.toml`
  [7073ff75] + IJulia v1.23.3
    Updating `~/.julia/environments/v1.8/Manifest.toml`
  [8f4d0f93] + Conda v1.7.0
  [7073ff75] + IJulia v1.23.3
  [692b3bcd] + JLLWrappers v1.4.1
  [682c06a0] + JSON v0.21.3
  [739be429] + MbedTLS v1.1.5
  [69de0a69] + Parsers v2.4.0
  [21216c6a] + Preferences v1.3.0
  [b85f4697] + SoftGlobalScope v1.1.0
  [81def892] + VersionParsing v1.3.0
  [c2297ded] + ZMQ v1.2.1
  [8f1865be] + ZeroMQ_jll v4.3.4+0
  [a9144af2] + libsodium_jll v1.0.20+0
  [a63ad114] + Mmap
  [8dfed614] + Test
  Activating project at `~/dftk-workshop-material`
ERROR: LoadError: ArgumentError: Package PyCall not found in current path.
- Run `import Pkg; Pkg.add("PyCall")` to install the PyCall package.
Stacktrace:
 [1] macro expansion
   @ ./loading.jl:1163 [inlined]
 [2] macro expansion
   @ ./lock.jl:223 [inlined]
 [3] require(into::Module, mod::Symbol)
   @ Base ./loading.jl:1144
 [4] top-level scope
   @ /var/folders/f2/9bv2p2gj7hqg6j34ym9j6_kc0000gn/T/jl_7uNQ9QX4nq:18
 [5] include(fname::String)
   @ Base.MainInclude ./client.jl:476
 [6] top-level scope
   @ REPL[3]:1
in expression starting at /var/folders/f2/9bv2p2gj7hqg6j34ym9j6_kc0000gn/T/jl_7uNQ9QX4nq:16

Ups that's clearly my bad. It should be fixed now. Can you try again?

I suppose that's solved now. Feel free to reopen if not.