question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AttributeError: 'function' object has no attribute 'ensure'

See original GitHub issue

I’ve tried to make a patch but I don’t get why all those branches are there. Why is screenshot_dir recreated in certain conditions?

[gw1] linux2 -- Python 2.7.12 /usr/bin/python2.7
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/pytest_splinter/plugin.py", line 522, in _take_screenshot_on_failure
    splinter_screenshot_getter_png=splinter_screenshot_getter_png,
  File "/usr/local/lib/python2.7/dist-packages/pytest_splinter/plugin.py", line 376, in _take_screenshot
    screenshot_dir = session_tmpdir.ensure('screenshots', dir=True).strpath
AttributeError: 'function' object has no attribute 'ensure'

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
bubenkoffcommented, May 16, 2017

sorry for making mess - 1.8.5 should work

0reactions
ionelmccommented, May 17, 2017

No problem, thanks for the quick fixes 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

AttributeError: 'function' object has no attribute 'compile'
Solution: Give the function another name so that the word "model" only refers to the model object, which has a compile method you...
Read more >
How to Fix AttributeError in Python - Rollbar
The Python AttributeError is raised when an invalid attribute reference is made. This can happen if an attribute or function not associated with ......
Read more >
AttributeError: 'function' object has no attribute - Databricks
Using protected keywords from the DataFrame API as column names results in a function object has no attribute error message.
Read more >
AttributeError: 'function' object has no attribute 'method'
I solved it by changing from flask import Flask, flash, redirect, render_template, request, session. into import flask.
Read more >
[FIXED] AttributeError: 'NoneType' object has no attribute ...
Problem: How to solve “AttributeError: 'NoneType' object has no attribute 'something' “? ... append() function and strings don't support it. ... Hence, if...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found