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 update anaconda "OSError" from "menuinst" on Win8.1 using msysgit #875

Closed
ijstokes opened this issue Aug 21, 2014 · 5 comments
Closed
Labels
locked [bot] locked due to inactivity

Comments

@ijstokes
Copy link

I had Anaconda 2.0.0. I first did a conda update conda (no problems) then followed this with a conda update anaconda. This is using msysgit on Win8.1. It looks like it pretty much worked, but there were one or two OSError exceptions from menuinst. Trace of commands and output below.

$ python -V
Python 2.7.6 :: Anaconda 2.0.0 (64-bit)

Ian@STALLION ~/code
$ conda update conda
Fetching package metadata: ..
Solving package specifications: .
Package plan for installation in environment c:\Anaconda:

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    conda-3.6.2                |           py27_0         192 KB

The following packages will be UN-linked:

    package                    |            build
    ---------------------------|-----------------
    conda-3.5.2                |           py27_0

The following packages will be linked:

    package                    |            build
    ---------------------------|-----------------
    conda-3.6.2                |           py27_0   hard-link

Proceed ([y]/n)? y

Fetching packages ...
conda-3.6.2-py 100% |###############################| Time: 0:00:00   1.74 MB/s
Extracting packages ...
[      COMPLETE      ] |#################################################| 100%
Unlinking packages ...
[      COMPLETE      ] |#################################################| 100%
Linking packages ...
[      COMPLETE      ] |#################################################| 100%

Ian@STALLION ~/code
$ conda update anaconda
Fetching package metadata: ..
Solving package specifications: .
Package plan for installation in environment c:\Anaconda:

The following packages will be downloaded:

    package                    |            build
    ---------------------------|-----------------
    anaconda-2.0.1             |       np18py27_0          30 KB
    blaze-0.5.0                |       np18py27_1         246 KB
    llvmpy-0.12.6              |           py27_0         6.1 MB
    numba-0.13.2               |       np18py27_0         550 KB
    openpyxl-1.8.5             |           py27_0         127 KB
    pandas-0.14.0              |       np18py27_0         3.8 MB
    scikit-image-0.10.0        |       np18py27_0        14.2 MB
    ------------------------------------------------------------
                                           Total:        25.0 MB

The following packages will be UPDATED:

    anaconda:     2.0.0-np18py27_0  --> 2.0.1-np18py27_0
    blaze:        0.5.0-np18py27_0  --> 0.5.0-np18py27_1
    ipython:      2.1.0-py27_0      --> 2.1.0-py27_2
    llvmpy:       0.12.4-py27_0     --> 0.12.6-py27_0
    numba:        0.13.1-np18py27_0 --> 0.13.2-np18py27_0
    pandas:       0.13.1-np18py27_0 --> 0.14.0-np18py27_0
    scikit-image: 0.9.3-np18py27_1  --> 0.10.0-np18py27_0
    werkzeug:     0.9.4-py27_0      --> 0.9.6-py27_0

The following packages will be DOWNGRADED:

    openpyxl:     2.0.2-py27_0      --> 1.8.5-py27_0

Proceed ([y]/n)? y

Fetching packages ...
anaconda-2.0.1 100% |###############################| Time: 0:00:00 895.47 kB/s
blaze-0.5.0-np 100% |###############################| Time: 0:00:00   1.34 MB/s
llvmpy-0.12.6- 100% |###############################| Time: 0:00:01   3.41 MB/s
numba-0.13.2-n 100% |###############################| Time: 0:00:00 650.86 kB/s
openpyxl-1.8.5 100% |###############################| Time: 0:00:00 776.11 kB/s
pandas-0.14.0- 100% |###############################| Time: 0:00:01   2.30 MB/s
scikit-image-0 100% |###############################| Time: 0:00:02   6.87 MB/s
Extracting packages ...
[      COMPLETE      ] |#################################################| 100%
Unlinking packages ...
[      COMPLETE      ] |#################################################| 100%
Linking packages ...
menuinst Exception:Traceback (most recent call last):                    |  11%
  File "c:\Anaconda\lib\site-packages\conda\install.py", line 283, in mk_menus
    menuinst.install(join(prefix, f), remove, prefix)
  File "c:\Anaconda\lib\site-packages\menuinst\__init__.py", line 42, in install
    ShortCut(m, sc, prefix=prefix).create()
  File "c:\Anaconda\lib\site-packages\menuinst\win32.py", line 128, in create
    u'' + icon,
OSError: Failed to create shortcut 'C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Anaconda (6
4-bit)\Wakari (in the cloud).lnk' - error 0x80070005
menuinst Exception:Traceback (most recent call last):                    |  33%
  File "c:\Anaconda\lib\site-packages\conda\install.py", line 283, in mk_menus
    menuinst.install(join(prefix, f), remove, prefix)
  File "c:\Anaconda\lib\site-packages\menuinst\__init__.py", line 42, in install
    ShortCut(m, sc, prefix=prefix).create()
  File "c:\Anaconda\lib\site-packages\menuinst\win32.py", line 128, in create
    u'' + icon,
OSError: Failed to create shortcut 'C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Anaconda (6
4-bit)\IPython (Py 2.7).lnk' - error 0x80070005
[      COMPLETE      ] |#################################################| 100%
@asmeurer
Copy link
Contributor

That hex code is an HRESULT from trying to save the file.

In [2]: bin(0x80070005)
Out[2]: '0b10000000000001110000000000000101'

According to https://en.wikipedia.org/wiki/HRESULT and http://msdn.microsoft.com/en-us/library/windows/desktop/ms681382(v=vs.85).aspx, the error is ACCESS IS DENIED. This either means you don't have the permissions you need to write to C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Anaconda (64-bit)\IPython (Py 2.7).lnk or some other program (maybe another instance of conda?) was holding the lock.

Were the shortcuts created correctly?

@ijstokes
Copy link
Author

No, the links weren't created. It says the directory in question is owned by BUILTIN\Administrators

@ijstokes
Copy link
Author

But as I've since discovered, there are actually several issues with the way things work from msysgit with Anaconda. The question is how prevalent Anaconda + msysgit is. If I had to guess, I'd think it was pretty common. PowerShell and cmd.exe are uninspiring environments to work in, and anyone stuck with Windows but wanting Unix-like CLI is probably going to be using msysgit (or perhaps Cygwin).

@ijstokes
Copy link
Author

See #747: I believe that is the true root of this problem, so closing this issue.

@github-actions
Copy link

github-actions bot commented Dec 4, 2021

Hi there, thank you for your contribution to Conda!

This issue has been automatically locked since it has not had recent activity after it was closed.

Please open a new issue if needed.

@github-actions github-actions bot added the locked [bot] locked due to inactivity label Dec 4, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked [bot] locked due to inactivity
Projects
None yet
Development

No branches or pull requests

2 participants