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

@q crashes program with NoneType object has no attribute f_lineno #45

Open
robintw opened this issue Jun 5, 2016 · 0 comments
Open

Comments

@robintw
Copy link

robintw commented Jun 5, 2016

I'm using the @q decorator in a program to try and work out how it is running. When I run the program I find that it crashes because of an error within q:

Traceback (most recent call last):
  File "/opt/anaconda3/envs/python2/bin/rio", line 9, in <module>
    load_entry_point('rasterio', 'console_scripts', 'rio')()
  File "/opt/anaconda3/envs/python2/lib/python2.7/site-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/opt/anaconda3/envs/python2/lib/python2.7/site-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/opt/anaconda3/envs/python2/lib/python2.7/site-packages/click/core.py", line 1058, in invoke
    sub_ctx = cmd.make_context(cmd_name, args, parent=ctx)
  File "/opt/anaconda3/envs/python2/lib/python2.7/site-packages/click/core.py", line 620, in make_context
    self.parse_args(ctx, args)
  File "/opt/anaconda3/envs/python2/lib/python2.7/site-packages/click/core.py", line 874, in parse_args
    value, args = param.handle_parse_result(ctx, opts, args)
  File "/opt/anaconda3/envs/python2/lib/python2.7/site-packages/click/core.py", line 1398, in handle_parse_result
    self.callback, ctx, self, value)
  File "/opt/anaconda3/envs/python2/lib/python2.7/site-packages/click/core.py", line 76, in invoke_param_callback
    return callback(ctx, value)
  File "/opt/anaconda3/envs/python2/lib/python2.7/site-packages/q-2.6-py2.7.egg/q.py", line 284, in wrapper
    info = self.inspect.getframeinfo(etb.tb_next, context=3)
  File "/opt/anaconda3/envs/python2/lib/python2.7/inspect.py", line 1005, in getframeinfo
    lineno = frame.f_lineno
AttributeError: 'NoneType' object has no attribute 'f_lineno'

Any ideas on what's going wrong here and how it can be fixed?

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