Giter VIP home page Giter VIP logo

Comments (5)

msestak avatar msestak commented on August 26, 2024 3

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

from pydruid.

mistercrunch avatar mistercrunch commented on August 26, 2024

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

from pydruid.

msestak avatar msestak commented on August 26, 2024

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='[email protected]',
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,
)
`

from pydruid.

msestak avatar msestak commented on August 26, 2024

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).

from pydruid.

Diliz avatar Diliz commented on August 26, 2024

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

from pydruid.

Related Issues (20)

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.