Giter Club home page Giter Club logo

Comments (4)

korsbo avatar korsbo commented on May 29, 2024

I seem to have the same problem. Apart from having a different CPU listed by versioninfo() I get the exact same output.

I additionally ran Pkg.test("Conda") in two different scenarios, getting two different responses. First, it was run without having specified CONDA_JL_HOME or CONDA_JL_VERSION, resulting in:

julia> Pkg.test("Conda")
INFO: Testing Conda
Error During Test
  Test threw an exception of type ErrorException
  Expression: Conda.exists("curl", env)
  failed process: Process(setenv(`/home/Niklas/.julia/v0.6/Conda/deps/usr/bin/conda create -y -p /home/Niklas/.julia/v0.6/Conda/deps/usr/envs/test_conda_jl zlib`,String["LSCOLORS=exfxcxdxbxegedabagacad", "PATH=/home/Niklas/programs/anaconda3/bin:/nfs/bin:/home/Niklas/master/scripts:/home/Niklas/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/home/Niklas/projects/images/scripts:/home/Niklas/programs/clang/clang+llvm-3.8.0-x86_64-linux-gnu-ubuntu-14.04/bin:/home/Niklas/.local/bin", "TEXTDOMAIN=im-config", "DEFAULTS_PATH=/usr/share/gconf/i3.default.path", "LD_LIBRARY_PATH=/home/Niklas/local/lib:/home/Niklas/.local/lib:", "DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-jHi56XFgF9,guid=682fd15496377f21197b335a5950dd64", "XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0", "ANTIGEN_DEFAULT_REPO_URL=https://github.com/robbyrussell/oh-my-zsh.git", "OPENALEA_LIB=/home/Niklas/.local/lib", "GREP_COLOR=1;33", "SSH_AGENT_PID=2183", "TERMINATOR_UUID=urn:uuid:61d3bcb7-fa91-46ef-90b6-0daa6d0abe29", "USER=Niklas", "XDG_CONFIG_DIRS=/etc/xdg/xdg-i3:/etc/xdg", "QT_IM_MODULE=ibus", "LESS=-R", "GDMSESSION=i3", "CLUTTER_IM_MODULE=xim", "XDG_DATA_DIRS=/usr/share/i3:/usr/local/share/:/usr/share/", "OPENALEA_BIN=/home/Niklas/.local/lib/python2.7/site-packages/VPlants.Asclepios-0.9.0-py2.7-linux-x86_64.egg/bin", "SHELL=/bin/bash", "HISTFILESIZE=32768", "XDG_SEAT=seat0", "XAUTHORITY=/home/Niklas/.Xauthority", "CONDARC=/home/Niklas/.julia/v0.6/Conda/deps/usr/condarc-julia.yml", "ADOTDIR=/home/Niklas/.antigen", "HISTIGNORE=ls:cd:cd -:pwd:exit:date:* --help:rm -r", "GTK_MODULES=overlay-scrollbar", "GNOME_KEYRING_PID=2097", "GTK_IM_MODULE=ibus", "QT_QPA_PLATFORMTHEME=appmenu-qt5", "XMODIFIERS=@im=ibus", "TERM=xterm", "HOME=/home/Niklas", "COLORTERM=gnome-terminal", "ORBIT_SOCKETDIR=/tmp/orbit-Niklas", "HISTSIZE=32768", "LC_CTYPE=en_GB.UTF-8", "LANG=en_GB.UTF-8", "SHLVL=2", "LOGNAME=Niklas", "XDG_RUNTIME_DIR=/run/user/1011", "SSH_AUTH_SOCK=/tmp/ssh-5ZbN3hF5WSRy/agent.2099", "DESKTOP_SESSION=i3", "OLDPWD=/home/Niklas", "_=/home/Niklas/bin/julia", "PAGER=less", "CONDA_DEFAULT_ENV=/home/Niklas/.julia/v0.6/Conda/deps/usr", "ZSH=/home/Niklas/.oh-my-zsh", "PWD=/home/Niklas", "DISPLAY=:0", "ZSH_CACHE_DIR=/home/Niklas/.oh-my-zsh/cache/", "LANGUAGE=en_GB:en", "HISTCONTROL=ignoredups", "XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/Niklas", "XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0", "XDG_VTNR=7", "WINDOWID=39845892", "MANDATORY_PATH=/usr/share/gconf/i3.mandatory.path", "XDG_SESSION_ID=c2", "TEXTDOMAINDIR=/usr/share/locale/", "CONDA_PREFIX=/home/Niklas/.julia/v0.6/Conda/deps/usr", "KEYTIMEOUT=1", "QT4_IM_MODULE=xim", "LS_COLORS=di=34;40:ln=35;40:so=32;40:pi=33;40:ex=31;40:bd=34;46:cd=34;43:su=0;41:sg=0;46:tw=0;42:ow=0;43:", "GNOME_KEYRING_CONTROL=/run/user/1011/keyring-mhQNIk", "OPENBLAS_MAIN_FREE=1"]), ProcessExited(1)) [1]
  Stacktrace:
   [1] pipeline_error(::Base.Process) at ./process.jl:682
   [2] run(::Cmd) at ./process.jl:651
   [3] runconda(::Cmd, ::String) at /home/Niklas/.julia/v0.6/Conda/src/Conda.jl:131
   [4] _install_conda(::Symbol, ::Bool) at /home/Niklas/.julia/v0.6/Conda/src/Conda.jl:204
   [5] parseconda at /home/Niklas/.julia/v0.6/Conda/src/Conda.jl:136 [inlined]
   [6] search(::String, ::Symbol) at /home/Niklas/.julia/v0.6/Conda/src/Conda.jl:266
   [7] exists(::String, ::Symbol) at /home/Niklas/.julia/v0.6/Conda/src/Conda.jl:287
   [8] include_from_node1(::String) at ./loading.jl:569
   [9] include(::String) at ./sysimg.jl:14
   [10] process_options(::Base.JLOptions) at ./client.jl:305
   [11] _start() at ./client.jl:371
ERROR: LoadError: There was an error during testing
while loading /home/Niklas/.julia/v0.6/Conda/test/runtests.jl, in expression starting on line 7
=============================================================================[ ERROR: Conda ]=============================================================================

failed process: Process(`/home/Niklas/programs/julia-903644385b/bin/julia -Cx86-64 -J/home/Niklas/programs/julia-903644385b/lib/julia/sys.so --compile=yes --depwarn=yes --check-bounds=yes --code-coverage=none --color=yes --compilecache=yes /home/Niklas/.julia/v0.6/Conda/test/runtests.jl`, ProcessExited(1)) [1]

==========================================================================================================================================================================
ERROR: Conda had test errors

Then I tried again, after setting:

export CONDA_JL_HOME=/home/Niklas/programs/anaconda3/envs/conda_jl                                                                                                                                                                 
export CONDA_JL_VERSION=3                                         

and the result was:

julia> Pkg.build("Conda")
INFO: Building Conda

julia> Pkg.test("Conda")
INFO: Testing Conda
Fetching package metadata .........
Solving package specifications: .

Package plan for installation in environment /home/Niklas/programs/anaconda3/envs/conda_jl/envs/test_conda_jl:

The following NEW packages will be INSTALLED:

    curl: 7.52.1-0

Fetching package metadata .........
Solving package specifications: .

Package plan for package removal in environment /home/Niklas/programs/anaconda3/envs/conda_jl/envs/test_conda_jl:

The following packages will be REMOVED:

    curl: 7.52.1-0

Fetching package metadata .........
Solving package specifications: .

# All requested packages already installed.
# packages in environment at /home/Niklas/programs/anaconda3/envs/conda_jl/envs/test_conda_jl:
#
python                    3.6.1                         2  
Test Failed
  Expression: channels == ["defaults"]
   Evaluated: String["conda-forge", "defaults"] == String["defaults"]
ERROR: LoadError: There was an error during testing
while loading /home/Niklas/.julia/v0.6/Conda/test/runtests.jl, in expression starting on line 31
=============================================================================[ ERROR: Conda ]=============================================================================

failed process: Process(`/home/Niklas/programs/julia-903644385b/bin/julia -Cx86-64 -J/home/Niklas/programs/julia-903644385b/lib/julia/sys.so --compile=yes --depwarn=yes --check-bounds=yes --code-coverage=none --color=yes --compilecache=yes /home/Niklas/.julia/v0.6/Conda/test/runtests.jl`, ProcessExited(1)) [1]

==========================================================================================================================================================================
ERROR: Conda had test errors

I, too, would be grateful for any help. Thanks!

from conda.jl.

Alexander-Barth avatar Alexander-Barth commented on May 29, 2024

Hi Niklas,
I noticed that I have the same problem when I install miniconda independently from julia. I have also several python packages installed using "pip install --user" in my ~/.local directory. When I moved the ~/.local directory to ~/.local-test, then conda (stand-alone) and conda.jl works again. In my case, it seemed to be a problem in conda.

from conda.jl.

Alexander-Barth avatar Alexander-Barth commented on May 29, 2024

Or even simpler by defining PYTHONNOUSERSITE=1, e.g.

$ PYTHONNOUSERSITE=1 ~/.julia/v0.6/Conda/deps/usr/bin/conda --version
conda 4.3.22

Conda documentation recommends to remove the .local directory (seriously?!)
https://conda.io/docs/troubleshooting.html#resolution-for-python-packages-remove-any-site-specific-directories

from conda.jl.

stevengj avatar stevengj commented on May 29, 2024

Nowadays Conda.jl cleans up its environment to remove CONDA* and PYTHON* variables, so hopefully this is fixed.

from conda.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.