humblebundle icon indicating copy to clipboard operation
humblebundle copied to clipboard

Better PIP integration

Open xavdid opened this issue 8 years ago • 6 comments
trafficstars

Hey! Love they app, really cool code you've got going.

My biggest suggestion is twofold-

  1. Include a requirements file. It'll help people install the right deps on the first try (for instance, on mac you need to install pyxdg instead of xdg when using pip).

  2. Be able to install this package via pip instead of cloning. This is a fairly straightforward process. More info can be found here.

I'm happy to make a PR for the first, though I'm not sure if you need certain versions or anything.

xavdid avatar Nov 25 '16 01:11 xavdid

Thanks for the compliments! Glad it's been useful for many people :)

  1. That would be very welcome... and If I recall correctly, DistUtils (or SetupTools) already has a standard for a requirements file, so if you could follow such standard it would be great! Please use the lowest possible versions for the requirements, to make the project as compatible as it can (hint: the versions that ships with Ubuntu 12.04 are fine)

  2. Yeah, this is very needed indeed, it's actually one of my main "To-Do" items in the README. But I think it requires a setup.py and possibly more, and I have zero experience in setting up a setup :)

Go ahead, green light for the PRs! I will gladly merge them!

MestreLion avatar Dec 07 '16 09:12 MestreLion

I cloned the repository and am currently working on this. However, some changes needed to be made. The name 'humblebundle' is forbidden in PyPI, so I renamed the app to 'humblelion'. I also changed the version from '0.0.0' to '0.0.2'.

You can already install it with

pip install humblelion

Seems to be somewhat working. I reached the point where the issue #33, the login failure, prevented me from continuing. Bear in mind, however, that I'm also porting to python3, so python2 compatibility is broken for now.

drakenation avatar Sep 28 '17 08:09 drakenation

@drakenation , I just tagged a new release, should be Python3 compatible by now, care to check and re-try the PIP integration? Once again, thanks a LOT for making this happen!

MestreLion avatar Feb 20 '18 23:02 MestreLion

@drakenation I did a pip install for humblelion and I'm getting this:

734 CRITICAL ('Could not retrieve token: %r', AttributeError("'NoneType' object has no attribute 'groups'",))

beargeek avatar Mar 06 '18 18:03 beargeek

@beargeek, care to paste the whole error messages, including the stack trace?

MestreLion avatar Mar 07 '18 08:03 MestreLion

@MestreLion this is all I got. Not sure how to get a stacktrace:

computer:bin me$ humblelion --update --debug 2018-03-07 10:07:00,680 DEBUG Namespace(arch=None, auth=None, bittorrent=False, clear=False, code=None, debug=True, download=None, install=None, json=False, list=None, list_bundles=False, loglevel='debug', method=None, password=None, path=None, platform='linux', serverfile=None, show=None, show_bundle=None, type=None, uninstall=None, update=True, username=None) 2018-03-07 10:07:00,681 DEBUG Reading credentials from keyring 2018-03-07 10:07:00,703 INFO Retrieving keys from 'https://www.humblebundle.com/home/keys' send: b'GET /home/keys HTTP/1.1\r\nAccept-Encoding: identity\r\nHost: www.humblebundle.com\r\nUser-Agent: Python-urllib/3.6\r\nCookie: _simpleauth_sess="xxx\\075\\075|xxx|xxxxx"; csrf_cookie=xxxxx\r\nConnection: close\r\n\r\n' reply: 'HTTP/1.1 302 Found\r\n' header: Content-Type header: Cache-Control header: Set-Cookie header: Location header: X-Cloud-Trace-Context header: Date header: Server header: Content-Length header: Connection send: b'GET /login?goto=%2Fhome%2Fkeys HTTP/1.1\r\nAccept-Encoding: identity\r\nHost: www.humblebundle.com\r\nUser-Agent: Python-urllib/3.6\r\nCookie: _simpleauth_sess="xxxxx; hbflash=You%20must%20sign%20in.\r\nConnection: close\r\n\r\n' reply: 'HTTP/1.1 200 OK\r\n' 2018-03-07 10:07:01,037 INFO Authenticating at 'https://www.humblebundle.com/processlogin' 2018-03-07 10:07:01,071 CRITICAL ('Could not retrieve token: %r', AttributeError("'NoneType' object has no attribute 'groups'",)) header: Content-Type header: Cache-Control header: X-Cloud-Trace-Context header: Date header: Server header: Content-Length header: Connection

I think it might have something to do with this: hbflash=You%20must%20sign%20in.\r\nConnection: close\r\n\r\n'

((xxxx's are redacted information))

beargeek avatar Mar 07 '18 16:03 beargeek