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
ImportError: cannot import name test_support #571
Comments
Can you describe what gevent has to do with this? I don't see any mention of it in the description/example. |
I get the error running tests: E.g. - $ PYTHONPATH=.. python testrunner.py --config ../known_failures.py
|
The tests are green on Travis and locally for me so I'm not sure what the problem is. The output of your example, except using |
PYTHONPATH=.. python testrunner.py --config ../known_failures.py
! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test test_asyncore.py [code 1] [took 0.3s]
! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test --Event test_asyncore.py [code 1] [took 0.6s]
! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test test_ftplib.py [code 1] [took 0.5s]
! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test --Event test_ftplib.py [code 1] [took 0.4s] ! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test test_httplib.py [code 1] [took 0.3s] ! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test --Event test_httplib.py [code 1] [took 0.2s]
! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test test_queue.py [code 1] [took 0.2s] ! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test test_httpservers.py [code 1] [took 0.2s] ! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test --Event test_httpservers.py [code 1] [took 0.2s]
! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test --Event test_select.py [code 1] [took 0.1s] ! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test --Event test_queue.py [code 1] [took 0.1s] ! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test test_select.py [code 1] [took 0.1s]
! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test test_signal.py [code 1] [took 0.1s] ! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test --Event test_signal.py [code 1] [took 0.1s] ! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test test_smtplib.py [code 1] [took 0.2s]
! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test test_socket.py [code 1] [took 0.2s] ! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test --Event test_smtplib.py [code 1] [took 0.2s] ! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test --Event test_socket.py [code 1] [took 0.2s]
! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test --Event test_socketserver.py [code 1] [took 0.1s] ! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test test_ssl.py [code 1] [took 0.1s]
! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test test_socketserver.py [code 1] [took 0.3s] ! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test test_subprocess.py [code 1] [took 0.1s] ! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test --Event test_ssl.py [code 1] [took 0.1s]
! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test --Event test_subprocess.py [code 1] [took 0.2s] ! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test test_telnetlib.py [code 1] [took 0.2s] ! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test --Event test_telnetlib.py [code 1] [took 0.2s]
! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test test_thread.py [code 1] [took 0.3s]
! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test --Event test_thread.py [code 1] [took 0.4s]
! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test test_threading.py [code 1] [took 0.5s]
! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test --Event test_threading.py [code 1] [took 0.4s]
! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test test_threading_local.py [code 1] [took 0.3s] ! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test --Event test_threading_local.py [code 1] [took 0.3s]
! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test test_timeout.py [code 1] [took 0.2s] ! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test test_urllib.py [code 1] [took 0.2s] ! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test --Event test_timeout.py [code 1] [took 0.2s]
! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test --Event test_urllib.py [code 1] [took 0.2s] ! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test test_urllib2.py [code 1] [took 0.2s] ! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test --Event test_urllib2.py [code 1] [took 0.2s]
! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test --Event test_urllib2_localnet.py [code 1] [took 0.2s] ! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test test_urllib2_localnet.py [code 1] [took 0.2s] ! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test test_urllib2net.py [code 1] [took 0.2s]
! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test --Event test_urllib2net.py [code 1] [took 0.1s] ! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test --Event test_wsgiref.py [code 1] [took 0.1s] ! /Users/davidlaxer/anaconda/bin/python -u -m monkey_test test_wsgiref.py [code 1] [took 0.1s]
! /Users/davidlaxer/anaconda/bin/python -u test__api_timeout.py [code 1] [took 0.7s]
! /Users/davidlaxer/anaconda/bin/python -u test__greenletset.py [code 1] [took 0.7s]
|
I think you missed the However, the |
Ok. Thanks. I have another question about gevent. Was ‘shutdown’ deprecated? In [1]: from gevent import shutdown ImportError Traceback (most recent call last) ImportError: cannot import name shutdown In [2]: from gevent import * In [3]: quit
|
AFAIK shutdown() is gone for good. The documentation you were referring On 12.06.2015 16:40, dbl001 wrote:
|
What about ‘get_hub’? from gevent.hub import get_hub, reinit I tried installing the older version of gevent: 556 pip install gevent==0.13.8
|
You need to be more precise in your descriptions. Anyway, 1.x versions of gevent export the top-level function get_hub. hub = gevent.get_hub() On 12.06.2015 17:11, dbl001 wrote:
|
I'm running on OS X 10.10.3.
Anaconda stack $ conda -V
conda 3.13.0
$ ipython
Python 2.7.10 |Anaconda 2.2.0 (x86_64)| (default, May 28 2015, 17:04:42)
Type "copyright", "credits" or "license" for more information.
In [1]: from test import test_support as support
ImportError Traceback (most recent call last)
in ()
----> 1 from test import test_support as support
ImportError: cannot import name test_support
In [2]:
The text was updated successfully, but these errors were encountered: