GithubHelp home page GithubHelp logo

ticket's Introduction

12306抢票客户端-PyQt5实现

安装依赖:

pip install requests 

easy_install requests 

关于PyQt5

Linux, Mac可以从iverbankcomputing下载.

Windows版不能使用riverbank官方的, 因为官方的PyQt5没有编译OpenGL, 可以下载我自己编译的版本PyQt5-5.2-gpl-Py2.7-Qt5.2.0-x32.exe

跨平台

经测试可以在Mac, Linux, Windows上运行

关于Python

Python 2.7最佳, 兼容Python 3.x

试用

可以下载我使用cx_freeze打包好的程序在Windows平台上试用: EVTicket-0.9.exe

部分截图

ticket's People

Contributors

smallevilbeast avatar

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

Watchers

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

ticket's Issues

I have trouble while running program under python 3.5.(So do python2.7)

  • I'm using Arch linux...

Under python 2.7:

~/p/t/src ❯❯❯ python2 main.py
Traceback (most recent call last):
File "main.py", line 14, in
from PyQt5 import QtCore
ImportError: No module named PyQt5
But module 'PyQt5' has been already installed.(Module list is provided below...)

Under python 3.5:

~/p/t/src ❯❯❯ python main.py
TypeError: invalid result from SeatModel.roleNames(), a dict value has type 'str' but 'QByteArray' is expected
fish: Job 3, “python main.py” terminated by signal SIGABRT (Abort)

Useful info:

Environment:

~/p/t/src ❯❯❯ pip list
appdirs (1.4.0)
get (0.0.0)
packaging (16.8)
Pillow (3.4.2)
pip (8.1.2)
post (0.0.0)
powerline-status (2.5)
public (0.0.0)
pygobject (3.22.0)
pyparsing (2.1.10)
PyQt5 (5.7)
python-libtorrent (1.1.1)
pyxdg (0.25)
query-string (0.0.0)
request (0.0.0)
requests (2.12.4)
setupfiles (0.0.0)
setuptools (28.7.1)
shadowsocks (2.8.2)
sip (4.18.1)
six (1.10.0)
team (1.0)

System Info:

Linux RECOLICPC 4.8.6-1-ARCH #1 SMP PREEMPT Mon Oct 31 18:51:30 CET 2016 x86_64 GNU/Linux

Python Info:

Python 3.5.2 (default, Nov 7 2016, 11:31:36)
[GCC 6.2.1 20160830] on linux

python3 unicode

Traceback (most recent call last):
File "C:\Python33\lib\threading.py", line 901, in _bootstrap_inner
self.run()
File "C:\Python33\lib\threading.py", line 858, in run
self._target(_self._args, *_self._kwargs)
File "E:\project\ticket\src\core\poster.py", line 79, in check_login
cookie_file = xdg.get_cookie_file(username)
File "E:\project\ticket\src\utils\xdg.py", line 55, in get_cookie_file
return get_user_file(username, "cookies.txt")
File "E:\project\ticket\src\utils\xdg.py", line 58, in get_user_file
d = os.path.join(xdg_cache_home, PROGRAM_NAME, common.get_md5(username))
File "E:\project\ticket\src\utils\common.py", line 60, in get_md5
if isinstance(chars, unicode):
NameError: global name 'unicode' is not defined

python3 gbk

E:\project\ticket\src>python main.py
Exception in thread Thread-1:
Traceback (most recent call last):
File "C:\Python33\lib\threading.py", line 901, in _bootstrap_inner
self.run()
File "C:\Python33\lib\threading.py", line 858, in run
self._target(_self._args, *_self._kwargs)
File "E:\project\ticket\src\db\models.py", line 199, in init_db
_init_common_db()
File "E:\project\ticket\src\db\models.py", line 152, in _init_common_db
insert_station_data()
File "E:\project\ticket\src\db\models.py", line 134, in insert_station_data
content = fp.read().decode("utf-8").strip("\n")
UnicodeDecodeError: 'gbk' codec can't decode byte 0xad in position 1323: illegal
multibyte sequence

TypeError: Type str doesn't support the buffer API

Exception in thread Thread-6:
Traceback (most recent call last):
File "C:\Python33\lib\threading.py", line 901, in _bootstrap_inner
self.run()
File "C:\Python33\lib\threading.py", line 858, in run
self._target(_self._args, *_self._kwargs)
File "E:\project\ticket\src\core\poster.py", line 253, in grab_tickets
if not self.submit_order_request(train):
File "E:\project\ticket\src\core\poster.py", line 298, in submit_order_request

data['secretStr'] = unquote(train.secretStr.encode("utf-8"))

File "C:\Python33\lib\urllib\parse.py", line 514, in unquote
if '%' not in string:
TypeError: Type str doesn't support the buffer API

lovesnow你好

“ 因为官方的PyQt5没有编译OpenGL, 可以下载我自己编译的版本PyQt5-5.2-gpl-Py2.7-Qt5.2.0-x32.exe”
这个链接失效了。。。能否更新一下?
万分感谢!

ntchat

Hi,你的ntchat不打算更行了吗?我看了一下你的ntchat repo已经不存在了。

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.