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

ImportError: cannot import name _args_from_interpreter_flags #39

Open
isbadawi opened this issue Jan 26, 2014 · 4 comments
Open

ImportError: cannot import name _args_from_interpreter_flags #39

isbadawi opened this issue Jan 26, 2014 · 4 comments
Milestone

Comments

@isbadawi
Copy link

I have a flask app which uses multiprocessing when computing stuff. When I add import flask.ext.testing at the top of my test module (and nothing else, not using it yet), I get this when I run my tests:

Traceback (most recent call last):
  File "mcbench_tests.py", line 5, in <module>
    import app
  File "/Users/isbadawi/code/py/mcbench/app.py", line 5, in <module>
    import mcbench.client
  File "/Users/isbadawi/code/py/mcbench/mcbench/client.py", line 4, in <module>
    from mcbench.benchmark import Benchmark, BenchmarkSet
  File "/Users/isbadawi/code/py/mcbench/mcbench/benchmark.py", line 5, in <module>
    import multiprocessing
  File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/__init__.py", line 65, in <module>
    from multiprocessing.util import SUBDEBUG, SUBWARNING
  File "/usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/multiprocessing/util.py", line 40, in <module>
    from subprocess import _args_from_interpreter_flags
ImportError: cannot import name _args_from_interpreter_flags
@jarus
Copy link
Owner

jarus commented Feb 23, 2014

Twill has a own subprocess implementation which breaks some things. See issue #36.

@jarus jarus added this to the Version 0.5 milestone Feb 27, 2014
@srossross
Copy link

+1

@srossross
Copy link

bump, Does anyone have a workaround for this?

@srossross
Copy link

This fixes the issue for me:

pip install Flask-Testing --upgrade
pip uninstall twill

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

3 participants