Skip to content
This repository has been archived by the owner on Dec 6, 2022. It is now read-only.

create_model() problem #1

Open
coldfix opened this issue Jun 28, 2014 · 0 comments
Open

create_model() problem #1

coldfix opened this issue Jun 28, 2014 · 0 comments

Comments

@coldfix
Copy link
Member

coldfix commented Jun 28, 2014

Copied over from an old cpymad issue. Not sure if this is still broken.

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.

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

No branches or pull requests

1 participant