#3392 closed defect (fixed)
OMCSession() function can not connect to OMC server
Reported by: | dietmarw | Owned by: | sjoelund.se |
---|---|---|---|
Priority: | high | Milestone: | 1.9.4 |
Component: | OMPython | Version: | trunk |
Keywords: | Cc: |
Description
Running the following will give an error:
>>> from OMPython import OMCSession >>> OMCSession() 2015-07-30 11:29:44,989 - OMCSession - ERROR - OMC Server is down. Please start it! Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.7/dist-packages/OMPython/__init__.py", line 198, in __init__ self._connect_to_omc() File "/usr/local/lib/python2.7/dist-packages/OMPython/__init__.py", line 143, in _connect_to_omc raise Exception Exception
It was tried setting OPENMODELICAHOME=/usr/bin/omc but that did not help either. So I guess some path variable is missing.
This seems to be a regression bug as OMCSession() used to work in the expected way earlier this year (used as part of the icon generator script of om)
Change History (8)
comment:1 Changed 9 years ago by dietmarw
- Component changed from OMOptim to OMPython
- Owner changed from hubert.thieriot to alash325
comment:2 Changed 9 years ago by sjoelund.se
comment:3 Changed 9 years ago by sjoelund.se
- Owner changed from alash325 to sjoelund.se
- Status changed from new to accepted
comment:4 Changed 9 years ago by sjoelund.se
- Resolution set to fixed
- Status changed from accepted to closed
comment:5 Changed 9 years ago by dietmarw
Thanks. It works now as expected.
comment:6 Changed 9 years ago by dietmarw
- Milestone changed from Future to 1.9.4
comment:7 Changed 8 years ago by sjoelund.se
- Milestone changed from 1.9.4 to 1.9.4-1.9.x
Milestone renamed
comment:8 Changed 8 years ago by sjoelund.se
- Milestone changed from 1.9.4-1.9.x to 1.9.4
Milestone renamed
It seems the OMConfig.py was not included in the package. OMPython 2.0.2 will now look in the PATH at run-time instead of during pip sdist.