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

--version does not work #144

Open
kimusan opened this issue Jun 24, 2021 · 0 comments
Open

--version does not work #144

kimusan opened this issue Jun 24, 2021 · 0 comments

Comments

@kimusan
Copy link

kimusan commented Jun 24, 2021

When using the arg --version it fails with the following error:

python3 zerobin.pyz --version
Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "zerobin.pyz/__main__.py", line 3, in <module>
  File "zerobin.pyz/_bootstrap/__init__.py", line 187, in bootstrap
  File "zerobin.pyz/_bootstrap/__init__.py", line 33, in run
  File "/root/.shiv/zerobin_63c48db067d949d0c936954035f45fe311d077a7f8898571d310cdcb75ea0d19/site-packages/zerobin/cli.py", line 220, in main
    clize.run(runserver, delete_paste, infos, set_admin_password, clean_expired_pastes)
  File "/root/.shiv/zerobin_63c48db067d949d0c936954035f45fe311d077a7f8898571d310cdcb75ea0d19/site-packages/sigtools/modifiers.py", line 158, in __call__
    return self.func(*args, **kwargs)
  File "/root/.shiv/zerobin_63c48db067d949d0c936954035f45fe311d077a7f8898571d310cdcb75ea0d19/site-packages/clize/runner.py", line 363, in run
    ret = cli(*args)
  File "/root/.shiv/zerobin_63c48db067d949d0c936954035f45fe311d077a7f8898571d310cdcb75ea0d19/site-packages/clize/runner.py", line 220, in __call__
    return func(*posargs, **kwargs)
  File "/root/.shiv/zerobin_63c48db067d949d0c936954035f45fe311d077a7f8898571d310cdcb75ea0d19/site-packages/clize/runner.py", line 262, in _cli
    return func('{0} {1}'.format(name, command), *args)
  File "/root/.shiv/zerobin_63c48db067d949d0c936954035f45fe311d077a7f8898571d310cdcb75ea0d19/site-packages/clize/runner.py", line 220, in __call__
    return func(*posargs, **kwargs)
  File "/root/.shiv/zerobin_63c48db067d949d0c936954035f45fe311d077a7f8898571d310cdcb75ea0d19/site-packages/zerobin/cli.py", line 42, in runserver
    print("0bin V%s" % settings.VERSION)
AttributeError: 'SettingsContainer' object has no attribute '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