Skip to content

Must the "websocket-client" version be systematically downgraded in Ubuntu 16.04? #38

@giuliobraini

Description

@giuliobraini

In Ubuntu 16.04 using python 2.7 and predixpy 1.0.0, I get the following error:

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/apscheduler/executors/base.py", line 125, in run_job
    retval = job.func(*job.args, **job.kwargs)
  File "/home/edge/sputnik/main/sputnik/windfarm.py", line 151, in run
    self.sendToCloud(dbuffer)
  File "/home/edge/sputnik/main/sputnik/windfarm.py", line 98, in sendToCloud
    self.clink.sendToCloud(dataCloud)
  File "/home/edge/sputnik/main/sputnik/tools/predixclasses.py", line 50, in sendToCloud
    timeseries.send()
  File "/usr/local/lib/python2.7/dist-packages/predix/data/timeseries.py", line 534, in send
    return self._send_to_timeseries(msg)
  File "/usr/local/lib/python2.7/dist-packages/predix/data/timeseries.py", line 411, in _send_to_timeseries
    except (websocket.WebSocketConnectionClosedException, Exception) as e:
AttributeError: 'module' object has no attribute 'WebSocketConnectionClosedException'

If I downgrade the websocket-client module to 0.47.0, the problem is solved... why?

pip install --ignore-installed websocket-client==0.47.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions