OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Spyder Python package not found for pyROOT

  • Thread starter Thread starter Niandra Lades
  • Start date Start date
N

Niandra Lades

Guest
I am trying to use pyROOT using Spyder on my Ubuntu Linux machine. I have found the pyROOT (or so I think) directory to add to Spyder using the Tools, PYTHONPATH manager by entering the following command into the pyROOT dedicated terminal such that:

Code:
>>> import pathlib, ROOT; pathlib.Path(ROOT.__file__).resolve().parent
PosixPath('/snap/root-framework/931/usr/local/lib/ROOT')

Still, after adding the path to the PYTHONPATH manager

Code:
/snap/root-framework/931/usr/local/lib/ROOT/_pythonization
/snap/root-framework/931/usr/local/lib/ROOT

I still get the error ModuleNotFoundError: No module named 'ROOT'. How could I fix this issue?
<p>I am trying to use pyROOT using Spyder on my Ubuntu Linux machine. I have found the pyROOT (or so I think) directory to add to Spyder using the Tools, PYTHONPATH manager by entering the following command into the pyROOT dedicated terminal such that:</p>
<pre class="lang-py prettyprint-override"><code>>>> import pathlib, ROOT; pathlib.Path(ROOT.__file__).resolve().parent
PosixPath('/snap/root-framework/931/usr/local/lib/ROOT')
</code></pre>
<p>Still, after adding the path to the PYTHONPATH manager</p>
<pre><code>/snap/root-framework/931/usr/local/lib/ROOT/_pythonization
/snap/root-framework/931/usr/local/lib/ROOT
</code></pre>
<p>I still get the error <code>ModuleNotFoundError: No module named 'ROOT'</code>. How could I fix this issue?</p>
 

Latest posts

Top