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

alembic upgrade +1 error: h not found #3863

Closed
0b01 opened this issue Sep 14, 2016 · 2 comments
Closed

alembic upgrade +1 error: h not found #3863

0b01 opened this issue Sep 14, 2016 · 2 comments

Comments

@0b01
Copy link

0b01 commented Sep 14, 2016

(.venv) root@QJXH001:~/h# source .venv/bin/activate
(.venv) root@QJXH001:~/h# alembic -c conf/alembic.ini upgrade +1
Traceback (most recent call last):
  File "/root/h/.venv/bin/alembic", line 11, in <module>
    sys.exit(main())
  File "/root/h/.venv/local/lib/python2.7/site-packages/alembic/config.py", line 479, in main
    CommandLine(prog=prog).main(argv=argv)
  File "/root/h/.venv/local/lib/python2.7/site-packages/alembic/config.py", line 473, in main
    self.run_cmd(cfg, options)
  File "/root/h/.venv/local/lib/python2.7/site-packages/alembic/config.py", line 456, in run_cmd
    **dict((k, getattr(options, k)) for k in kwarg)
  File "/root/h/.venv/local/lib/python2.7/site-packages/alembic/command.py", line 154, in upgrade
    script = ScriptDirectory.from_config(config)
  File "/root/h/.venv/local/lib/python2.7/site-packages/alembic/script/base.py", line 113, in from_config
    util.coerce_resource_to_filename(script_location),
  File "/root/h/.venv/local/lib/python2.7/site-packages/alembic/util/pyfiles.py", line 39, in coerce_resource_to_filename
    fname = pkg_resources.resource_filename(*fname.split(':'))
  File "/root/h/.venv/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1201, in resource_filename
    return get_provider(package_or_requirement).get_resource_filename(
  File "/root/h/.venv/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 434, in get_provider
    __import__(moduleOrReq)
ImportError: No module named h

What might be the issue?

@nickstenning
Copy link
Contributor

I'd suggest using the provided wrapper script -- this is the result of PYTHONPATH not being set properly.

./bin/hypothesis migrate upgrade +1

@0b01
Copy link
Author

0b01 commented Sep 14, 2016

Thank you.

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

2 participants