Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CondaPkg.toml not automatically created #442

Open
drhouse82 opened this issue Jan 23, 2024 · 1 comment
Open

CondaPkg.toml not automatically created #442

drhouse82 opened this issue Jan 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@drhouse82
Copy link

Affects: PythonCall

Describe the bug
When I use PythonCall (through "using PythonCall"), no CondaPkg.toml is created in my current Julia environment, but a central CondaPkg.toml in my user/.julia folder is created/used. I was expecting that per default, every Julia environment automatically gets its own Conda environment.

To reproduce, on a blank environment with an existint project.toml and manifest.toml, add PythonCall and excecute "using PythonCall"

Not perfectly sure if this is a bug or if there is a not-so-obvious way to automatically instantiate CondaPkg.toml per environment.
Thanks for any help.

Your system
Please provide detailed information about your system:
Windows 11
Julia 1.10, PythonCall 0.9.15

Base.versioninfo()

Julia Version 1.10.0
Commit 3120989f39 (2023-12-25 18:01 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 12 × 13th Gen Intel(R) Core(TM) i7-1355U
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, goldmont)
  Threads: 1 on 12 virtual cores
Environment:
  JULIA_EDITOR = code
  JULIA_NUM_THREADS =

Pkg.status()

  [992eb4ea] CondaPkg v0.2.22
  [717857b8] DSP v0.7.9
  [7a1cc6ca] FFTW v1.8.0
  [b18b359b] FourierTools v0.4.2
  [c27321d9] Glob v1.3.1
  [a98d9a8b] Interpolations v0.15.1
  [6099a3de] PythonCall v0.9.15
  [f2b01f46] Roots v2.1.0
  [a5390f91] ZipFile v0.10.1

CondaPkg.status()

CondaPkg Status C:\Users\j.fischer\OneDrive - xxxxxxx\Dokumente\Julia\xxxx\CondaPkg.toml (empty)
Not Resolved (resolve first for more information)
@drhouse82 drhouse82 added the bug Something isn't working label Jan 23, 2024
@cjdoris
Copy link
Collaborator

cjdoris commented Jan 25, 2024

It's not a bug, it's simply that CondaPkg doesn't create a CondaPkg.toml file until you actually add some packages (because it would be an empty file anyway).

The actual conda environment is at .CondaPkg/env in the project folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants