hangups icon indicating copy to clipboard operation
hangups copied to clipboard

hangups -h command line causes error

Open SoulSen opened this issue 5 years ago • 5 comments

  File "c:\users\taluk\appdata\local\programs\python\python37\Lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\users\taluk\appdata\local\programs\python\python37\Lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\taluk\OneDrive\DOCUME~1\CODING~2\Python\HANGOU~1\ENVIOR~1\Scripts\hangups.exe\__main__.py", line 5, in <module>
  File "c:\users\taluk\onedrive\docume~1\coding~2\python\hangou~1\envior~1\lib\site-packages\hangups\ui\__main__.py", line 10, in <module>
    import urwid
  File "c:\users\taluk\onedrive\docume~1\coding~2\python\hangou~1\envior~1\lib\site-packages\urwid\__init__.py", line 24, in <module>
    from urwid.widget import (FLOW, BOX, FIXED, LEFT, RIGHT, CENTER, TOP, MIDDLE,
  File "c:\users\taluk\onedrive\docume~1\coding~2\python\hangou~1\envior~1\lib\site-packages\urwid\widget.py", line 216

    ^
SyntaxError: invalid syntax

Looks like it's coming from urwid might be because the version is set and required at 1.3.1 and not at latest, this may also be because I'm using Python 3.7

SoulSen avatar Jan 13 '19 19:01 SoulSen

urwid does not support windows.

das7pad avatar Jan 13 '19 19:01 das7pad

@das7pad Will this be added soon?

SoulSen avatar Jan 13 '19 21:01 SoulSen

@SoulSen I do not think so, but there are workarounds. Here is an outline of the steps: https://github.com/urwid/urwid/issues/321

das7pad avatar Jan 14 '19 10:01 das7pad

I've run hangups under Cygwin in the past, although others have had trouble getting it working more recently (#186).

tdryer avatar Jan 15 '19 05:01 tdryer

C:\Temp\python-3.7.1>hangups -h
Traceback (most recent call last):
  File "runpy.py", line 193, in _run_module_as_main
  File "runpy.py", line 85, in _run_code
  File "C:\Temp\python-3.7.1\Scripts\hangups.exe\__main__.py", line 4, in <module>
  File "C:\Temp\python-3.7.1\Lib\site-packages\hangups\__init__.py", line 6, in <module>
    from .client import Client
  File "C:\Temp\python-3.7.1\Lib\site-packages\hangups\client.py", line 15, in <module>
    from hangups import (exceptions, http_utils, channel, event, hangouts_pb2,
  File "C:\Temp\python-3.7.1\Lib\site-packages\hangups\hangouts_pb2.py", line 7, in <module>
    from google.protobuf import descriptor as _descriptor
  File "C:\Temp\python-3.7.1\Lib\site-packages\google\protobuf\descriptor.py", line 47, in <module>
    from google.protobuf.pyext import _message
ImportError: DLL load failed: Invalid access to memory location.

C:\Temp\python-3.7.1>

Now there is another error related to protobuf 3.10.0 and hangups 0.4.10 does not allow the upgrade to the latest protobuf 3.11.2. Does anyone advise something? Thanks a lot.

snoopy-coder avatar Jan 13 '20 15:01 snoopy-coder