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

TypeError: cannot serialize '_io.TextIOWrapper' object UnboundLocalError: local variable 'exc' referenced before assignment #145

Open
kobemajian opened this issue Dec 1, 2014 · 0 comments
Labels
bug Something isn't working Windows

Comments

@kobemajian
Copy link

C:\Users\majian-xy>python E:\noVNC\utils\websockify 7777 10.18.27.57:5900

WARNING: no 'numpy' module, HyBi protocol will be slower
WARNING: no 'resource' module, daemonizing is disabled
WebSocket server settings:

  • Listen on :7777
  • Flash security policy server
  • No SSL/TLS support (no cert file)
  • proxying from :7777 to 10.18.27.57:5900

When I open my browser

Traceback (most recent call last):
  File "E:\noVNC\utils\websocket.py", line 999, in start_server
    p.start()
  File "D:\Python32\lib\multiprocessing\process.py", line 132, in start
    self._popen = Popen(self)
  File "D:\Python32\lib\multiprocessing\forking.py", line 272, in __init__
    dump(process_obj, to_child, HIGHEST_PROTOCOL)
  File "D:\Python32\lib\multiprocessing\forking.py", line 194, in dump
    ForkingPickler(file, protocol).dump(obj)
  File "D:\Python32\lib\pickle.py", line 237, in dump
    self.save(obj)
  File "D:\Python32\lib\pickle.py", line 344, in save
    self.save_reduce(obj=obj, *rv)
  File "D:\Python32\lib\pickle.py", line 432, in save_reduce
    save(state)
  File "D:\Python32\lib\pickle.py", line 299, in save
    f(self, obj) # Call unbound method with explicit self
  File "D:\Python32\lib\pickle.py", line 627, in save_dict
    self._batch_setitems(obj.items())
  File "D:\Python32\lib\pickle.py", line 660, in _batch_setitems
    save(v)
  File "D:\Python32\lib\pickle.py", line 299, in save
    f(self, obj) # Call unbound method with explicit self
  File "D:\Python32\lib\multiprocessing\forking.py", line 69, in dispatcher
    self.save_reduce(obj=obj, *rv)
  File "D:\Python32\lib\pickle.py", line 414, in save_reduce
    save(args)
  File "D:\Python32\lib\pickle.py", line 299, in save
    f(self, obj) # Call unbound method with explicit self
  File "D:\Python32\lib\pickle.py", line 533, in save_tuple
    save(element)
  File "D:\Python32\lib\pickle.py", line 344, in save
    self.save_reduce(obj=obj, *rv)
  File "D:\Python32\lib\pickle.py", line 432, in save_reduce
    save(state)
  File "D:\Python32\lib\pickle.py", line 299, in save
    f(self, obj) # Call unbound method with explicit self
  File "D:\Python32\lib\pickle.py", line 627, in save_dict
    self._batch_setitems(obj.items())
  File "D:\Python32\lib\pickle.py", line 660, in _batch_setitems
    save(v)
  File "D:\Python32\lib\pickle.py", line 344, in save
    self.save_reduce(obj=obj, *rv)
  File "D:\Python32\lib\pickle.py", line 432, in save_reduce
    save(state)
  File "D:\Python32\lib\pickle.py", line 299, in save
    f(self, obj) # Call unbound method with explicit self
  File "D:\Python32\lib\pickle.py", line 627, in save_dict
    self._batch_setitems(obj.items())
  File "D:\Python32\lib\pickle.py", line 660, in _batch_setitems
    save(v)
  File "D:\Python32\lib\pickle.py", line 344, in save
    self.save_reduce(obj=obj, *rv)
  File "D:\Python32\lib\pickle.py", line 432, in save_reduce
    save(state)
  File "D:\Python32\lib\pickle.py", line 299, in save
    f(self, obj) # Call unbound method with explicit self
  File "D:\Python32\lib\pickle.py", line 627, in save_dict
    self._batch_setitems(obj.items())
  File "D:\Python32\lib\pickle.py", line 660, in _batch_setitems
    save(v)
  File "D:\Python32\lib\pickle.py", line 299, in save
    f(self, obj) # Call unbound method with explicit self
  File "D:\Python32\lib\pickle.py", line 579, in save_list
    self._batch_appends(obj)
  File "D:\Python32\lib\pickle.py", line 614, in _batch_appends
    save(tmp[0])
  File "D:\Python32\lib\pickle.py", line 344, in save
    self.save_reduce(obj=obj, *rv)
  File "D:\Python32\lib\pickle.py", line 432, in save_reduce
    save(state)
  File "D:\Python32\lib\pickle.py", line 299, in save
    f(self, obj) # Call unbound method with explicit self
  File "D:\Python32\lib\pickle.py", line 627, in save_dict
    self._batch_setitems(obj.items())
  File "D:\Python32\lib\pickle.py", line 660, in _batch_setitems
    save(v)
  File "D:\Python32\lib\pickle.py", line 319, in save
    rv = reduce(self.proto)
TypeError: cannot serialize '_io.TextIOWrapper' object

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "E:\noVNC\utils\websockify", line 471, in <module>
    websockify_init()
  File "E:\noVNC\utils\websockify", line 419, in websockify_init
    server.start_server()
  File "E:\noVNC\utils\websocket.py", line 1017, in start_server
    self.msg("handler exception: %s", str(exc))
UnboundLocalError: local variable 'exc' referenced before assignment

C:\Users\majian-xy>WARNING: no 'numpy' module, HyBi protocol will be slower
WARNING: no 'resource' module, daemonizing is disabled
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "D:\Python32\lib\multiprocessing\forking.py", line 375, in main
    self = load(from_parent)
EOFError
@DirectXMan12 DirectXMan12 added bug Something isn't working python Windows labels Aug 27, 2015
@samhed samhed removed the python label Sep 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Windows
Projects
None yet
Development

No branches or pull requests

3 participants