BCDA-APS / APSshare-anaconda-management

issues-only repository for the /APSshare/anaconda installations
0 stars 0 forks source link

install VScode #4

Closed prjemian closed 4 years ago

prjemian commented 4 years ago

@qzhang234 : You requested VScode to be installed in Python on APSshare

This issue will track the details and notes of that request.

This SO article is not much help, though:

qzhang234 commented 4 years ago

Pete:

Thanks!

Just some background info:

  1. The reason I’m thinking about installing VS Code (or PyCharm or any other mainstream IDE) is because I thought it would be neat to have the IPython and (advanced) text editing interface in one place;

  2. I’ve managed to install VS Code in a Conda VE under qzhang234, but I can’t get pass admin auth when under 8idiuser. Not sure why though.

Thanks,

QZ


From: Pete R Jemian notifications@github.com Sent: Wednesday, September 4, 2019 11:52:04 AM To: BCDA-APS/APSshare-anaconda-issues APSshare-anaconda-issues@noreply.github.com Cc: Zhang, Qingteng qzhang234@anl.gov; Mention mention@noreply.github.com Subject: [BCDA-APS/APSshare-anaconda-issues] install VScode in /APSshare/anaconda3/x86_64 (#4)

@qzhang234https://github.com/qzhang234 : You requested VScode to be installed in Python on APSshare

This issue will track the details and notes of that request.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/BCDA-APS/APSshare-anaconda-issues/issues/4?email_source=notifications&email_token=ALPJBQQPNPQOIMKAXU7XU43QH7RTJA5CNFSM4ITUHF4KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HJJY2VA, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALPJBQVCQIIJ4INAXRC3SLLQH7RTJANCNFSM4ITUHF4A.

prjemian commented 4 years ago

Yeah. The problem is that you cannot sudo to root and install anything on APS linux computers. Users don't get root access permissions. What I was reading about install VScode suggested to me that it had to be installed in the base environment. I'm working on updating Python3 now but it will take longer than expected since I ran into troubles when I tried about two weeks ago. Might just have to reinstall the whole thing. Not happy with that.

How did you install VScode into a virtual environment? Was that using conda install?

qzhang234 commented 4 years ago

Pete:

This is the error I got when I tried to install on 8idiuser. Same thing worked when I install under VE QZ_Py_Test when logged in as qzhang234.

Any suggestions why this might be the case? I thought you can bypass root auth by using VE ...

Thanks,

QZ


From: Pete R Jemian notifications@github.com Sent: Wednesday, September 4, 2019 12:01 PM To: BCDA-APS/APSshare-anaconda-issues APSshare-anaconda-issues@noreply.github.com Cc: Zhang, Qingteng qzhang234@anl.gov; Mention mention@noreply.github.com Subject: Re: [BCDA-APS/APSshare-anaconda-issues] install VScode (#4)

Yeah. The problem is that you cannot sudo to root and install anything on APS linux computers. Users don't get root access permissions. What I was reading about install VScode suggested to me that it had to be installed in the base environment. I'm working on updating Python3 nowhttps://github.com/BCDA-APS/APSshare-anaconda-issues/issues/3 but it will take longer than expected since I ran into troubles when I tried about two weeks ago. Might just have to reinstall the whole thing. Not happy with that.

How did you install VScode into a virtual environment? Was that using conda install?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/BCDA-APS/APSshare-anaconda-issues/issues/4?email_source=notifications&email_token=ALPJBQR4MKDYBW3XTPVVZC3QH7ZZHA5CNFSM4ITUHF4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD54OE6A#issuecomment-528015992, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALPJBQWN4CC4PRLF6XM7O4LQH7ZZHANCNFSM4ITUHF4A.

prjemian commented 4 years ago

Can't bypass root auth. The defense for that is robust. Did not see the error message? Can you post it again?

qzhang234 commented 4 years ago

Here's the error message. Guess the image is not included into the discussion thread when you just reply to the email ...

Screen Shot 2019-09-01 at 1 26 34 AM
prjemian commented 4 years ago

Yup. Need IT to install that for you. On a per machine basis. And I'm not sure how well that cooperates with the system python (/usr/bin and /usr/lib).

There must be a way to install this with anaconda. But I must put this aside for now to work on https://github.com/BCDA-APS/APSshare-anaconda-issues/issues/3.

qzhang234 commented 4 years ago

Yes. The whole reason I used VS Code instead of the other zillion IDEs is because I thought it came with anaconda and APS has anaconda. But I agree anaconda3 (namely issue #3) is way, way more important than this. Please feel free to close this issue

prjemian commented 4 years ago

Not closing yet, might be able to select VScode during the install process (as the docs suggest).

prjemian commented 4 years ago

Just installed a local copy of everything we have on /APSshare/anaconda3/x86_64 (Python3, 64-bit). Launched anaconda-navigator and pressed the "install" button for VScode. This screen comes up asking for sysAdmin credentials. Clipboard01

prjemian commented 4 years ago

Summary is: we cannot install VS Code as part of /APSshare python since it requires sysAdmin credentials (and likely installs only on the local workstation).

Too bad.