Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 16:50
    chenghlee labeled #10074
  • 16:50
    chenghlee labeled #10074
  • 13:11
    genecell commented #7311
  • 11:05
    sonu92585 opened #10465
  • Jan 18 20:52
    Vaderv commented #10034
  • Jan 18 20:50
    NaderNazemi commented #10034
  • Jan 18 20:50
    NaderNazemi commented #10034
  • Jan 18 15:51
    tianweipeng commented #10183
  • Jan 18 15:26
    Imal16 closed #10464
  • Jan 18 15:26
    Imal16 commented #10464
  • Jan 18 10:45
    brp-joje commented #10378
  • Jan 18 09:57
    ZhangQi-HUST commented #9746
  • Jan 18 06:54
    ahua217 commented #10463
  • Jan 18 05:27
    ahua217 commented #10463
  • Jan 18 04:43
    ahua217 commented #10463
  • Jan 18 02:17
    MolianWH commented #10463
  • Jan 17 19:45
    Imal16 opened #10464
  • Jan 17 18:57
    mcallaway commented #638
  • Jan 17 04:53
    ahua217 edited #10463
  • Jan 17 04:53
    ahua217 edited #10463
Dave Hirschfeld
@dhirschfeld
Thanks for the clarification @chenghlee
Ryan May
@dopplershift
@chenghlee (or anyone else) Is there a place to report issues with the anaconda installer
Cheng H. Lee
@chenghlee
Ryan May
@dopplershift
Thanks
Cheng H. Lee
@chenghlee
Is this Big Sur related?
Ryan May
@dopplershift
Well, it was on Big Sur, but the problem I'm trying to report is that it decided to set up bash, even though Zsh is the default shell now on Mac.
So on a fresh install -> Terminal no worky
Cheng H. Lee
@chenghlee
Oof, yeah. That's definitely we need to fix.
Ryan May
@dopplershift
Of course, this is debugging someone else's machine over Slack. But from my notes, it was actually running conda init from zsh (but no .zshrc) that decided it wanted to use .bash_profile.
Cheng H. Lee
@chenghlee
We'll definitely take a look at it; the installers and conda are built on 10.9, so they (likely) assume bash, rather than checking the OS release and/or current shell.
Ryan May
@dopplershift
Cheng H. Lee
@chenghlee
Thanks!
Dinendu Das
@dinendu
Hi! I am new in conda environment. I am using jupyter notebook with conda and the python version is 3.5. I want to update it in upper version with pip.
Matti Picus
@mattip
@dinendu "it" == "jupyter" or "it" == "python" ? In general, you should not mix conda and pip. In a conda environment do "conda install ..."
Gabriel Reis
@gabrielcnr
I came across the project https://github.com/conda/constructor recently and I was wondering if the construct.yaml for Anaconda is open source so we can take a look how the installer for Anaconda is produced? @chenghlee
Wolf Vollprecht
@wolfv
you can check how Miniforge is doing it: https://github.com/conda-forge/miniforge
Cheng H. Lee
@chenghlee
Alas, the Anaconda installer construct.yaml is not open source, mostly because it includes:
  1. IP from partners that shows up in the GUI installers; and
  2. Security tokens we use to code-sign installers for Windows and macOS.
Gabriel Reis
@gabrielcnr
I see.. thanks both @wolfv and @chenghlee
Cheng H. Lee
@chenghlee
@gabrielcnr: I should point out that the non-OSS co-marketing and code signing bits are in the pre- and post-install scripts. In particular, the lists of what packages go into the installers are publicly available (conda + the run dependencies of the anaconda=yyyy.mm meta-packages).
LeslieGerman
@LeslieGerman

Hi all,

Question about conda and concurrent processes (aka multi-processing):
Is it safe to use the same conda instance from multiple processes ?

Ie.: is it OK if multiple processes execute on the same installed conda-instance concurrently:

  1. conda config commands (e.g. setting, getting channels) ?
  2. creating/deleting/updating different conda environments?

Or is it safe if multiple processes concurrently:

  1. Install/remove packages into different environments?
Cheng H. Lee
@chenghlee
@LeslieGerman: we haven't really tested it to confirm, but probably not. In particular, I'm not sure conda locks the package and repodata caches in a way that's multi-process safe. But such support is definitely something that should be added to future releases.
LeslieGerman
@LeslieGerman
Thanks @chenghlee , that was my guess, too. I agree supporting that would be cool. Right now I'm thinking about how different Jenkins jobs (processes) could "drive" the same conda...
Michael Aye
@michaelaye
Hi! I'm looking for an API to the env commands? python_api.Commands doesn't have an entry env ?
Michael Aye
@michaelaye

weird, why is

print(subprocess.check_output(["conda", "env", "list"]).decode('ascii'))

swallowing (= not showing) all but the base's env name?

image.png
LeslieGerman
@LeslieGerman
@michaelaye , I experience the same sometime simply when using conda from command line. I don't know why this happens, I mostly ignore this, and use the environment path then instead of the name. But I can imagine that even though names are not listed in the first column, you could still use env. names in your commands, i.e. "conda activate isis" still work. So I think this is not related to whether you use conda from a python script or not.
Uwe L. Korn
@xhochy
Seems like the Anaconda API is experiencing some issues, I consistently get 504s for the last 10min:
requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://api.anaconda.org/package/conda-forge/conda-smithy
Ray Donnelly
@mingwandroid
We are trying to figure that out @xhochy, well, not me, but the IT peeps
Suspect some mirroring hitting us hard on a cron job or something
Happening every 24 hours or so
usually 7-8pm but once a few hours earlier (not sure which TZ!)
Texas I expect!
Leo Fang
@leofang
Hi, not sure if this is right channel. I work closely with CuPy and I also maintain CuPy on conda-forge. The cupy packagel on Anaconda's channel is very old and no longer maintained, but since it's still out there we keep getting bug reports for things either fixed for a long time or no longer supported. Is it possible for Anaconda to mark it broken/archived so that it wont be downloaded (unless users hack it hard)? We want users to either use the pip or conda-forge releases.
Ray Donnelly
@mingwandroid
@leofang We cannot mark things as such because it will break people who might use it and breaks reproducibility. We need to update instead. I will take a look and if I don't manage it I will bring it up with the team. It's on my list anyway
.. and sorry for the trouble it's causing you!
Leo Fang
@leofang
@mingwandroid Thank you for quick reply! Though I think there got to be a better mechanism to make users informed it's super outdated. Currently we direct our users to install from pip/conda-forge in our doc page and issue tracker, but not everyone comes and asks. Some would just abandon cupy and think its useless, but it'd be both their and our losses. cc: @kmaehashi
vrindger
@vrindger

hi, is there a way to create a conda environment out of a local file (without channels) with dependencies? I can't get it to install the dependencies when doing this. Maybe i have to have channels to do it?:

$ conda install --offline localpkg-0.1.0-0.tar.bz2 --use-local
Preparing transaction: done
Verifying transaction: done
Executing transaction: done

$ conda list

packages in environment at /envs/my_test_env-0.1.0:

#

Name Version Build Channel

localpkg 0.1.0 0 file:///envs/my_build_env/conda-bld

LeslieGerman
@LeslieGerman
@vrindger , no even adding channels do not work, since it's explicitly written in the docu of conda install, that if you install from a package file, dependencies won't be installed
vrindger
@vrindger
@LeslieGerman ok thanks, I'll have to add it to a temporary channel or something i guess
LeslieGerman
@LeslieGerman
Ah... maybe you meant that you create a conda channel from a local folder and put the package there. Yes this works. Sorry I think I misunderstood what you meant by adding channels.
vrindger
@vrindger
naw, you got it right. I was trying ot install from a file directly. I'll be creating a conda channel from a local folder now and putting the package in there. That's something I haven't done yet.
LeslieGerman
@LeslieGerman
Yes, that works, for sure :)
vrindger
@vrindger
thanks! :)
Pav A
@rs2
Hi all, a few years back @msarahan suggested that adding the anaconda channel to free and main channels should be avoided. Can I please check how main and free channels differ, and why would one prefer to use both of them compared to either free or main?
Cheng H. Lee
@chenghlee
"free" contains older software and broken metadata, and really shouldn't be used unless absolutely necessary. Details here: https://www.anaconda.com/blog/why-we-removed-the-free-channel-in-conda-4-7
The "anaconda" channel is more or less a somewhat laggy mirror of "main".
Pav A
@rs2
Thank you @chenghlee
Yang Xu
@JasonYangShadow
how conda creates multiple namespaces to isolate packages, and how I can enable namespaces inside a bash script, I need to run a program in one namespace and switch to another namespace to run another program in a pipeline. How to do this?
LeslieGerman
@LeslieGerman
@JasonYangShadow , not sure what you mean about "namespace" and "isolation" here. But in conda environments can be seen as namespaces (if you want), which provides a kind of isolation. But this kind of "isolation" is not at the level of a docker container, neither of a virtual machine, but in practice works well, though. So if your programs can be installed as conda packages, or they are simply programs which "behave well" in conda environments, then you can simply switch environments to provide kind-of isolation for those programs. You may also take a look at the "conda run" command (simply do "conda run --help" for usage), or try https://github.com/conda-tools/conda-execute
abhishekvaidprophecy
@abhishekvaidprophecy

I'm trying to write a simple script to connect to localhost pg. I'm unable to resolve the dependency and as shown in the screenshot:

  • The vscode is able to resolve the package. It shows package information and when I click on it, it opens init of this module.
  • I tried conda installing and it says package is already installed. [Terminal output]
  • I did pip freeze | grep ... and package is even shown in dependency output.

Screenshot 2021-01-20 at 12.46.20 AM.png

Can someone please help me here.