Lxplus ROOT, showing error on installing root_pandas

Hey,
I am trying to install root_pandas in lxplus terminal but it shows this:-
[sraj@lxplus778 ~]$ pip install root_pandas
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won’t be maintained after that date. A future versi
on of pip will drop support for Python 2.7.
Collecting root_pandas
Requirement already satisfied: root-numpy in /cvmfs/sft.cern.ch/lcg/views/LCG_96/x86_64-centos7-gcc8-opt/lib/python2.7/site-packages (from root_pandas) (4.8.0)
Requirement already satisfied: pandas>=0.18.0 in /cvmfs/sft.cern.ch/lcg/views/LCG_96/x86_64-centos7-gcc8-opt/lib/python2.7/site-packages (from root_pandas) (0.24.2)
Requirement already satisfied: numpy in /cvmfs/sft.cern.ch/lcg/views/LCG_96/x86_64-centos7-gcc8-opt/lib/python2.7/site-packages (from root_pandas) (1.16.4)
Requirement already satisfied: python-dateutil>=2.5.0 in /cvmfs/sft.cern.ch/lcg/views/LCG_96/x86_64-centos7-gcc8-opt/lib/python2.7/site-packages (from pandas>=0.18.0->ro
ot_pandas) (2.8.0)
Requirement already satisfied: pytz>=2011k in /cvmfs/sft.cern.ch/lcg/views/LCG_96/x86_64-centos7-gcc8-opt/lib/python2.7/site-packages (from pandas>=0.18.0->root_pandas)
(2019.1)
Requirement already satisfied: six>=1.5 in /cvmfs/sft.cern.ch/lcg/views/LCG_96/x86_64-centos7-gcc8-opt/lib/python2.7/site-packages (from python-dateutil>=2.5.0->pandas>=
0.18.0->root_pandas) (1.12.0)
Installing collected packages: root-pandas
ERROR: Could not install packages due to an EnvironmentError: [Errno 30] Read-only file system: ‘/cvmfs/sft.cern.ch/lcg/releases/Python/2.7.16-e553a/x86_64-centos7-gcc8-
opt/lib/python2.7/site-packages/root_pandas-0.7.0.dist-info’

Can anyone please help me how to fix this?

Hi,

maybe try instead

pip3 install root_pandas --user

It works for me.

Thank you so much for your reply. It has been installed, but I do not understand why am I getting the error again,
3 import numpy as np
4 import pandas as pd
----> 5 import root_pandas as rpd
6 from ROOT import TFile, TH1F
7 import copy

ImportError: No module named root_pandas

I bet this happened because you confused python2 with python3. Which executable you ran for your test above, python or python2 or python3?

python3, I got this,
[sraj@lxplus7101 ~]$ python3
Python 3.6.8 (default, Nov 16 2020, 16:55:22)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux
Type “help”, “copyright”, “credits” or “license” for more information.

import sys
‘root_pandas’ in sys.module
Traceback (most recent call last):
File “”, line 1, in
AttributeError: module ‘sys’ has no attribute ‘module’

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.