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

pydruid installation failinf #129

Open
sangmeshcp opened this issue May 9, 2018 · 5 comments
Open

pydruid installation failinf #129

sangmeshcp opened this issue May 9, 2018 · 5 comments

Comments

@sangmeshcp
Copy link

sangmeshcp commented May 9, 2018

 pip install pydruid 
Collecting pydruid
  Using cached https://files.pythonhosted.org/packages/32/91/4be6f902d50f22fc6b9e2eecffbef7d00989ba477e9c8e034074186cd10c/pydruid-0.4.2.tar.gz
    Complete output from command python setup.py egg_info:
    Download error on https://pypi.org/simple/pytest-runner/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645) -- Some packages may not be found!
    Couldn't find index page for 'pytest-runner' (maybe misspelled?)
    Download error on https://pypi.org/simple/: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:645) -- Some packages may not be found!
    No local packages or working download links found for pytest-runner
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/6g/xcjdd64j6clctps0_25h_n3h0000gp/T/pip-install-iatsyysf/pydruid/setup.py", line 44, in <module>
        include_package_data=True,
      File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools/__init__.py", line 128, in setup
        _install_setup_requires(attrs)
      File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools/__init__.py", line 123, in _install_setup_requires
        dist.fetch_build_eggs(dist.setup_requires)
      File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools/dist.py", line 504, in fetch_build_eggs
        replace_conflicting=True,
      File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pkg_resources/__init__.py", line 774, in resolve
        replace_conflicting=replace_conflicting
      File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pkg_resources/__init__.py", line 1057, in best_match
        return self.obtain(req, installer)
      File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pkg_resources/__init__.py", line 1069, in obtain
        return installer(requirement)
      File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools/dist.py", line 571, in fetch_build_egg
        return cmd.easy_install(req)
      File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 667, in easy_install
        raise DistutilsError(msg)
    distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pytest-runner')
    ```
    ----------------------------------------
hitting on MAC OS .. 
@mistercrunch
Copy link
Member

Weird. Can you pip install pytest-runner ? I tried to recreate from scratch in both py2.7 and py3.6 and it just worked...

@msestak
Copy link

msestak commented Jan 14, 2019

Similar issue:

[root@tardis python36]# /root/pydev/py36-venv/bin/pip download --proxy=http://proxyuser:proxypass@proxy:8080 pydruid --dest=/tmp/python36
Collecting pydruid
File was already downloaded /tmp/python36/pydruid-0.5.0.tar.gz
Complete output from command python setup.py egg_info:
Download error on https://pypi.org/simple/pytest-runner/: [Errno 101] Network is unreachable -- Some packages may not be found!
Couldn't find index page for 'pytest-runner' (maybe misspelled?)
Download error on https://pypi.org/simple/: [Errno 101] Network is unreachable -- Some packages may not be found!
No local packages or working download links found for pytest-runner
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-download-e3u9k_pm/pydruid/setup.py", line 44, in
include_package_data=True,
File "/root/pydev/py36-venv/lib64/python3.6/site-packages/setuptools/init.py", line 142, in setup
_install_setup_requires(attrs)
File "/root/pydev/py36-venv/lib64/python3.6/site-packages/setuptools/init.py", line 137, in _install_setup_requires
dist.fetch_build_eggs(dist.setup_requires)
File "/root/pydev/py36-venv/lib64/python3.6/site-packages/setuptools/dist.py", line 586, in fetch_build_eggs
replace_conflicting=True,
File "/root/pydev/py36-venv/lib64/python3.6/site-packages/pkg_resources/init.py", line 780, in resolve
replace_conflicting=replace_conflicting
File "/root/pydev/py36-venv/lib64/python3.6/site-packages/pkg_resources/init.py", line 1063, in best_match
return self.obtain(req, installer)
File "/root/pydev/py36-venv/lib64/python3.6/site-packages/pkg_resources/init.py", line 1075, in obtain
return installer(requirement)
File "/root/pydev/py36-venv/lib64/python3.6/site-packages/setuptools/dist.py", line 653, in fetch_build_egg
return cmd.easy_install(req)
File "/root/pydev/py36-venv/lib64/python3.6/site-packages/setuptools/command/easy_install.py", line 673, in easy_install
raise DistutilsError(msg)
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pytest-runner')

Download of pytest-runner works:
[root@tardis python36]# /root/pydev/py36-venv/bin/pip download --proxy=http://proxyuser:proxypass@proxy:8080 pytest-runner --dest=/tmp/python36
Collecting pytest-runner
File was already downloaded /tmp/python36/pytest_runner-4.2-py2.py3-none-any.whl
Successfully downloaded pytest-runner

setup.py:
`import sys
from setuptools import setup

install_requires = [
"six >= 1.9.0",
"requests",
]

extras_require = {
"pandas": ["pandas"],
"async": ["tornado"],
"sqlalchemy": ["sqlalchemy"],
"cli": ["pygments", "prompt_toolkit<2.0.0", "tabulate"],
}

only require simplejson on python < 2.6

if sys.version_info < (2, 6):
install_requires.append("simplejson >= 3.3.0")

setup(
name='pydruid',
version='0.5.0',
author='Druid Developers',
author_email='druid-development@googlegroups.com',
packages=['pydruid', 'pydruid.db', 'pydruid.utils'],
url='https://pypi.python.org/pypi/pydruid/',
license='Apache License, Version 2.0',
description='A Python connector for Druid.',
long_description='See https://github.com/druid-io/pydruid for more information.',
install_requires=install_requires,
extras_require=extras_require,
setup_requires=['pytest-runner'],
tests_require=['pytest', 'six', 'mock'],
entry_points={
'console_scripts': [
'pydruid = pydruid.console:main',
],
'sqlalchemy.dialects': [
'druid = pydruid.db.sqlalchemy:DruidHTTPDialect',
'druid.http = pydruid.db.sqlalchemy:DruidHTTPDialect',
'druid.https = pydruid.db.sqlalchemy:DruidHTTPSDialect',
],
},
include_package_data=True,
)
`

@msestak
Copy link

msestak commented Jan 14, 2019

I checked all versions on PyPi and issue appears from version 0.4.0 - 0.5.0. Versions 0.2.x and 0.3.x download fine (they don't ask for pytest-runner).

@msestak
Copy link

msestak commented Feb 12, 2019

Problem occurred because this was clean install. Solution was to install pytest-runner before I tried pydruid install.

@Diliz
Copy link

Diliz commented May 18, 2020

This bug still exists, why not adding pytest-runner to the dependencies if it's needed by the lib?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants