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: No module named _version #1

Open
scheung38 opened this issue Jan 7, 2016 · 0 comments
Open

ImportError: No module named _version #1

scheung38 opened this issue Jan 7, 2016 · 0 comments

Comments

@scheung38
Copy link

Hi I am trying to use demo.app:

from _version import __version__

parser.add_argument('--version', action='version', version='%%(prog)s %s' % __version__)

init.py:

from distutils.core import setup

setup(name='demoapp.py',
      version='1.0',
      description='Create a demoapp',
      author='Sebastian Cheung',
      author_email='[email protected]',
      url='http://github.com/scheung38',
      license='BSD',
      scripts=['demoapp.py']
     )

But output is:
python demoapp.py --version
Traceback (most recent call last):
File "demoapp.py", line 6, in
from _version import version
ImportError: No module named _version

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

1 participant