constructor icon indicating copy to clipboard operation
constructor copied to clipboard

Cannot open C:\foo\_conda-script.py, unable to make menus

Open 3tilley opened this issue 2 years ago • 1 comments

Hello all,

I've made my installer, it used to work, now after updating it with a new version of our internal software I'm getting the error about being unable to create menu items. The fundamental issue appears to be _conda-script.py which I think I've seen on errors before, it's exactly the error in this issue. Is it to do with noarch packages not being supported?

Is there any way of executing a constructed installer with extra debug? This was tested on Win 7 with and without admin rights.

Install logs
Output folder: C:\foo\Lib
Extract: _nsis.py
Extract: _system_path.py
Output folder: C:\foo\conda-meta
Extract: history
Output folder: C:\foo
Extract: _conda.exe
Output folder: C:\foo
Output folder: C:\foo\pkgs
Extract: env.txt
Extract: urls
Extract: urls.txt
Extract: post_install.bat
Extract: pre_uninstall.bat
Output folder: C:\foo\pkgs\cache
Extract: 09516aab.json
Extract: 20b27d08.json
Extract: 57bc0bee.json
Extract: d8dab17e.json
Extract: e16e3c35.json
Extract: e7bfad32.json
Extract: ec4d6668.json
Extract: fdedfb2c.json
Output folder: C:\foo\pkgs
Output folder: C:\foo\pkgs\arrow-1.1.1-pyhd8ed1ab_0\info
Extract: repodata_record.json
Output folder: C:\foo\pkgs\attrs-21.2.0-pyhd8ed1ab_0\info
Extract: repodata_record.json
Output folder: C:\foo\pkgs\backports-1.0-py_2\info
Extract: repodata_record.json
Output folder: C:\foo\pkgs\backports.functools_lru_cache-1.6.4-pyhd8ed1ab_0\info
Extract: repodata_record.json
Output folder: C:\foo\pkgs\beautifulsoup4-4.9.3-pyhb0f4dca_0\info
Extract: repodata_record.json
Output folder: C:\foo\pkgs\binaryornot-0.4.4-py_1\info
Extract: ...
...
Output folder: C:\foo\pkgs
Extract: python-3.6.13-h39d44d4_0_cpython.tar.bz2
Extract: ca-certificates-2021.5.30-h5b45459_0.tar.bz2
Extract: msys2-conda-epoch-20160418-1.tar.bz2
Extract: ucrt-10.0.20348.0-h57928b3_0.tar.bz2
Extract: m2-msys2-runtime-2.5.0.17080.65c939c-3.tar.bz2
Extract: m2w64-gmp-6.1.0-2.tar.bz2
Extract: m2w64-libwinpthread-git-5.0.0.4634.697f757-2.tar.bz2
Extract: vs2015_runtime-14.29.30037-h902a5da_5.tar.bz2
Extract: ....
....
Cannot open C:\foo\_conda-script.py
Cannot open C:\foo\_conda-script.py
Output folder: C:\foo
Delete file: C:\foo\pkgs\env.txt
Output folder: C:\foo\conda-meta
Extract: history
Creating Smash menus...
Cannot open C:\foo\_conda-script.py
Running post install...
Created uninstaller: C:\foo\Uninstall-Smash.exe
Completed

3tilley avatar Sep 10 '21 00:09 3tilley

This looks like a problem with the bundled conda-standalone executable. Maybe you can get a more recent one from here, extract its contents and point to the standalone_conda/conda.exe file it contains.

jaimergp avatar Aug 15 '22 09:08 jaimergp