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

test module dependency? #43

Open
kmatt opened this Issue Nov 23, 2016 · 14 comments

Comments

Projects
None yet
2 participants
@kmatt

kmatt commented Nov 23, 2016

Is there a test module that needs to be in place that pip does not import?

$ pip install vcspull
$ vcspull
from test import support
ImportError: No module named 'test'

$ pip install test
$ vcspull
from test import support
ImportError: cannot import name 'support'
@tony

This comment has been minimized.

Member

tony commented Nov 23, 2016

@kmatt thanks for that. Can you give me your python -v?

@kmatt

This comment has been minimized.

kmatt commented Nov 23, 2016

Python 3.4.4 :: Anaconda 4.0.0 (x86_64)
@kmatt

This comment has been minimized.

kmatt commented Nov 23, 2016

$ python -v
import _frozen_importlib # frozen
import imp # builtin
import sys # builtin
# installing zipimport hook
# installed zipimport hook
# /Users/kmatt/anaconda3/lib/python3.4/encodings/__pycache__/__init__.cpython-34.pyc matches /Users/kmatt/anaconda3/lib/python3.4/encodings/__init__.py
# code object from '/Users/kmatt/anaconda3/lib/python3.4/encodings/__pycache__/__init__.cpython-34.pyc'
# /Users/kmatt/anaconda3/lib/python3.4/__pycache__/codecs.cpython-34.pyc matches /Users/kmatt/anaconda3/lib/python3.4/codecs.py
# code object from '/Users/kmatt/anaconda3/lib/python3.4/__pycache__/codecs.cpython-34.pyc'
import 'codecs' # <_frozen_importlib.SourceFileLoader object at 0x1003dcda0>
# /Users/kmatt/anaconda3/lib/python3.4/encodings/__pycache__/aliases.cpython-34.pyc matches /Users/kmatt/anaconda3/lib/python3.4/encodings/aliases.py
# code object from '/Users/kmatt/anaconda3/lib/python3.4/encodings/__pycache__/aliases.cpython-34.pyc'
import 'encodings.aliases' # <_frozen_importlib.SourceFileLoader object at 0x1003f29e8>
import 'encodings' # <_frozen_importlib.SourceFileLoader object at 0x1003dc978>
# /Users/kmatt/anaconda3/lib/python3.4/encodings/__pycache__/utf_8.cpython-34.pyc matches /Users/kmatt/anaconda3/lib/python3.4/encodings/utf_8.py
# code object from '/Users/kmatt/anaconda3/lib/python3.4/encodings/__pycache__/utf_8.cpython-34.pyc'
import 'encodings.utf_8' # <_frozen_importlib.SourceFileLoader object at 0x10242a6d8>
# /Users/kmatt/anaconda3/lib/python3.4/encodings/__pycache__/latin_1.cpython-34.pyc matches /Users/kmatt/anaconda3/lib/python3.4/encodings/latin_1.py
# code object from '/Users/kmatt/anaconda3/lib/python3.4/encodings/__pycache__/latin_1.cpython-34.pyc'
import 'encodings.latin_1' # <_frozen_importlib.SourceFileLoader object at 0x10242e1d0>
# /Users/kmatt/anaconda3/lib/python3.4/__pycache__/io.cpython-34.pyc matches /Users/kmatt/anaconda3/lib/python3.4/io.py
# code object from '/Users/kmatt/anaconda3/lib/python3.4/__pycache__/io.cpython-34.pyc'
# /Users/kmatt/anaconda3/lib/python3.4/__pycache__/abc.cpython-34.pyc matches /Users/kmatt/anaconda3/lib/python3.4/abc.py
# code object from '/Users/kmatt/anaconda3/lib/python3.4/__pycache__/abc.cpython-34.pyc'
# /Users/kmatt/anaconda3/lib/python3.4/__pycache__/_weakrefset.cpython-34.pyc matches /Users/kmatt/anaconda3/lib/python3.4/_weakrefset.py
# code object from '/Users/kmatt/anaconda3/lib/python3.4/__pycache__/_weakrefset.cpython-34.pyc'
import '_weakrefset' # <_frozen_importlib.SourceFileLoader object at 0x10242ee80>
import 'abc' # <_frozen_importlib.SourceFileLoader object at 0x10242e668>
import 'io' # <_frozen_importlib.SourceFileLoader object at 0x10242e3c8>
# /Users/kmatt/anaconda3/lib/python3.4/__pycache__/site.cpython-34.pyc matches /Users/kmatt/anaconda3/lib/python3.4/site.py
# code object from '/Users/kmatt/anaconda3/lib/python3.4/__pycache__/site.cpython-34.pyc'
# /Users/kmatt/anaconda3/lib/python3.4/__pycache__/os.cpython-34.pyc matches /Users/kmatt/anaconda3/lib/python3.4/os.py
# code object from '/Users/kmatt/anaconda3/lib/python3.4/__pycache__/os.cpython-34.pyc'
# /Users/kmatt/anaconda3/lib/python3.4/__pycache__/stat.cpython-34.pyc matches /Users/kmatt/anaconda3/lib/python3.4/stat.py
# code object from '/Users/kmatt/anaconda3/lib/python3.4/__pycache__/stat.cpython-34.pyc'
import 'stat' # <_frozen_importlib.SourceFileLoader object at 0x102456d68>
# /Users/kmatt/anaconda3/lib/python3.4/__pycache__/posixpath.cpython-34.pyc matches /Users/kmatt/anaconda3/lib/python3.4/posixpath.py
# code object from '/Users/kmatt/anaconda3/lib/python3.4/__pycache__/posixpath.cpython-34.pyc'
# /Users/kmatt/anaconda3/lib/python3.4/__pycache__/genericpath.cpython-34.pyc matches /Users/kmatt/anaconda3/lib/python3.4/genericpath.py
# code object from '/Users/kmatt/anaconda3/lib/python3.4/__pycache__/genericpath.cpython-34.pyc'
import 'genericpath' # <_frozen_importlib.SourceFileLoader object at 0x10245f668>
import 'posixpath' # <_frozen_importlib.SourceFileLoader object at 0x102456fd0>
# /Users/kmatt/anaconda3/lib/python3.4/__pycache__/_collections_abc.cpython-34.pyc matches /Users/kmatt/anaconda3/lib/python3.4/_collections_abc.py
# code object from '/Users/kmatt/anaconda3/lib/python3.4/__pycache__/_collections_abc.cpython-34.pyc'
import '_collections_abc' # <_frozen_importlib.SourceFileLoader object at 0x10245f588>
import 'os' # <_frozen_importlib.SourceFileLoader object at 0x102446c18>
# /Users/kmatt/anaconda3/lib/python3.4/__pycache__/_sitebuiltins.cpython-34.pyc matches /Users/kmatt/anaconda3/lib/python3.4/_sitebuiltins.py
# code object from '/Users/kmatt/anaconda3/lib/python3.4/__pycache__/_sitebuiltins.cpython-34.pyc'
import '_sitebuiltins' # <_frozen_importlib.SourceFileLoader object at 0x102446be0>
# /Users/kmatt/anaconda3/lib/python3.4/__pycache__/sysconfig.cpython-34.pyc matches /Users/kmatt/anaconda3/lib/python3.4/sysconfig.py
# code object from '/Users/kmatt/anaconda3/lib/python3.4/__pycache__/sysconfig.cpython-34.pyc'
import 'sysconfig' # <_frozen_importlib.SourceFileLoader object at 0x1024f19e8>
# /Users/kmatt/anaconda3/lib/python3.4/__pycache__/_sysconfigdata.cpython-34.pyc matches /Users/kmatt/anaconda3/lib/python3.4/_sysconfigdata.py
# code object from '/Users/kmatt/anaconda3/lib/python3.4/__pycache__/_sysconfigdata.cpython-34.pyc'
import '_sysconfigdata' # <_frozen_importlib.SourceFileLoader object at 0x1024fd2b0>
# /Users/kmatt/anaconda3/lib/python3.4/__pycache__/_osx_support.cpython-34.pyc matches /Users/kmatt/anaconda3/lib/python3.4/_osx_support.py
# code object from '/Users/kmatt/anaconda3/lib/python3.4/__pycache__/_osx_support.cpython-34.pyc'
# /Users/kmatt/anaconda3/lib/python3.4/__pycache__/re.cpython-34.pyc matches /Users/kmatt/anaconda3/lib/python3.4/re.py
# code object from '/Users/kmatt/anaconda3/lib/python3.4/__pycache__/re.cpython-34.pyc'
# /Users/kmatt/anaconda3/lib/python3.4/__pycache__/sre_compile.cpython-34.pyc matches /Users/kmatt/anaconda3/lib/python3.4/sre_compile.py
# code object from '/Users/kmatt/anaconda3/lib/python3.4/__pycache__/sre_compile.cpython-34.pyc'
# /Users/kmatt/anaconda3/lib/python3.4/__pycache__/sre_parse.cpython-34.pyc matches /Users/kmatt/anaconda3/lib/python3.4/sre_parse.py
# code object from '/Users/kmatt/anaconda3/lib/python3.4/__pycache__/sre_parse.cpython-34.pyc'
# /Users/kmatt/anaconda3/lib/python3.4/__pycache__/sre_constants.cpython-34.pyc matches /Users/kmatt/anaconda3/lib/python3.4/sre_constants.py
# code object from '/Users/kmatt/anaconda3/lib/python3.4/__pycache__/sre_constants.cpython-34.pyc'
import 'sre_constants' # <_frozen_importlib.SourceFileLoader object at 0x102522b70>
import 'sre_parse' # <_frozen_importlib.SourceFileLoader object at 0x10251d2b0>
import 'sre_compile' # <_frozen_importlib.SourceFileLoader object at 0x1025141d0>
# /Users/kmatt/anaconda3/lib/python3.4/__pycache__/copyreg.cpython-34.pyc matches /Users/kmatt/anaconda3/lib/python3.4/copyreg.py
# code object from '/Users/kmatt/anaconda3/lib/python3.4/__pycache__/copyreg.cpython-34.pyc'
import 'copyreg' # <_frozen_importlib.SourceFileLoader object at 0x10252d4e0>
import 're' # <_frozen_importlib.SourceFileLoader object at 0x102510240>
import '_osx_support' # <_frozen_importlib.SourceFileLoader object at 0x102508390>
# /Users/kmatt/anaconda3/lib/python3.4/__pycache__/_bootlocale.cpython-34.pyc matches /Users/kmatt/anaconda3/lib/python3.4/_bootlocale.py
# code object from '/Users/kmatt/anaconda3/lib/python3.4/__pycache__/_bootlocale.cpython-34.pyc'
import '_bootlocale' # <_frozen_importlib.SourceFileLoader object at 0x102510160>
# /Users/kmatt/anaconda3/lib/python3.4/__pycache__/types.cpython-34.pyc matches /Users/kmatt/anaconda3/lib/python3.4/types.py
# code object from '/Users/kmatt/anaconda3/lib/python3.4/__pycache__/types.cpython-34.pyc'
import 'types' # <_frozen_importlib.SourceFileLoader object at 0x10252dc50>
# /Users/kmatt/anaconda3/lib/python3.4/encodings/__pycache__/cp437.cpython-34.pyc matches /Users/kmatt/anaconda3/lib/python3.4/encodings/cp437.py
# code object from '/Users/kmatt/anaconda3/lib/python3.4/encodings/__pycache__/cp437.cpython-34.pyc'
import 'encodings.cp437' # <_frozen_importlib.SourceFileLoader object at 0x10253e358>
# zipimport: found 10 names in '/Users/kmatt/anaconda3/lib/python3.4/site-packages/pysparklines-0.9-py3.4.egg'
# zipimport: found 21 names in '/Users/kmatt/anaconda3/lib/python3.4/site-packages/Pycco-0.4.1-py3.4.egg'
# zipimport: found 23 names in '/Users/kmatt/anaconda3/lib/python3.4/site-packages/pytify-3.1.5-py3.4.egg'
# zipimport: found 7 names in '/Users/kmatt/anaconda3/lib/python3.4/site-packages/gcalcli-4.0.0a2-py3.4.egg'
# zipimport: found 122 names in '/Users/kmatt/anaconda3/lib/python3.4/site-packages/setuptools-20.3-py3.4.egg'
import 'site' # <_frozen_importlib.SourceFileLoader object at 0x10243d748>
Python 3.4.4 |Anaconda 4.0.0 (x86_64)| (default, Jan  9 2016, 17:30:09)
[GCC 4.2.1 (Apple Inc. build 5577)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
# extension module loaded from '/Users/kmatt/anaconda3/lib/python3.4/lib-dynload/readline.so'
# /Users/kmatt/anaconda3/lib/python3.4/__pycache__/rlcompleter.cpython-34.pyc matches /Users/kmatt/anaconda3/lib/python3.4/rlcompleter.py
# code object from '/Users/kmatt/anaconda3/lib/python3.4/__pycache__/rlcompleter.cpython-34.pyc'
import 'rlcompleter' # <_frozen_importlib.SourceFileLoader object at 0x10258deb8>
@tony

This comment has been minimized.

Member

tony commented Nov 23, 2016

Yeah I see that happen with Anaconda. Let me update the libvcs version

tony added a commit that referenced this issue Nov 23, 2016

@tony

This comment has been minimized.

Member

tony commented Nov 23, 2016

pip install -U vcspull. Does that help?

@kmatt

This comment has been minimized.

kmatt commented Nov 23, 2016

Error is gone, but a 'vcspull "repopath"' does not appear to be doing anything on a path that has commits that need pulling. Adding --log DEBUG does not return anything.

@tony

This comment has been minimized.

Member

tony commented Nov 23, 2016

What output do you get? What OS are you on?

What does vcspull without any additional arguments give you?

@kmatt

This comment has been minimized.

kmatt commented Nov 23, 2016

OS X 10.12.1, no output in any case, with or without parameters to vcspull.

@tony

This comment has been minimized.

Member

tony commented Nov 23, 2016

Can you tell me the output of cat ~/.vcspull.yaml?

@kmatt

This comment has been minimized.

kmatt commented Nov 23, 2016

No such file or directory

@tony

This comment has been minimized.

Member

tony commented Nov 23, 2016

There is a file called ~/.vcspull.yaml where you would put the repo(s).

Here is an example of my own: https://github.com/tony/.dot-config/blob/master/.vcspull.yaml

@kmatt

This comment has been minimized.

kmatt commented Nov 23, 2016

Was creating this something I missed in the docs? I did a simple "pip install" and ran with it.

@tony

This comment has been minimized.

Member

tony commented Nov 23, 2016

Yep people have been saying I could document this project better. This is one of those projects I've long struggled conveying value / usage of.

I updated the README to make it more clear.

Are you interested in functionality that would automatically detect repos without them being in a YAML/JSON manifest? Kind of like #25?

@kmatt

This comment has been minimized.

kmatt commented Nov 23, 2016

Are you interested in functionality that would automatically detect repos without them being in a YAML/JSON manifest? Kind of like #25?

Absolutely!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment