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

wmic failed on windows 10 / japanese #289

Open
philopon opened this issue Jun 3, 2016 · 0 comments
Open

wmic failed on windows 10 / japanese #289

philopon opened this issue Jun 3, 2016 · 0 comments

Comments

@philopon
Copy link

philopon commented Jun 3, 2016

Hi, I encounter this error (some information are masked):

> chcp 65001
> anaconda -t ..\anaconda.token worker run WORKERNAME
Using Anaconda Cloud api site https://api.anaconda.org
Using conda build directory: C:\Users\USERNAME\Miniconda3\conda-bld\win-64
WorkerConfiguration
        pid: None
        dist: 10
        hostname: HOSTNAME
        name: WORKERNAME
        platform: win-64
        queue: QUEUENAME
        username: USERNAME
        worker_id: WORKERID

[BinstarError] Failed on ['cmd', '/c', 'wmic', 'logicaldisk', 'get', 'size,freespace,caption,description,volumename']
> wmic logicaldisk get size,freespace,caption,description,volumename
Caption  Description           FreeSpace    Size          VolumeName
C:       ローカル固定ディスク  38008799232  156508352512
E:       ローカル固定ディスク
F:       CD-ROM ディスク

I think wmic don't recognize chcp, so I rewrote worker_stats.py:24 to

disk = _check_output(disk_args).decode("Shift-JIS")

and It seems working fine.

> anaconda -t ..\anaconda.token worker run WORKERNAME
Using Anaconda Cloud api site https://api.anaconda.org
Using conda build directory: C:\Users\USERNAME\Miniconda3\conda-bld\win-64
WorkerConfiguration
        pid: None
        dist: 10
        hostname: HOSTNAME
        name: WORKERNAME
        platform: win-64
        queue: QUEUENAME
        username: USERNAME
        worker_id: WORKERID

[WARNING] Could not link the pid to a pidfile
Working Forever
Worker is waiting for the next job

Thanks.

My Environment

OS: Windows 10 64bit

> uname -a
MSYS_NT-10.0 HOSTNAME 2.5.0(0.295/5/3) 2016-03-31 18:47 x86_64 Msys

> conda -V
conda 4.0.7

>  conda list --export
# This file may be used to create an environment using:
# $ conda create --name <env> --file <this file>
# platform: win-64
anaconda-build=1.15.0=py35_0
anaconda-client=1.4.0=py35_0
clyent=1.2.2=py35_0
conda=4.0.7=py35_0
conda-build=1.20.3=py35_0
conda-env=2.4.5=py35_0
jinja2=2.8=py35_1
markupsafe=0.23=py35_2
menuinst=1.3.2=py35_0
patch=2.5.9=1
pip=8.1.1=py35_1
psutil=4.2.0=py35_0
pycosat=0.6.1=py35_0
pycrypto=2.6.1=py35_3
python=3.5.1=4
python-dateutil=2.5.3=py35_0
pytz=2016.4=py35_0
pywin32=220=py35_1
pyyaml=3.11=py35_3
requests=2.9.1=py35_0
setuptools=20.3=py35_0
six=1.10.0=py35_0
vs2015_runtime=14.00.23026.0=0
wheel=0.29.0=py35_0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant