Kitware / wslink

Python/JavaScript library for communicating over WebSocket
https://kitware.github.io/wslink/
BSD 3-Clause "New" or "Revised" License
83 stars 27 forks source link

Path segment must be bytes error in link 699 of wslink/launcher.py #66

Closed rasunag27 closed 3 years ago

rasunag27 commented 3 years ago

Hello,

I am running a Paraview lite visualizer as a multi-user with apache2. For this, I have given the paraview path to Paraview - 5.9.1.

  1. I need to run "start.sh" file from terminal which contains wslink/launcher.py.

  2. When I run "start.sh" file, I am addressing the following error:

/data/pv/pv-5.9.1/lib/python3.8/site-packages/wslink/launcher.py:699: DeprecationWarning: Path segment must be bytes; passing <class 'str'> has never worked, and will raise an exception in the future.
  web_resource.putChild("upload", uploadResource)
  1. I tried working with Paraview 5.7.0, when I run start.sh with this, It does not show any error. But, in the server "http://localhost/paraview", it should the error as addessed in the link here: Paraview_error

  2. Any leads will be appreciated. Do the needful.

Regards,

Sunag R A.

jourdain commented 3 years ago

Just remove the upload key in your config.