pymad / cpymad

cPyMAD is a python interface to Mad-X using cython and libmadx

Home Page:http://cern.ch/pymad

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jpymad create_model() problem

Eothred opened this issue · comments

Having a problem with the ipac11/plot_beta.py demo (using start='service'). Perhaps it is related to #1 on some level?

$ python2 plot_beta.py
log4j:WARN No appenders could be found for logger (org.springframework.context.support.ClassPathXmlApplicationContext).
log4j:WARN Please initialize the log4j system properly.
... started.
[]
Traceback (most recent call last):
File "plot_beta.py", line 16, in
model = pms.create_model('lhc')
File "/home/ylevinse/.local/lib/python2.7/site-packages/cern/jpymad/service.py", line 94, in create_model
jmm.init()
File "/usr/lib/python2.7/site-packages/py4j/java_gateway.py", line 432, in call
self.target_id, self.name)
File "/usr/lib/python2.7/site-packages/py4j/protocol.py", line 267, in get_return_value
value = OUTPUT_CONVERTER[type](answer[2:], gateway_client)
KeyError: u'c'
Stopping java process seemed to work.

I think this was working at some point, the issue can perhaps be closed.

Moved over to jpymad repository.