ROOT cannot be imported. Is ROOT installed with PyROOT enabled?

Hey guys,

I am trying to install rootpy on windows using command prompt but running into this error:

H:>python -m pip install rootpy
Collecting rootpy
Using cached https://files.pythonhosted.org/packages/55/e5/07a19ef0bb1111039b69202ba30550cc65c6d295bb17a81861b5994bd3c2/rootpy-1.0.1.tar.gz
Complete output from command python setup.py egg_info:
ROOT cannot be imported. Is ROOT installed with PyROOT enabled?

----------------------------------------

Command “python setup.py egg_info” failed with error code 1 in c:\users\bhesr928\appdata\local\temp\pip-install-d_mial\rootpy\

I have installed an instance of ROOT using the .exe file on the ROOT official page.
C:\root_v5.34.36\bin

During installation, I have selected the option to add ROOT to Environmental variable PATH.

I still get the same error when I try installing rootpy from cmd.

I even went into the C:\root_v5.34.36\bin folder and ran thisroot.bat

I did check the environmental variables and added C:\root_v5.34.36\bin to ROOT and the same to PYTHONPATH as well, but the problem still persists.

I can confirm that ROOT is installed properly as when I type in root into cmd I get this:
H:>root
Error in <TWinNTSystem::Unable to find’ for reading:>: C:\Program Files\PuTTY"*


  •                                     *
    
  •    W E L C O M E  to  R O O T       *
    
  •                                     *
    
  • Version 5.34/36 5 April 2016 *
  •                                     *
    
  • You are welcome to visit our Web site *
  •      http://root.cern.ch            *
    
  •                                     *
    

ROOT 5.34/36 (v5-34-36@v5-34-36, Apr 05 2016, 10:25:45 on win32)

CINT/ROOT C/C++ Interpreter version 5.18.00, July 2, 2010
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0]

Any help or advice would be highly appreciated.

Thanks in advance.


ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided


Dear @Srinidhi_Bheesette

Please note that rootpy is an external package to ROOT and thus we do not provide support for it.

On the other hand, you are running with ROOT 5, which is not supported anymore. Would it be possible for you to move to ROOT 6?

Best,
Enric

Hey Enric,

Thanks for your reply on the post.

I might have followed an old question about installing ROOT on windows and thus installed ROOT 5. I have upgraded to ROOT 6.

Do you know which is the best forum to seek answer to my issue?

Thanks in advance.

Cheer,
Shri

Hi Shri,

You can try contacting any of the rootpy developers:

Cheers,

Enric

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