Coder Social home page Coder Social logo

Comments (6)

layday avatar layday commented on August 26, 2024

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.

from instawow.

Zireael-N avatar Zireael-N commented on August 26, 2024

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.

from instawow.

layday avatar layday commented on August 26, 2024

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?

from instawow.

layday avatar layday commented on August 26, 2024

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

from instawow.

Zireael-N avatar Zireael-N commented on August 26, 2024

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

from instawow.

layday avatar layday commented on August 26, 2024

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

from instawow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.