dmwm / cmssh

Interactive shell for CMS experiment
http://cms.cern.ch/
7 stars 2 forks source link

linux installation lacks two packages #48

Closed heinzK1X closed 11 years ago

heinzK1X commented 11 years ago

Hello,

I just installed on lxplus. Two pip packages were missing to make it work: pytz pycrypto

I just added then in line 825 of cmssh_install.py to the std_pkgs list.

cheers, Heiner

vkuznet commented 11 years ago

could you please be more explicit, which part didn't work? I'm pretty sure I install cmssh on lxplus several times and did not required neither pytz or pycrypto. I'm not against adding them into std_pkgs, but rather would like to understand the reason why they are needed and what did not work for you.

heinzK1X commented 11 years ago

Hello,

sorry, you're right, I should have asked that myself. The machine itself is not part of lxplus, but based at cern and running a fresh SLC5.9 installation.

Ze problem: Installation went fine, but upon starting an exception was thrown: (1) no module named pytz, after adding to script and installing again, (2) no module named Crypto, for which I added pycrypto.

After this, cmssh started properly. After entering passphrase for my user key.kem I get "ERROR: writing RSA key" but some grid tools do work properly, e.g. ls T2_DE_RWTH:/user/... But this is probably another issue..

Best, Heiner

Am 19.02.2013 um 15:40 schrieb Valentin Kuznetsov:

could you please be more explicit, which part didn't work? I'm pretty sure I install cmssh on lxplus several times and did not required neither pytz or pycrypto. I'm not against adding them into std_pkgs, but rather would like to understand the reason why they are needed and what did not work for you.

— Reply to this email directly or view it on GitHub.

vkuznet commented 11 years ago

what is the name of machine? Is it accessible for anyone with lxplus account?

On Feb 19, 2013, at ,Feb 19, 11:19 AM, heinzK1X wrote:

Hello,

sorry, you're right, I should have asked that myself. The machine itself is not part of lxplus, but based at cern and running a fresh SLC5.9 installation.

Ze problem: Installation went fine, but upon starting an exception was thrown: (1) no module named pytz, after adding to script and installing again, (2) no module named Crypto, for which I added pycrypto.

After this, cmssh started properly. After entering passphrase for my user key.kem I get "ERROR: writing RSA key" but some grid tools do work properly, e.g. ls T2_DE_RWTH:/user/... But this is probably another issue..

Best, Heiner

Am 19.02.2013 um 15:40 schrieb Valentin Kuznetsov:

could you please be more explicit, which part didn't work? I'm pretty sure I install cmssh on lxplus several times and did not required neither pytz or pycrypto. I'm not against adding them into std_pkgs, but rather would like to understand the reason why they are needed and what did not work for you.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub.

heinzK1X commented 11 years ago

you can try from lxplus: pcac3b04.cern.ch but I had to manually my own account. Please try!

Am 19.02.2013 um 17:30 schrieb Valentin Kuznetsov:

what is the name of machine? Is it accessible for anyone with lxplus account?

On Feb 19, 2013, at ,Feb 19, 11:19 AM, heinzK1X wrote:

Hello,

sorry, you're right, I should have asked that myself. The machine itself is not part of lxplus, but based at cern and running a fresh SLC5.9 installation.

Ze problem: Installation went fine, but upon starting an exception was thrown: (1) no module named pytz, after adding to script and installing again, (2) no module named Crypto, for which I added pycrypto.

After this, cmssh started properly. After entering passphrase for my user key.kem I get "ERROR: writing RSA key" but some grid tools do work properly, e.g. ls T2_DE_RWTH:/user/... But this is probably another issue..

Best, Heiner

Am 19.02.2013 um 15:40 schrieb Valentin Kuznetsov:

could you please be more explicit, which part didn't work? I'm pretty sure I install cmssh on lxplus several times and did not required neither pytz or pycrypto. I'm not against adding them into std_pkgs, but rather would like to understand the reason why they are needed and what did not work for you.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub.

vkuznet commented 11 years ago

nope, it does not let me in, so it does not use standard lxplus authentication.

Anyway, I need to check if addition of pytz/pycrypto will not break other platforms (SLC5 and OSX). Since cmssh is installed with pip, you can add any package including these two once cmssh is installed, e.g.

cmssh> pip install pycrypto

On Feb 19, 2013, at ,Feb 19, 11:36 AM, heinzK1X wrote:

you can try from lxplus: pcac3b04.cern.ch but I had to manually my own account. Please try!

Am 19.02.2013 um 17:30 schrieb Valentin Kuznetsov:

what is the name of machine? Is it accessible for anyone with lxplus account?

On Feb 19, 2013, at ,Feb 19, 11:19 AM, heinzK1X wrote:

Hello,

sorry, you're right, I should have asked that myself. The machine itself is not part of lxplus, but based at cern and running a fresh SLC5.9 installation.

Ze problem: Installation went fine, but upon starting an exception was thrown: (1) no module named pytz, after adding to script and installing again, (2) no module named Crypto, for which I added pycrypto.

After this, cmssh started properly. After entering passphrase for my user key.kem I get "ERROR: writing RSA key" but some grid tools do work properly, e.g. ls T2_DE_RWTH:/user/... But this is probably another issue..

Best, Heiner

Am 19.02.2013 um 15:40 schrieb Valentin Kuznetsov:

could you please be more explicit, which part didn't work? I'm pretty sure I install cmssh on lxplus several times and did not required neither pytz or pycrypto. I'm not against adding them into std_pkgs, but rather would like to understand the reason why they are needed and what did not work for you.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHub.

heinzK1X commented 11 years ago

I tried that in the first place, but after the "no module named ..." exception, the environment wasn't loaded completely. I was left with a bare ipython, I guess, where pip wasn't yet loaded. Or at least the pip command didn't work.

vkuznet commented 11 years ago

Fixed: 042622dc9b309ec5114854ef597cc8b46840cd30