Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
giuliobraini opened this issue Aug 21, 2018 · 0 comments

Comments

@giuliobraini
Copy link

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

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

No branches or pull requests

1 participant