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

Just installed, "ImportError: cannot import name test_support" #121

Closed
mmulich opened this issue Oct 13, 2015 · 6 comments
Closed

Just installed, "ImportError: cannot import name test_support" #121

mmulich opened this issue Oct 13, 2015 · 6 comments

Comments

@mmulich
Copy link

@mmulich mmulich commented Oct 13, 2015

I just installed tmuxp (pip install tmuxp). I received the following error when I run tmuxp --help or anything tmuxp.

Traceback (most recent call last):
  File "/usr/local/bin/tmuxp", line 7, in <module>
    from tmuxp import cli
  File "/usr/local/lib/python2.7/site-packages/tmuxp/__init__.py", line 17, in <module>
    from .session import Session
  File "/usr/local/lib/python2.7/site-packages/tmuxp/session.py", line 14, in <module>
    from .window import Window
  File "/usr/local/lib/python2.7/site-packages/tmuxp/window.py", line 14, in <module>
    from . import util, formats, exc
  File "/usr/local/lib/python2.7/site-packages/tmuxp/util.py", line 22, in <module>
    from . import exc
  File "/usr/local/lib/python2.7/site-packages/tmuxp/exc.py", line 14, in <module>
    from ._compat import implements_to_string
  File "/usr/local/lib/python2.7/site-packages/tmuxp/_compat.py", line 36, in <module>
    from test import test_support as support
ImportError: cannot import name test_support

I'm on OS X 10.10 with (homebrew installed) Python 2.7.9.

@tony
Copy link
Member

@tony tony commented Oct 21, 2015

I've never encountered this (I also have an OS X 10.10 machine running tmuxp)

What is your pip version? (pip -V)? Also can I see your which pip and which python?

How did you install your pip? Did you use sudo python get-pip.py from the official pip site?

@mprat
Copy link

@mprat mprat commented Nov 4, 2015

I have the same problem:

OSX 10.10, Anaconda Python 2.7.10
Installed pip with homebrew (i.e. brew install python) but then am using Anaconda Python instead.
pip version 7.1.2

@mmulich
Copy link
Author

@mmulich mmulich commented Nov 4, 2015

I also have pip version 7.1.2. I don't recall how it was originally installed.

The problem for me is that I have my user site-packages pointing at a virtualenv (for a project that has imports within plpythonu functions). This is where my system is finding the latest version of pip.

I removed the user site-packages synlink, uninstalled tmuxp and reinstalled it. This seems to have corrected the issue for me.

@tony
Copy link
Member

@tony tony commented Nov 5, 2015

I haven't recreated it personally yet, I have found this issue can has arisen elsewhere:

@tony
Copy link
Member

@tony tony commented Dec 6, 2015

Anyone interested in making a PR for this? @pumazi @mprat

@tony
Copy link
Member

@tony tony commented Jan 6, 2016

@pumazi @mprat:

tmuxp v0.9.3 is up. Give it a try

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

Successfully merging a pull request may close this issue.

None yet
3 participants