这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@goanpeca
Copy link
Contributor

No description provided.

@goanpeca goanpeca added this to the 4.6.0 milestone Jun 18, 2018
@goanpeca goanpeca self-assigned this Jun 18, 2018
@goanpeca goanpeca requested a review from a team as a code owner June 18, 2018 11:35
"""
code = None
if _ctypes:
params = " ".join(['"%s"' % (x, ) for x in cmd_line[1:]])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line looks off to me. Is it really ok to quote every single parameter? And why the single-value tuple for the string interpolation?

Copy link
Contributor Author

@goanpeca goanpeca Jun 18, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it really ok to quote every single parameter?

Well we could do it more conditionally based on the contents, but I think it is ok.

And why the single-value tuple for the string interpolation?

No real reason!

@kalefranz
Copy link
Contributor

INFO conda.core.initialize:run_plan(487): init_cmd_exe_registry: FileNotFoundError(2, 'The system cannot find the file specified', None, 2, None)
Traceback (most recent call last):
  File "C:\Users\admin\conda\conda\core\initialize.py", line 485, in run_plan
    result = globals()[step['function']](*step.get('args', ()), **step.get('kwargs', {}))
  File "C:\Users\admin\conda\conda\core\initialize.py", line 1064, in init_cmd_exe_registry
    prev_value, value_type = _read_windows_registry(target_path)
  File "C:\Users\admin\conda\conda\core\initialize.py", line 1036, in _read_windows_registry
    value_tuple = winreg.QueryValueEx(key, value_name)
FileNotFoundError: [WinError 2] The system cannot find the file specified

@goanpeca
Copy link
Contributor Author

goanpeca commented Jul 3, 2018

@kalefranz not sure about the error, as I have not change any code related to that.

Could you test on your VM?

Copy link
Contributor

@kalefranz kalefranz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good so far!

for_user = False

anaconda_prompt = on_win and args.anaconda_prompt
anaconda_prompt = on_win # TODO: probably remove and leave --anaconda-prompt as a flag
Copy link
Contributor

@kalefranz kalefranz Jul 3, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I must have put that in just for debug or something 😳

stdin = json.dumps(plan)
result = subprocess_call(
'sudo %s -m conda.initialize' % sys.executable,
'sudo %s -m conda.core.initialize' % sys.executable,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No wonder it wasn't working!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep I told you it was a silly bug 🤣

@goanpeca
Copy link
Contributor Author

goanpeca commented Jul 3, 2018

@kalefranz :-p

=================================== FAILURES ===================================
__________ IntegrationTests.test_install_update_deps_only_deps_flags ___________
Traceback (most recent call last):
  File "/home/circleci/conda/tests/test_create.py", line 838, in test_install_update_deps_only_deps_flags
    raise NotImplementedError()
NotImplementedError
=============================== warnings summary ===============================
None
  pytest-catchlog plugin has been merged into the core, please remove it from your requirements.

-- Docs: http://doc.pytest.org/en/latest/warnings.html
============================= 492 tests deselected =============================
 1 failed, 113 passed, 28 skipped, 492 deselected, 2 xfailed, 1 warnings in 1707.25 seconds 

@kalefranz
Copy link
Contributor

I added a merge commit to this PR to merge in master. Want to see the tests run.

@goanpeca
Copy link
Contributor Author

goanpeca commented Jul 8, 2018

@kalefranz tests pass now. This is ready AFAICT

@goanpeca goanpeca changed the title [WIP] Replace menuinst subprocessing by ctypes win elevation Replace menuinst subprocessing by ctypes win elevation Jul 8, 2018
@kalefranz
Copy link
Contributor

Was there anything else you wanted to do here? Didn't you want to try to finish something out that you sort of started thinking through? Is that done, or not as high priority now? I don't remember exactly what that was...

@goanpeca
Copy link
Contributor Author

goanpeca commented Jul 9, 2018

I could not make it work ( reattach the elevated process to the current condole to view anyboutput)

Copy link
Contributor

@kalefranz kalefranz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions
Copy link

github-actions bot commented Sep 2, 2021

Hi there, thank you for your contribution to Conda!

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

Please open a new issue or pull request if needed.

@github-actions github-actions bot added the locked [bot] locked due to inactivity label Sep 2, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 2, 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

Successfully merging this pull request may close these issues.

2 participants