Skip to content

Knitro attribute not available on Knitro 13.2 #128

@flucoe

Description

@flucoe

Hi Jeff,

I was trying to use Knitro but I'm getting an odd message for version 13.2.0

Specifically, I can import it (and actually use it for non-pyblp things, such as the examples*.py provided with Knitro) but when defining the optimization (kn = pyblp.Optimization('knitro')) I get

  File [relevant_path/] pyblp/configurations/optimization.py", line 470, in knitro_context_manager
    knitro_context = knitro.KTR_new()
AttributeError: module 'knitro' has no attribute 'KTR_new'

I tried this on my local machine and on an HPRC system (to make sure it was not my installation that was generating the problem), and in both cases I get the same message (with different path to optimization.py, of course). Any ideas of what could be happening? I was not getting this with previous versions of Knitro such as 13.0.1.

Also, I can I use Knitro without trouble outside pyblp.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions