Skip to content

AttributeError: module 'plotly.tools' has no attribute 'set_credentials_file' #1

@ooker777

Description

@ooker777
python .\main.py
Traceback (most recent call last):
  File "D:\QC supplements\Code\Apps\reddit\Reddit_Unlocked\main.py", line 14, in <module>
    from run import display_praw, stats_praw, body_to_graph, get_keyword_dict
  File "D:\QC supplements\Code\Apps\reddit\Reddit_Unlocked\run.py", line 84, in <module>
    plotly.tools.set_credentials_file(username='reddit_unlocked', api_key='gfnXKc7JvUKST4HRJyFX')
AttributeError: module 'plotly.tools' has no attribute 'set_credentials_file'

Here is the line 82

plotly.tools.set_credentials_file(username='reddit_unlocked', api_key='gfnXKc7JvUKST4HRJyFX')

I look at the plotly v5.14.1 documentation and see that there is indeed no plotly.tools here. Can you take a look?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions