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

One of the required dependencies doesn't support Windows #1

Closed
Zireael-N opened this issue Oct 17, 2017 · 6 comments
Closed

One of the required dependencies doesn't support Windows #1

Zireael-N opened this issue Oct 17, 2017 · 6 comments

Comments

@Zireael-N
Copy link

I tried to install instawow using Cygwin, but uvloop refuses to let me:

$ pip3 install instawow
Collecting instawow
  Using cached instawow-0.8.1.tar.gz
Collecting aiohttp<3,>=2.2.5 (from instawow)
  Using cached aiohttp-2.2.5-cp36-cp36m-win_amd64.whl
Collecting click<7,>=6.7 (from instawow)
  Using cached click-6.7-py2.py3-none-any.whl
Collecting lxml<5,>=4.0.0 (from instawow)
  Using cached lxml-4.1.0-cp36-cp36m-win_amd64.whl
Collecting pydantic<1,>=0.4 (from instawow)
  Using cached pydantic-0.4-py36-none-any.whl
Collecting SQLAlchemy<2,>=1.1.14 (from instawow)
  Using cached SQLAlchemy-1.1.14.tar.gz
Collecting texttable<1,>=0.9.1 (from instawow)
  Using cached texttable-0.9.1.tar.gz
Collecting uvloop<1,>=0.8.1 (from instawow)
  Using cached uvloop-0.8.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "D:\cygwin64\tmp\pip-build-2ei2xumt\uvloop\setup.py", line 10, in <module>
        raise RuntimeError('uvloop does not support Windows at the moment')
    RuntimeError: uvloop does not support Windows at the moment

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in D:\cygwin64\tmp\pip-build-2ei2xumt\uvloop\
@layday
Copy link
Owner

layday commented Oct 18, 2017

Thanks for reporting. This should be fixed in 0.8.2. Let me know if you encounter any other issues with Windows - I've not had the opportunity to test instawow on platforms other than Mac.

@Zireael-N
Copy link
Author

Now it installs successfully, but I'm getting the following when I try to use instawow install:

$ instawow install curse:20338
Resolving add-ons
Updating Curse cache
Installing
Traceback (most recent call last):
  File "c:\program files\python36\lib\site-packages\instawow\cli.py", line 149, in install
    raise result
instawow.manager.PkgInstalled

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files\Python36\Scripts\instawow-script.py", line 11, in <module>
    load_entry_point('instawow==0.8.2', 'console_scripts', 'instawow')()
  File "c:\program files\python36\lib\site-packages\click\core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "c:\program files\python36\lib\site-packages\click\core.py", line 697, in main
    rv = self.invoke(ctx)
  File "c:\program files\python36\lib\site-packages\click\core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "c:\program files\python36\lib\site-packages\click\core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "c:\program files\python36\lib\site-packages\click\core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "c:\program files\python36\lib\site-packages\click\decorators.py", line 27, in new_func
    return f(get_current_context().obj, *args, **kwargs)
  File "c:\program files\python36\lib\site-packages\instawow\cli.py", line 151, in install
    click.echo(MESSAGES[result.__class__](addon, result))
  File "c:\program files\python36\lib\site-packages\click\utils.py", line 259, in echo
    file.write(message)
  File "c:\program files\python36\lib\encodings\cp1252.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u2713' in position 0: character maps to <undefined>

and a similar error when I try to use instawow list preexisting:

$ instawow list preexisting
Traceback (most recent call last):
  File "C:\Program Files\Python36\Scripts\instawow-script.py", line 11, in <module>
    load_entry_point('instawow==0.8.2', 'console_scripts', 'instawow')()
...
  File "c:\program files\python36\lib\encodings\cp1252.py", line 23, in decode
    return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 416: character maps to <undefined>

If you prefer to see the full traceback for the latter, let me know.

@layday
Copy link
Owner

layday commented Oct 18, 2017

err, this looks like it might have something to do with the way click handles Unicode in the Windows terminal. I don't know how comfortable you are with Python, but would you like to try replacing all click.echos in instawow's cli.py with prints?

@layday
Copy link
Owner

layday commented Oct 18, 2017

I've made the change in a separate branch. If you'd like to try it out issue:

pip3 install -U git+https://github.com/layday/instawow@print-test

@Zireael-N
Copy link
Author

Yeah, that was it, works perfectly with print. Thanks!

@layday
Copy link
Owner

layday commented Oct 18, 2017

Cheers. Don't forget to revert to mainline (pip3 install -U instawow) to continue receiving updates.

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

2 participants