Giter VIP home page Giter VIP logo

sort-requirements's People

Contributors

brotich avatar mushifali avatar rehandalal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sort-requirements's Issues

UnicodeEncodeError

@rehandalal,

Thanks very much for writing sort-requirements.!

I just tried to use it on a windows laptop under and got a strange UnicodeEncodeError on two different packages.

Do you have any advice on how to debug this?

Thanks!

$ sort-requirements.exe  requirements.txt
Traceback (most recent call last):
  File "C:\Users\crkrenn\Anaconda3\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "C:\Users\crkrenn\Anaconda3\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\crkrenn\code\codepy\venv\Scripts\sort-requirements.exe\__main__.py", line 9, in <module>
  File "c:\users\crkrenn\code\codepy\venv\lib\site-packages\sort_requirements\script.py", line 103, in main
    return end(0, args, changed, len(files))
  File "c:\users\crkrenn\code\codepy\venv\lib\site-packages\sort_requirements\script.py", line 21, in end
    write("All done! \U0001f389\n")
  File "C:\Users\crkrenn\Anaconda3\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 '\U0001f389' in position 10: character maps to <undefined>

handle comments

if there are comments, the comment will be in wrong place, maybe keep the comment stick to the next uncomment line

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.