Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pypi package broken aquests 0.6.7.1 #1

Closed
Hellowlol opened this issue Feb 23, 2017 · 1 comment
Closed

pypi package broken aquests 0.6.7.1 #1

Hellowlol opened this issue Feb 23, 2017 · 1 comment
Labels

Comments

@Hellowlol
Copy link

Using

import aquests
import time

# https://github.com/hansroh/aquests

def request_finished(r):
    return r.content

def gogo_quests(urls):
    aquests.configure(10, callback=request_finished, force_http1=0)
    for url in urls:
        aquests.get(url)
    aquests.fetchall()

Gives me:

    import aquests
  File "C:\Python27\lib\site-packages\aquests\__init__.py", line 6, in <module>
    from . import lifetime, queue, request_builder, response_builder, stubproxy
  File "C:\Python27\lib\site-packages\aquests\request_builder.py", line 1, in <module>
    from .protocols.http import request as http_request, request_handler as http_request_handler
ImportError: No module named protocols.http
@hansroh hansroh added the bug label Feb 25, 2017
@hansroh
Copy link
Owner

hansroh commented Feb 25, 2017

Yes, indeed.

I fixed this problem by adding missed (but no need in Py3.x) __init__.py but still you may have problems on Py 2.7. Because I do not support Python2.7 officially and haven't got any plan to for now.

Thank you for your feedback and very sorry.

@hansroh hansroh closed this as completed Feb 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants