Skip to content

trying to separate pyDevSup as a module from IOC #9

@iljabek

Description

@iljabek

Hello,

I'm testing following design:

/opt/epics
          /modules
                  /[...]
                  /pyDevSup
                           /devsupApp
                           /mysupApp
                                     /fitting_sup.py
                                     /fitting_sup.db
                           /python3.5/linux-x86_64/fitting_sup.py
          /iocs
                  /iocmy
                           /myApp
                                  /fitting.py
                                  /fitting.db
                           /python3.5/linux-x86_64/fitting.py
  • once with the mysupApp inside the pyDevSup (which works fine)
  • and once with the myApp separate from pyDevSup, linking to its binary
  • the last one is giving me the following error
MY:PV: Exception in add_record
Traceback (most recent call last):
  File "/opt/epics/modules/pyDevSup/python3.5/linux-x86_64/devsup/db.py", line 338, in processLink
    mod = importmod(modname)
  File "/opt/epics/modules/pyDevSup/python3.5/linux-x86_64/devsup/util.py", line 18, in importmod
    return __import__(modname, fromlist=['__should_not_exist'])
ImportError: No module named 'fitting'

I guess it tries to look for modules in /opt/epics/modules/pyDevSup/python3.5/linux-x86_64/and does not know about /opt/epics/iocs/iocmy/python3.5/linux-x86_64/

does this error interpretation make sense? is this desired behaviour?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions