Giter VIP home page Giter VIP logo

xart's People

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

xart's Issues

出现UnicodeDecodeError: 'gbk' codec can't decode错误

`pip3 install xart
Looking in indexes: https://mirrors.aliyun.com/pypi/simple/
Collecting xart
Downloading https://mirrors.aliyun.com/pypi/packages/df/0b/607ebe1853f4797714e06917b29aafe9120f309991c607c20b542fc716b7/xart-0.2.0.tar.gz (451kB)
100% |████████████████████████████████| 460kB 1.6MB/s
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\JEFFLE1\AppData\Local\Temp\pip-install-u1y04xri\xart\setup.py", line 15, in
README = fp.read()
UnicodeDecodeError: 'gbk' codec can't decode byte 0x97 in position 248: illegal multibyte sequence
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\JEFFLE
1\AppData\Local\Temp\pip-install-u1y04xri\xart\setup.py", line 15, in
README = fp.read()
UnicodeDecodeError: 'gbk' codec can't decode byte 0x97 in position 248: illegal multibyte sequence

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in C:\Users\JEFFLE~1\AppData\Local\Temp\pip-install-u1y04xri\xart`

font specification

would be pretty cool if the font could be specified by the number as well as by the font name.

[Error]ImportError: No module named 'errors'

环境:Python 3.5.2
描述:
我使用pip install xart进行安装
xart hello world时报错:

Traceback (most recent call last): File "/Users/yangruihan/.pyenv/versions/pyenv_3_5_2/bin/xart", line 11, in <module> load_entry_point('xart==0.1.8', 'console_scripts', 'xart')() File "/Users/yangruihan/.pyenv/versions/3.5.2/envs/pyenv_3_5_2/lib/python3.5/site-packages/pkg_resources/__init__.py", line 564, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/Users/yangruihan/.pyenv/versions/3.5.2/envs/pyenv_3_5_2/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2608, in load_entry_point return ep.load() File "/Users/yangruihan/.pyenv/versions/3.5.2/envs/pyenv_3_5_2/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2268, in load return self.resolve() File "/Users/yangruihan/.pyenv/versions/3.5.2/envs/pyenv_3_5_2/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2274, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/Users/yangruihan/.pyenv/versions/3.5.2/envs/pyenv_3_5_2/lib/python3.5/site-packages/xart/__init__.py", line 11, in <module> import errors ImportError: No module named 'errors'

no module named "errors"

I can run the init.py with python but I cannot run with just 'xart' command. It seems like maybe a python python3 issue but I don't know.

/u/l/l/p/s/xart ▶︎︎ python __init__.py 
_________________________
                         
                         
---|/----__----)__---_/_-
   |   /   )  /   )  /   
__/|__(___(__/______(_ __
 /                       
                         
/u/l/l/p/s/xart ▶︎︎ python __init__.py -h
usage: __init__.py [-h] [-f FONT] [-c COLOR] [-i] [-s] [-l] [-v]

xart : generate art ascii texts.

optional arguments:
  -h, --help            show this help message and exit
  -f FONT, --font FONT  font to render with, default random
  -c COLOR, --color COLOR
                        font color, default WHITE, all : BLACK, RED, GREEN,
                        YELLOW, BLUE, PURPLE, CYAN, GRAY, WHITE
  -i, --info            show information of given font
  -s, --show            show random fonts
  -l, --list            list all supported fonts
  -v, --version         version
/u/l/l/p/s/xart ▶︎︎ xart -h
Traceback (most recent call last):
  File "/usr/local/bin/xart", line 5, in <module>
    from xart import main
  File "/usr/local/lib/python3.7/site-packages/xart/__init__.py", line 11, in <module>
    import errors
ModuleNotFoundError: No module named 'errors'
/u/l/l/p/s/xart ▶︎︎ 

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.