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

VTK example can't work #3

Open
zengzhengrong opened this issue Jul 13, 2023 · 0 comments
Open

VTK example can't work #3

zengzhengrong opened this issue Jul 13, 2023 · 0 comments

Comments

@zengzhengrong
Copy link

https://examples.vtk.org/site/Trame/Applications/FiniteElementAnalysis/FiniteElementAnalysis/

Upload nodes_file and elems_file raise error

App running at:
 - Local:   http://localhost:8080/
 - Network: http://192.168.10.110:8080/

Note that for multi-users you need to use and configure a launcher.
And to prevent your browser from opening, add '--server' to your command line.
ERROR:root:Exception raised
ERROR:root:AttributeError("'list' object has no attribute 'decode'")
ERROR:root:Traceback (most recent call last):
  File "C:\Users\Win\AppData\Local\Programs\Python\Python39\lib\site-packages\wslink\protocol.py", line 321, in onMessage
    results = func(*args, **kwargs)
  File "C:\Users\Win\AppData\Local\Programs\Python\Python39\lib\site-packages\trame_server\protocol.py", line 208, in update_state
    self.server.state.update(client_state)
  File "C:\Users\Win\AppData\Local\Programs\Python\Python39\lib\site-packages\trame_server\state.py", line 226, in __exit__
    self.flush()
  File "C:\Users\Win\AppData\Local\Programs\Python\Python39\lib\site-packages\trame_server\state.py", line 199, in flush
    coroutine = callback(**self._pushed_state)
  File "c:\Users\Win\Documents\GitHub\vtk-examples\src\Trame\Applications\FiniteElementAnalysis\app_remote_view.py", line 89, in update_grid
    io.StringIO(nodes_bytes.decode("utf-8")),
AttributeError: 'list' object has no attribute 'decode'
@zengzhengrong zengzhengrong changed the title vtk example can't work VTK example can't work Jul 13, 2023
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