migrate from linux to windows: conda build with restriced user rights, cannot build pycairo

I have to use windows in my new company. Hence, I am migrating my python environment from Linux (University was great) to windows. I thought it would be easy thanks to anaconda python but building packages using conda-buildis not straightforward:

`conda skeleton pypi pycairo --version 1.8.8`

It fails with following message:

Traceback (most recent call last):
File "C:xxxAppDataLocalContinuumAnaconda3Scriptsconda-skelet
on-script.py", line 4, in <module>
sys.exit(main())
File "C:xxxAppDataLocalContinuumAnaconda3libsite-packagesco
nda_buildmain_skeleton.py", line 272, in main
args_func(args, p)
File "C:xxxAppDataLocalContinuumAnaconda3libsite-packagesco
nda_buildmain_build.py", line 468, in args_func
args.func(args, p)
File "C:xxxAppDataLocalContinuumAnaconda3libsite-packagesco
nda_buildmain_skeleton.py", line 286, in execute
pypi.main(args, parser)
File "C:xxxAppDataLocalContinuumAnaconda3libsite-packagesco
nda_buildpypi.py", line 341, in main
get_package_metadata(args, package, d, data)
File "C:xxxAppDataLocalContinuumAnaconda3libsite-packagesco
nda_buildpypi.py", line 478, in get_package_metadata
python_version=args.python_version)
File "C:xxxAppDataLocalContinuumAnaconda3libsite-packagesco
nda_buildpypi.py", line 741, in get_pkginfo
run_setuppy(src_dir, tempdir, python_version)
File "C:xxxAppDataLocalContinuumAnaconda3libsite-packagesco
nda_buildpypi.py", line 788, in run_setuppy
apply_patch(join(stdlib_dir, 'distutils'), patch)
File "C:xxxAppDataLocalContinuumAnaconda3libsite-packagesco
nda_buildsource.py", line 254, in apply_patch
check_call([patch, ] + patch_args, cwd=src_dir)
File "C:xxxAppDataLocalContinuumAnaconda3libsubprocess.py",
line 556, in check_call
retcode = call(*popenargs, **kwargs)
File "C:xxxAppDataLocalContinuumAnaconda3libsubprocess.py",
line 537, in call
with Popen(*popenargs, **kwargs) as p:
File "C:xxxAppDataLocalContinuumAnaconda3libsubprocess.py",
line 859, in __init__
restore_signals, start_new_session)
File "C:xxxAppDataLocalContinuumAnaconda3libsubprocess.py",
line 1112, in _execute_child
startupinfo)
OSError: [WinError 740] The requested process requires elevation

Can I circumvent that somehow ? e.g install conda to a different directory or maybe using conda convert ? The example using pyinstruments fails with the same error message.


Source: windows

Leave a Reply