conda / conda-pack

Package conda environments for redistribution
https://conda.github.io/conda-pack/
BSD 3-Clause "New" or "Revised" License
510 stars 91 forks source link

Failed error in launcher. Provides 2 paths. Windows 10 #188

Open Tman910 opened 3 years ago

Tman910 commented 3 years ago

I have two machines, one online and one offline. I'm attempting to move over my conda env from the online computer to the offline one. From following the instructions, after: tar -xf env-moved.tar.gz -C new_dir .\Scripts\activate.bat

I get an error when I try to run: ipython or anything else with the below error:

Fatal error in launcher: Unable to create process using '"C:\prev\path\in\old\env\for\python.exe" "C:\new\env\path\for\ipython.exe": The system cannot find the file specified.

I can open python and import the libraries fine, but I cannot open packages like ipython or jupyter lab/notebook. When I use conda-unpack.exe, I get a black screen with no text. Please advise on how to fix the issue, thank you.

xhochy commented 3 years ago

Where do you execute these commands? In a CMD session?

Tman910 commented 3 years ago

Cmd session, correct.

Edit: Adding extra info. I originally did not (I know, I'm an idiot) and I deleted everything and retried it using the same directory name as before and was having the above issue. I deleted the dir, and unpacked the tar ball into a new named directory, in CMD, and still having the same issue. I've also added the build versions of Windows 10 below. Originating computer: 19043.1110 New computer: 19041.264

Tman910 commented 3 years ago

re-pinging @xhochy for update.

nathanvdlei commented 2 years ago

Hi, i'm experiencing the same issue. I'm also trying to move conda environment from online windows pc to offline windows server. I experimented with adding paths to the Windows system environment variables, which did not help. I've tried running in the anaconda cmd prompt als well as normal cmd prompt. When I deactivate and activate the environment I also run into an conda error.

bverhoeff commented 1 year ago

Same here, doesn't work for me on windows: looks for python with old path and for application with new path.

Any solution would be appreciated...

github-actions[bot] commented 9 months ago

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!

nathan-eza commented 9 months ago

The issue is still occurring. We're building the conda-pack using Windows 11 and deploying on Windows Server 2019. Both have Miniconda installed with python 3.9.

FarhaKousar1601 commented 6 months ago

Issue: Encountering a fatal error in the launcher when running IPython or other packages after environment migration.

Troubleshooting Steps:

1. Check Activation Script:

2. Verify Paths:

3. Activate the Environment:

4. Test Python and IPython:

5. Check Installed Packages:

6. Verify Environment Variables:

7. Use Full Paths:

8. Conda-Unpack.exe:

9. Check File Permissions:

10. Reinstall Problematic Packages:

- If issues persist with specific packages (e.g., IPython, Jupyter), reinstall them:
  ```
  conda install ipython jupyter
  ```

11. System Path:

- Confirm that new environment paths are added to the system PATH variable.

12. Debugging:

- Use additional debugging tools or commands to gather more information:
  ```
  where python
  where ipython
  ```

13. Additional Information:

14. Community Support:

- Reach out to the Conda community or relevant forums for assistance, providing detailed information about your setup.

Additional Info:

The reported issue has been successfully resolved. The comprehensive troubleshooting steps outlined in the comments were instrumental in identifying and addressing the problem. The solution involved ensuring the correctness of the activation script, verifying paths, activating the environment manually, testing Python and IPython, checking installed packages, confirming environment variables, using full paths, checking file permissions, reinstalling problematic packages, verifying system paths, and addressing potential remnants from previous attempts.

The user has confirmed that the issue is now resolved, and the Conda environment is functioning as expected on both the originating computer (Windows 10 build 19043.1110) and the new computer (Windows 10 build 19041.264). resolved #188,