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

conda env export failing for envs in non-default path #10622

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bartlomiejcieszkowski
Copy link

@bartlomiejcieszkowski bartlomiejcieszkowski commented Apr 18, 2021

Running conda env export on env that is not in default conda installation path would result in empty environment

(pmce) C:\Users\bart\PycharmProjects\poor_mans_camera_effects>conda env export
name: pmce
channels:
  - defaults
prefix: C:\Programs\Miniconda3\envs\pmce

this change fixes args.prefix value in case -p is not explicitly provided - value from the env variable was ommited

after change:

(pmce) C:\Users\bart\PycharmProjects\poor_mans_camera_effects>conda env export
name: pmce
channels:
  - defaults
dependencies:
  - ca-certificates=2021.4.13=haa95532_1
  - certifi=2020.12.5=py38haa95532_0
  - openssl=1.1.1k=h2bbff1b_0
  - pip=21.0.1=py38haa95532_0
  - python=3.8.5=h5fd99cc_1
  - setuptools=52.0.0=py38haa95532_0
  - sqlite=3.35.4=h2bbff1b_0
  - vc=14.2=h21ff451_1
  - vs2015_runtime=14.27.29016=h5e58377_2
  - wheel=0.36.2=pyhd3eb1b0_0
  - wincertstore=0.2=py38_0
  - pip:
    - absl-py==0.12.0
    - astunparse==1.6.3
    - cachetools==4.2.1
    - click==7.1.2
    - flatbuffers==1.12
    - gast==0.3.3
    - google-auth==1.29.0
    - google-auth-oauthlib==0.4.4
    - google-pasta==0.2.0
    - grpcio==1.32.0
    - h5py==2.10.0
    - keras-preprocessing==1.1.2
    - markdown==3.3.4
    - numpy==1.19.3
    - oauthlib==3.1.0
    - onnx==1.8.1
    - onnx-tf==1.8.0
    - onnxruntime==1.7.0
    - opencv-contrib-python==4.5.1.48
    - opencv-python==4.5.1.48
    - opt-einsum==3.3.0
    - protobuf==3.15.8
    - py-cui==0.1.3
    - pyasn1==0.4.8
    - pyasn1-modules==0.2.8
    - pyfakewebcam==0.1.0
    - requests-oauthlib==1.3.0
    - rsa==4.7.2
    - scipy==1.6.2
    - six==1.15.0
    - tensorboard==2.4.1
    - tensorboard-plugin-wit==1.8.0
    - tensorflow==2.4.1
    - tensorflow-addons==0.12.1
    - tensorflow-estimator==2.4.0
    - termcolor==1.1.0
    - typeguard==2.12.0
    - typing==3.7.4.3
    - typing-extensions==3.7.4.3
    - watchdog==2.0.2
    - werkzeug==1.0.1
    - windows-curses==2.2.0
prefix: C:\Users\bart\PycharmProjects\poor_mans_camera_effects\envs\pmce

@bartlomiejcieszkowski bartlomiejcieszkowski requested a review from a team as a code owner April 18, 2021 07:32
@anaconda-issue-bot
Copy link

We require contributors to sign our Contributor License Agreement, and we don't have one on file for @bartlomiejcieszkowski. In order for us to review and merge your code, please e-sign the PDF at https://conda.io/en/latest/contributing.html#conda-contributor-license-agreement. We then need to manually verify your signature. We will ping the bot to refresh the PR status when we have confirmed your signature.

@bartlomiejcieszkowski
Copy link
Author

We require contributors to sign our Contributor License Agreement, and we don't have one on file for @bartlomiejcieszkowski. In order for us to review and merge your code, please e-sign the PDF at https://conda.io/en/latest/contributing.html#conda-contributor-license-agreement. We then need to manually verify your signature. We will ping the bot to refresh the PR status when we have confirmed your signature.

cla signed

@chenghlee chenghlee added this to the 4.10.2 milestone Apr 26, 2021
@dbast
Copy link
Member

dbast commented May 17, 2021

@anaconda-issue-bot check

@anaconda-issue-bot anaconda-issue-bot added the cla-signed [bot] added once the contributor has signed the CLA label May 17, 2021
@jezdez
Copy link
Member

jezdez commented May 31, 2021

@bartlomiejcieszkowski Thanks for the pull request, but could you provide some steps to reproduce the environment where you've seen this issue and file it as a separate issue please?

This would help us better track it in case this particular change doesn't solve it for all cases. Thanks!

@jezdez jezdez added the pending::feedback indicates we are waiting on feedback from the user label May 31, 2021
@chenghlee chenghlee modified the milestones: 4.10.2, Release TBD Jun 21, 2021
@chenghlee
Copy link
Contributor

Moving out of 4.10.2 release to the next minor release; need to investigate this more on other platforms and write some tests. Also thinking we should collect this into a large conda env cleanup.

@travishathaway travishathaway reopened this Feb 7, 2023
@travishathaway travishathaway added the stale [bot] marked as stale due to inactivity label Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed [bot] added once the contributor has signed the CLA pending::feedback indicates we are waiting on feedback from the user stale [bot] marked as stale due to inactivity
Projects
Status: 🆕 New
Development

Successfully merging this pull request may close these issues.

6 participants