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 develop . broken? python 3.5 vs 3.6 problem? #2633

Closed
kalefranz opened this issue Jan 17, 2018 · 6 comments
Closed

conda develop . broken? python 3.5 vs 3.6 problem? #2633

kalefranz opened this issue Jan 17, 2018 · 6 comments
Labels
locked [bot] locked due to inactivity stale::closed [bot] closed after being marked as stale stale [bot] marked as stale due to inactivity

Comments

@kalefranz
Copy link
Contributor

From @BjornFJohansson on December 10, 2017 6:43

I use conda develop . a lot to install packages in editable mode. I think that conda develop tries to put a conda.pth file in /home/bjorn/anaconda3/envs/bjorn35/lib/python3.6/site-packages/. This directory does not exist since the env is python 3.5. I experimented to create python3.6/site-packages/ manually and this makes the conda develop . command complete without errors and creates a conda.pth. However, the installation does not work. If I then manually copy the new conda.pth to /home/bjorn/anaconda3/envs/bjorn35/lib/python3.5/site-packages/ the installation works.

The python version in my root is 3.6 while it is 3.5 in the bjorn35 env.

(bjorn35) bjorn@bjorn-ThinkPad-T450s:~/python_packages$ cd pydna
(bjorn35) bjorn@bjorn-ThinkPad-T450s:~/python_packages/pydna$ conda develop .
Traceback (most recent call last):
  File "/home/bjorn/anaconda3/bin/conda-develop", line 11, in <module>
    sys.exit(main())
  File "/home/bjorn/anaconda3/lib/python3.6/site-packages/conda_build/cli/main_develop.py", line 72, in main
    return execute(sys.argv[1:])
  File "/home/bjorn/anaconda3/lib/python3.6/site-packages/conda_build/cli/main_develop.py", line 68, in execute
    build_ext=args.build_ext, clean=args.clean, uninstall=args.uninstall)
  File "/home/bjorn/anaconda3/lib/python3.6/site-packages/conda_build/api.py", line 273, in develop
    return execute(recipe_dir, prefix, no_pth_file, build_ext, clean, uninstall)
  File "/home/bjorn/anaconda3/lib/python3.6/site-packages/conda_build/develop.py", line 175, in execute
    write_to_conda_pth(sp_dir, pkg_path)
  File "/home/bjorn/anaconda3/lib/python3.6/site-packages/conda_build/develop.py", line 50, in write_to_conda_pth
    with open(c_file, 'a') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/bjorn/anaconda3/envs/bjorn35/lib/python3.6/site-packages/conda.pth'
(bjorn35) bjorn@bjorn-ThinkPad-T450s:~/python_packages/pydna$ root
(root) bjorn@bjorn-ThinkPad-T450s:~/python_packages/pydna$ conda update conda
Fetching package metadata .................
Solving package specifications: .

# All requested packages already installed.
# packages in environment at /home/bjorn/anaconda3:
#
conda                     4.3.30           py36h5d9f9f4_0    defaults
(root) bjorn@bjorn-ThinkPad-T450s:~$ python --version
Python 3.6.3 :: Anaconda, Inc.
(root) bjorn@bjorn-ThinkPad-T450s:~/python_packages/pydna$ source activate bjorn35
(bjorn35) bjorn@bjorn-ThinkPad-T450s:~$ python --version
Python 3.5.4 :: Anaconda, Inc.

Copied from original issue: conda/conda#6425

@msarahan
Copy link
Contributor

Please use python setup.py develop or pip install -e . instead. Conda develop offers nothing over these right now. Eventually I'd like to rewrite conda develop to create environments and be more helpful, but right now it is only useless make-work for me.

@BjornFJohansson
Copy link

OK! Ill change to using pip install -e . since it seems to handling script entry points as well.

@brando90
Copy link

Please use python setup.py develop or pip install -e . instead. Conda develop offers nothing over these right now. Eventually I'd like to rewrite conda develop to create environments and be more helpful, but right now it is only useless make-work for me.

@msarahan has this been fixed already or is the recommendation still to use pip install -e?

I always thought the advice was to try to use conda for everything and avoid pip. Is that not true still?

@brando90
Copy link

not sure if anyone else had this error but pip install -e . is not working for me:

conda/conda#9912

@astrojuanlu
Copy link

xref: proposal to deprecate and remove conda develop #4251

@github-actions
Copy link

Hi there, thank you for your contribution!

This issue has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further activity occurs.

If you would like this issue to remain open please:

  1. Verify that you can still reproduce the issue at hand
  2. Comment that the issue is still reproducible and include:
    - What OS and version you reproduced the issue on
    - What steps you followed to reproduce the issue

NOTE: If this issue was closed prematurely, please leave a comment.

Thanks!

@github-actions github-actions bot added the stale [bot] marked as stale due to inactivity label Feb 28, 2023
@github-actions github-actions bot added the stale::closed [bot] closed after being marked as stale label Mar 31, 2023
@github-project-automation github-project-automation bot moved this from 🆕 New to 🏁 Done in 🧭 Planning Mar 31, 2023
@github-actions github-actions bot added the locked [bot] locked due to inactivity label Mar 30, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity stale::closed [bot] closed after being marked as stale stale [bot] marked as stale due to inactivity
Projects
Archived in project
Development

No branches or pull requests

5 participants