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

python setup.py test fails in python 2.7 #44

Closed
jplana opened this issue Mar 22, 2014 · 0 comments
Closed

python setup.py test fails in python 2.7 #44

jplana opened this issue Mar 22, 2014 · 0 comments
Assignees
Labels

Comments

@jplana
Copy link
Owner

jplana commented Mar 22, 2014

$ python setup.py test
running test
Searching for pyOpenSSL==0.13.1
Reading https://pypi.python.org/simple/pyOpenSSL/
Best match: pyOpenSSL 0.13.1
Downloading https://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-0.13.1.tar.gz#md5=e27a3b76734c39ea03952ca94cc56715
Processing pyOpenSSL-0.13.1.tar.gz
Writing /var/folders/2j/32g5k66x3db08z030c5nj0sh0000gn/T/easy_install-wreh2Y/pyOpenSSL-0.13.1/setup.cfg
Running pyOpenSSL-0.13.1/setup.py -q bdist_egg --dist-dir /var/folders/2j/32g5k66x3db08z030c5nj0sh0000gn/T/easy_install-wreh2Y/pyOpenSSL-0.13.1/egg-dist-tmp-uy8_8H
warning: no previously-included files matching '*.pyc' found anywhere in distribution

Installed /Users/jplana/src/etcd-python/python-etcd-github-temp2/pyOpenSSL-0.13.1-py2.7-macosx-10.4-x86_64.egg
running egg_info
writing requirements to src/python_etcd.egg-info/requires.txt
writing src/python_etcd.egg-info/PKG-INFO
writing top-level names to src/python_etcd.egg-info/top_level.txt
writing dependency_links to src/python_etcd.egg-info/dependency_links.txt
reading manifest file 'src/python_etcd.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'src/python_etcd.egg-info/SOURCES.txt'
running build_ext
Traceback (most recent call last):
  File "setup.py", line 36, in <module>
    test_suite='tests.unit',
  File "/Users/jplana/.pyenv/versions/2.7.5/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/Users/jplana/.pyenv/versions/2.7.5/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/Users/jplana/.pyenv/versions/2.7.5/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/Users/jplana/.pyenv/versions/temp2/lib/python2.7/site-packages/setuptools/command/test.py", line 138, in run
    self.with_project_on_sys_path(self.run_tests)
  File "/Users/jplana/.pyenv/versions/temp2/lib/python2.7/site-packages/setuptools/command/test.py", line 118, in with_project_on_sys_path
    func()
  File "/Users/jplana/.pyenv/versions/temp2/lib/python2.7/site-packages/setuptools/command/test.py", line 164, in run_tests
    testLoader = cks
  File "/Users/jplana/.pyenv/versions/2.7.5/lib/python2.7/unittest/main.py", line 94, in __init__
    self.parseArgs(argv)
  File "/Users/jplana/.pyenv/versions/2.7.5/lib/python2.7/unittest/main.py", line 149, in parseArgs
    self.createTests()
  File "/Users/jplana/.pyenv/versions/2.7.5/lib/python2.7/unittest/main.py", line 158, in createTests
    self.module)
  File "/Users/jplana/.pyenv/versions/2.7.5/lib/python2.7/unittest/loader.py", line 128, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/Users/jplana/.pyenv/versions/2.7.5/lib/python2.7/unittest/loader.py", line 91, in loadTestsFromName
    module = __import__('.'.join(parts_copy))
ImportError: No module named tests

Not that I use it a lot, (travis will execute bin/test created by buildout) but It seems a nice to have.

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

1 participant