{"action":"opened","issue":{"url":"https://api.github.com/repos/conda/conda/issues/3343","repository_url":"https://api.github.com/repos/conda/conda","labels_url":"https://api.github.com/repos/conda/conda/issues/3343/labels{/name}","comments_url":"https://api.github.com/repos/conda/conda/issues/3343/comments","events_url":"https://api.github.com/repos/conda/conda/issues/3343/events","html_url":"https://github.com/conda/conda/issues/3343","id":173127497,"number":3343,"title":"Conda Offline Package Install Issue","user":{"login":"scarescrow","id":3036642,"avatar_url":"https://avatars.githubusercontent.com/u/3036642?v=3","gravatar_id":"","url":"https://api.github.com/users/scarescrow","html_url":"https://github.com/scarescrow","followers_url":"https://api.github.com/users/scarescrow/followers","following_url":"https://api.github.com/users/scarescrow/following{/other_user}","gists_url":"https://api.github.com/users/scarescrow/gists{/gist_id}","starred_url":"https://api.github.com/users/scarescrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scarescrow/subscriptions","organizations_url":"https://api.github.com/users/scarescrow/orgs","repos_url":"https://api.github.com/users/scarescrow/repos","events_url":"https://api.github.com/users/scarescrow/events{/privacy}","received_events_url":"https://api.github.com/users/scarescrow/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-25T06:57:52Z","updated_at":"2016-08-25T06:57:52Z","closed_at":null,"body":"Hi, I faced an issue during offline install of packages. If space is present in path to a package, installing of package fails. \r\n\r\nCommand was \r\n\r\n`conda install --offline -f win-64-gevent-1.1.1-py27_0.tar.bz2`\r\n\r\n## Stack Trace\r\n\r\n\tAn unexpected error has occurred, please consider sending the\r\n\tfollowing traceback to the conda GitHub issue tracker at:\r\n\r\n\t\thttps://github.com/conda/conda/issues\r\n\r\n\tInclude the output of the command 'conda info' in your report.\r\n\r\n\r\n\tTraceback (most recent call last):\r\n\t  File \"C:\\Anaconda\\Scripts\\conda-script.py\", line 5, in <module>\r\n\t\tsys.exit(main())\r\n\t  File \"C:\\Anaconda\\lib\\site-packages\\conda\\cli\\main.py\", line 120, in main\r\n\t\texit_code = args_func(args, p)\r\n\t  File \"C:\\Anaconda\\lib\\site-packages\\conda\\cli\\main.py\", line 130, in args_func\r\n\r\n\t\texit_code = args.func(args, p)\r\n\t  File \"C:\\Anaconda\\lib\\site-packages\\conda\\cli\\main_install.py\", line 78, in ex\r\n\tecute\r\n\t\tinstall(args, parser, 'install')\r\n\t  File \"C:\\Anaconda\\lib\\site-packages\\conda\\cli\\install.py\", line 203, in instal\r\n\tl\r\n\t\texplicit(args.packages, prefix, verbose=not args.quiet)\r\n\t  File \"C:\\Anaconda\\lib\\site-packages\\conda\\misc.py\", line 140, in explicit\r\n\t\texecute_actions(actions, index=index, verbose=verbose)\r\n\t  File \"C:\\Anaconda\\lib\\site-packages\\conda\\plan.py\", line 599, in execute_actio\r\n\tns\r\n\t\tinst.execute_instructions(plan, index, verbose)\r\n\t  File \"C:\\Anaconda\\lib\\site-packages\\conda\\instructions.py\", line 136, in execu\r\n\tte_instructions\r\n\t\tcmd(state, arg)\r\n\t  File \"C:\\Anaconda\\lib\\site-packages\\conda\\instructions.py\", line 78, in LINK_C\r\n\tMD\r\n\t\tdist, lt = split_linkarg(arg)\r\n\t  File \"C:\\Anaconda\\lib\\site-packages\\conda\\instructions.py\", line 74, in split_\r\n\tlinkarg\r\n\t\treturn (parts[0], int(LINK_HARD if len(parts) < 2 else parts[1]))\r\n\tValueError: invalid literal for int() with base 10: 'Files/Commvault/ContentStor\r\n\te/ContentAnalyzer/bin/::win-64-gevent-1.1.1-py27_0'\r\n\t\r\nThe issue was because the path to file is being split and typecast to int. So, if the path contains space, it will crash.\r\n\t\r\n## Conda Info: \r\n\r\n\tWarning: could not import binstar_client ('args' object has no attribute 'token'\r\n\t)Current conda install:\r\n\r\n\t\t\t\t platform : win-64\r\n\t\t\tconda version : 4.1.11\r\n\t\tconda-env version : 2.5.2\r\n\t  conda-build version : 1.3.5\r\n\t\t   python version : 2.7.7.final.0\r\n\t\t requests version : 2.11.1\r\n\t\t root environment : C:\\Anaconda  (writable)\r\n\t  default environment : C:\\Anaconda\r\n\t\t envs directories : C:\\Anaconda\\envs\r\n\t\t\tpackage cache : C:\\Anaconda\\pkgs\r\n\t\t\t channel URLs : https://repo.continuum.io/pkgs/free/win-64/\r\n\t\t\t\t\t\t\thttps://repo.continuum.io/pkgs/free/noarch/\r\n\t\t\t\t\t\t\thttps://repo.continuum.io/pkgs/pro/win-64/\r\n\t\t\t\t\t\t\thttps://repo.continuum.io/pkgs/pro/noarch/\r\n\t\t\t\t\t\t\thttps://repo.continuum.io/pkgs/msys2/win-64/\r\n\t\t\t\t\t\t\thttps://repo.continuum.io/pkgs/msys2/noarch/\r\n\t\t\t  config file : None\r\n\t\t\t offline mode : False\r\n\t\tis foreign system : False\r\n"}}
{"actor":{"display_login":"scarescrow"}}