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

'Session' object has no attribute 'logger' #221

Closed
fholt opened this issue Jan 18, 2023 · 3 comments
Closed

'Session' object has no attribute 'logger' #221

fholt opened this issue Jan 18, 2023 · 3 comments
Labels
2.0.11 bug Something isn't working fixed

Comments

@fholt
Copy link

fholt commented Jan 18, 2023

tabcmd has been working for months, then last night we starting getting errors. See attached tabcmd.log. I tried downloading the latest...same error.

Here is the command I am using...
"c:\tabcmd\tabcmd" refreshextracts --server "https://us-east-1.online.tableau.com" --site "skylarcapital" --token-name "FosterPAT" --token-value "" --project "Default" --datasource "wx_Latest_Daily (EuropeDB)"

I have a number datasources that I update using tabcmd.

Please advise.

tabcmd.log

@jacalata
Copy link
Contributor

Try running "tabcmd logout" and then try your command again. Does that work?

@fholt
Copy link
Author

fholt commented Jan 19, 2023

Just doing tabcmd logout doesn't work...

C:\Tableau Automation>"c:\tabcmd\tabcmd" logout
logging: INFO
'Session' object has no attribute 'logger'
Traceback (most recent call last):
File "tabcmd\commands\auth\session.py", line 360, in _read_from_json
KeyError: 'tableau_auth'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "tabcmd\execution\tabcmd_controller.py", line 47, in run
File "tabcmd\commands\auth\logout_command.py", line 24, in run_command
File "tabcmd\commands\auth\session.py", line 51, in init
File "tabcmd\commands\auth\session.py", line 378, in _read_from_json
AttributeError: 'Session' object has no attribute 'logger'

@jacalata jacalata added bug Something isn't working in-progress labels Jan 30, 2023
@jacalata jacalata mentioned this issue Jan 31, 2023
@jacalata
Copy link
Contributor

@fholt this should have been fixed in the 2.0.11 release, which added a way to recover if the saved file is unreadable. Did you solve the problem yourself, or does 2.0.11 work for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.0.11 bug Something isn't working fixed
Projects
None yet
Development

No branches or pull requests

2 participants