Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#58942 closed defect (fixed)

PyROOT cannot work under ROOTv6.18

Reported by: yszhang95 Owned by: cjones051073 (Chris Jones)
Priority: Normal Milestone:
Component: ports Version: 2.5.4
Keywords: Cc: mojca (Mojca Miklavec)
Port: root6

Description

When I used python to import ROOT, I have the following,

Python 3.7.4 (default, Jul 11 2019, 01:08:00) 
[Clang 10.0.1 (clang-1001.0.46.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ROOT
Error in <TCling::RegisterModule>: cannot find dictionary module libPyROOT_rdict.pcm
>>>

"It’s most likely a problem related to the fact that libraries and their respective dictionaries must be in the same directory (a new requirement since ROOT 6.18).", quoted from the link https://root-forum.cern.ch/t/error-when-importing-root-in-python3/35881 Also, useful link from the link above, https://root-forum.cern.ch/t/pyroot-at-lxplus/35393

Thanks.

Change History (3)

comment:1 Changed 5 years ago by jmroot (Joshua Root)

Cc: mojca added
Keywords: root6 PyROOT removed
Owner: set to cjones051073
Port: root6 added
Status: newassigned

comment:2 Changed 5 years ago by Chris Jones <jonesc@…>

Resolution: fixed
Status: assignedclosed

In 68f927856b9b295b78a40b3cd953e0f1032b779f/macports-ports (master):

root6: fix python import issue
Closes: #58942

comment:3 Changed 5 years ago by cjones051073 (Chris Jones)

Thanks. Should be fixed in the above commit.

Note: See TracTickets for help on using tickets.