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

create_model() problem #1

@coldfix

Description

@coldfix

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.

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