Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyESAPI: Getting Started. Value cannot be null #33

Open
AntonTroitskii opened this issue Aug 27, 2024 · 2 comments
Open

PyESAPI: Getting Started. Value cannot be null #33

AntonTroitskii opened this issue Aug 27, 2024 · 2 comments

Comments

@AntonTroitskii
Copy link

I am trying to do what is described here on our T-Box station.

import pyesapi
import atexit
app = pyesapi.CustomScriptExecutable.CreateApplication('test')
atexit.register(app.Dispose)

I have an error in my ouput:

ArgumentNullException                     Traceback (most recent call last)
Cell In[1], line 3
      1 import pyesapi
      2 import atexit
----> 3 app = pyesapi.CustomScriptExecutable.CreateApplication('test')
      4 atexit.register(app.Dispose)

ArgumentNullException: Value cannot be null.
   at System.Threading.Monitor.Enter(Object obj)
   at VMS.TPS.Common.Model.ApplicationBase.remove_OnDataReload(Action value)
   at VMS.TPS.Common.Model.StructureCodeTable.ResetInstance()
   at VMS.TPS.Common.Model.ApplicationBase.UninitializeDataObjectCache()
   at VMS.TPS.Common.Model.ApplicationNonAppFrame._Dispose()
   at VMS.TPS.Common.Model.ApplicationNonAppFrame.Dispose(Boolean A_0)
   at VMS.TPS.Common.Model.ApplicationBase.Dispose()
   at VMS.TPS.Common.Model.API.Application.CreateApplicationCommon(String scriptName, Func`2 createExecutionGuardFunc)

I am using pipenv to create environment for my jupyter-notebook.

pyesapi==0.2.5
├── numpy [required: Any, installed: 2.1.0]
├── pynetdicom [required: Any, installed: 2.1.1]
│ └── pydicom [required: >=2.4,<2.5, installed: 2.4.4]
├── pythonnet [required: Any, installed: 3.0.3]
│ └── clr-loader [required: >=0.2.6,<0.3.0, installed: 0.2.6]
│ └── cffi [required: >=1.13, installed: 1.17.0]
│ └── pycparser [required: Any, installed: 2.22]
├── pywin32 [required: Any, installed: 306]
└── scipy [required: Any, installed: 1.14.1]
└── numpy [required: >=1.23.5,<2.3, installed: 2.1.0]

Python 3.11.9

@fizxmike
Copy link
Member

What version of Eclipse is on your T-Box? Also, you must set database to research mode in RT Admin.

@AntonTroitskii
Copy link
Author

What version of Eclipse is on your T-Box?

We have 15.6 Eclipse on our T-box. By the way we have 16.1 version of our main Eclipse and I could connect via pyesapi using our common Eclipse station. But why can't I do this on our T-Box station?

Also, you must set database to research mode in RT Admin.
I set DataBase to research mode in RT Admin and it didn't change anithing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants