Skip to content

BARON Unicode Decode Error #1275

Open
Open
@JoseMacherone

Description

@JoseMacherone

When solving a model using:

instance = model.create_instance()
opt = SolverFactory('baron')
solver_results = opt.solve(instance,  options_string="MaxTime=-1", tee = True)

I get the following error:

Exception in thread Thread-1:
Traceback (most recent call last):
  File "C:\Users\56978\AppData\Local\Continuum\anaconda3\lib\threading.py", line 926, in _bootstrap_inner
    self.run()
  File "C:\Users\56978\AppData\Local\Continuum\anaconda3\lib\threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\56978\AppData\Local\Continuum\anaconda3\lib\site-packages\pyutilib\subprocess\processmngr.py", line 380, in _merged_reader
    char = s.data.decode(encoding)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf3 in position 0: unexpected end of data

This doesn't prevent me from getting the optimal solution, but i can't get to see the solver output. Please let me know if you have any ideas on know how to fix this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions