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

julia-venv seems not work for default conda environment? #3

Open
Hong-Xiang opened this issue Sep 8, 2018 · 1 comment
Open

julia-venv seems not work for default conda environment? #3

Hong-Xiang opened this issue Sep 8, 2018 · 1 comment

Comments

@Hong-Xiang
Copy link

As discussed in pyjulia/#185, julia-venv works in some environment, and during recent tests, it seems that it works on virtual envs created by conda create -n <name>, and failed on default environment.

For virtual envs, it just works like a charm.
For default env, i.e. the environment without source activate <name, it get error:
ERROR: UndefVarError: Libdl not defined when

  • runniing julia-venv-manage install-deps.
    or
  • directly enter python repl, and
>>> from julia_venv import get_julia
>>> jl = get_julia()
ERROR: UndefVarError: Libdl not defined

This might be machine specific, I'm not sure if it only happens in my machine.

@tkf
Copy link
Owner

tkf commented Sep 8, 2018

Indeed, it is only tested against non-root conda environment:

julia-venv/.travis.yml

Lines 46 to 50 in 578ef5c

- source ~/miniconda/bin/activate test
- julia-venv-manage install-deps
- julia-venv-manage show
- julia-venv -e "Base.banner(IOContext(stdout, :color => true))"
- py.test --pyargs julia_venv

I'm not sure what's going on.

But I usually don't recommend using pip in root conda environment. Mixing two package managers is dangerous IMHO, especially when you are using a hacky package like julia-venv :)

Having said that, the output of julia-venv-manage show may tell you something useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants