I installed Ubuntu on my Windows 10 computer. I have python installed on a certain directory. After opening the ubuntu shell, I type cd /mnt/c/1. Then I type in ls and I see that I have Python 3.7.4 installed. Now, if I type root, then I am able to use root. However, if I have a python file that has import ROOT, I get an import error. In other words if I type,
/mnt/c/1$ python /mnt/c/1/writeroot.py
Traceback (most recent call last):
File "/mnt/c/1/writeroot.py", line 2, in <module>
import ROOT
File "/home/cucip/builddir/lib/ROOT.py", line 24, in <module>
import cppyy
File "/home/cucip/builddir/lib/cppyy.py", line 61, in <module>
import libPyROOT as _backend
ImportError: dynamic module does not define module export function (PyInit_libPyROOT)
If I type /mnt/c/1$ python
>>>import ROOT
I get this error
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/cucip/builddir/lib/ROOT.py", line 24, in <module>
import cppyy
File "/home/cucip/builddir/lib/cppyy.py", line 61, in <module>
import libPyROOT as _backend
ImportError: dynamic module does not define module export function (PyInit_libPyROOT)
However, if I type:
/mnt/c/1$ root
I get
/mnt/c/1$ root
------------------------------------------------------------
| Welcome to ROOT 6.18/02 https://root.cern |
| (c) 1995-2019, The ROOT Team |
| Built for linuxx8664gcc on Sep 05 2019, 00:50:00 |
| From tag , 23 August 2019 |
| Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
------------------------------------------------------------
root [0] 2+2
(int) 4
How can I fix these errors?
ROOT Version: 6.18/02
Platform: Not Provided
Compiler: Not Provided