Skip to Content.
Sympa Menu

opal - Re: [Opal] runopal: PathNameGenerator not found?

opal AT lists.psi.ch

Subject: The OPAL Discussion Forum

List archive

Re: [Opal] runopal: PathNameGenerator not found?


Chronological Thread  
  • From: "Adelmann Andreas (PSI)" <andreas.adelmann AT psi.ch>
  • To: Philippe Piot <philippe.piot AT gmail.com>
  • Cc: "opal AT lists.psi.ch" <opal AT lists.psi.ch>
  • Subject: Re: [Opal] runopal: PathNameGenerator not found?
  • Date: Wed, 29 Jun 2022 18:53:42 +0000
  • Accept-language: en-US, de-CH
  • Authentication-results: mc2.ethz.ch; iprev=pass (psi-seppmail1.ethz.ch) smtp.remote-ip=129.132.93.141; spf=pass smtp.mailfrom=psi.ch; dmarc=skipped

Hi Philippe to me it seams like the PYTHONPATH is not set correctly. 
In case you have the pyOPALTools installed in :$HOME/git you should set
PYTHONPATH like:


export PYTHONPATH=$HOME/git/pyOPALTools/$PYTHONPATH

Hope that helps, 

Cheers A
------
Dr. sc. math. Andreas (Andy) Adelmann
Head a.i. Labor for Scientific Computing and Modelling 
Paul Scherrer Institut OHSA/ CH-5232 Villigen PSI
Phone Office: xx41 56 310 42 33 Fax: xx41 56 310 31 91
Zoom ID: 470-582-4086 Password: AdA
Zoom Link: https://ethz.zoom.us/j/4705824086?pwd=dFcvT1pMMGY0bHg0dTNncUNZZTJkZz09

-------------------------------------------------------
Friday: ETH HPK G 28   +41 44 633 3076
============================================
The more exotic, the more abstract the knowledge, 
the more profound will be its consequences.
Leon Lederman 
============================================

On 29 Jun 2022, at 18:15, Philippe Piot <philippe.piot AT gmail.com> wrote:

All,
  Could somebody let me know what I may be doing from here:
 from runOPAL import OpalRunner, SlurmJob 
 complains there is no PathNameGenerator module.

see below for log. Thank you very much. Best,  -- Philippe.


(base) [ppiot@beboplogin1 opal_example_test_Ian]$ python3
Python 3.6.5 |Anaconda, Inc.| (default, Apr 29 2018, 16:14:56)
[GCC 7.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from runOPAL import OpalRunner, SlurmJob
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/lcrc/project/Bright-Beams/software/opal/runOPAL/runOPAL/__init__.py", line 2, in <module>
    from .opaldict import OpalDict
  File "/lcrc/project/Bright-Beams/software/opal/runOPAL/runOPAL/opaldict.py", line 1, in <module>
    from PathNameGenerator import PathNameGenerator
ModuleNotFoundError: No module named 'PathNameGenerator'




Archive powered by MHonArc 2.6.19.

Top of Page