# Compatibility of python library uproot with C++ (and ROOT) based framework for data analysis

**URL:** <https://root-forum.cern.ch/t/compatibility-of-python-library-uproot-with-c-and-root-based-framework-for-data-analysis/56148>\
**Category:** Newbie\
**Tags:** python, root\
**Created:** [August 25, 2023, 4:47pm UTC](https://root-forum.cern.ch/t/compatibility-of-python-library-uproot-with-c-and-root-based-framework-for-data-analysis/56148 "2023-08-25T16:47:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarketaPeskova](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/57b2e6/32.png) [@MarketaPeskova](https://root-forum.cern.ch/u/MarketaPeskova)\
**Post date:** [August 25, 2023, 4:47pm UTC](https://root-forum.cern.ch/t/compatibility-of-python-library-uproot-with-c-and-root-based-framework-for-data-analysis/56148/1 "2023-08-25T16:47:16Z")

</div>

Hello,

I am new to python and pyroot, I deal with a problem of compatibility of my analysis framework (PHAST, for ref), based on C++ and root, with python uproot library. It does not know the PHAST classes, so the root dictionary (and generated streamers) has to be loaded first. I have been advised by a colleague that in C++ root the procedure is loading by CINT macro “R\_\_LOAD\_LIBRARY(lib/libPhast.so);”. But he does not know how to do it in python, uproot. Could you give me some advice on this, or some ideas where to look?

Thank you for any lead!  
Marketa

_ROOT Version:_ 6.28/00  
_Platform:_ CentOS 7 Linux  
_Compiler:_ gcc 11

* * *

---

<div class="post-metadata">

**Author:** ![vpadulan](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/vpadulan/32/25315_2.png) [@vpadulan](https://root-forum.cern.ch/u/vpadulan)\
**Post date:** [August 26, 2023, 1:02pm UTC](https://root-forum.cern.ch/t/compatibility-of-python-library-uproot-with-c-and-root-based-framework-for-data-analysis/56148/2 "2023-08-26T13:02:05Z")

</div>

Dear @MarketaPeskova ,

I am not sure about uproot usage since it is not based on ROOT. Are you having any issue when reading your data with ROOT (or PyROOT if you are writing your code in Python)? In general, for data analysis purposes ROOT offers [RDataFrame](https://root.cern/doc/master/classROOT_1_1RDataFrame.html) as a high-level interface.

Cheers,  
Vincenzo
