I think you want the last line to be

ssh.exec_command('cp test.txt {}.mrs_stats0.{}.pytest.gz ; chmod +r {}.mrs_stats0.{}s.gz'.format(host, ydate, host, ydate))

just a misplaced bracket. In your current code ssh is paramiko.SSHClient() instance and its method exec_command() method returns the stdin, stdout, and stderr of the executing command, as a 3-tuple (link to docs]

Answer from buran on Stack Overflow
🌐
Python Forum
python-forum.io › thread-33245.html
AttributeError: 'tuple' object has no attribute 'format'
Confuse where is the error because execute some parts of codes half code run and half give me an error AttributeError: 'tuple' object has no attribute 'format' def __str__(self): return ('{} : {}','[]').format(self._word, self._coords)Erro...
Discussions

Openpyxl - How to apply number_format() to a column?
assuming that the tuple is just a series of cells, wouldn't for col_cell in ws['L']: do something with col_cell work? More on reddit.com
🌐 r/learnpython
3
1
March 23, 2017
AttributeError: 'tuple' object has no attribute 'format'
I get the following error when trying to use this package on readthedocs Sphinx 3.5.4, Traceback (most recent call last): File "/home/docs/checkouts/readthedocs.org/user_builds/pyodide/envs/la... More on github.com
🌐 github.com
0
May 2, 2021
ERROR: AttributeError: 'tuple' object has no attribute 'to'
Here is the colab notebook for reference: https://colab.research.google.com/drive/1ylMF3jZDukErLtZfKjB-K-U9Q46hH4FF?usp=sharing · The code is running using Kaggle More on github.com
🌐 github.com
3
January 1, 2024
AttributeError: 'tuple' object has no attribute '' Error Help
Remove the * in front of *arg. That is converting the argument into a tuple. More on reddit.com
🌐 r/learnpython
5
9
January 10, 2021
🌐
LearnDataSci
learndatasci.com › solutions › python-attributeerror-tuple-object-has-no-attribute
Python AttributeError: 'tuple' object has no attribute – LearnDataSci
The error AttributeError: 'tuple' object has no attribute is caused when treating the values within a tuple as named attributes.
🌐
Reddit
reddit.com › r/learnpython › openpyxl - how to apply number_format() to a column?
r/learnpython on Reddit: Openpyxl - How to apply number_format() to a column?
March 23, 2017 -
wb = Workbook()
ws = wb.active

for r in dataframe_to_rows(data, index = False):
	ws.append(r)

ISBN = ws['L'].number_format()

Line 7 throws this error:

AttributeError: 'tuple' object has no attribute 'number_format'

Googling this seems to show that the only solution is to loop through the range of each cell in the column, applying number_format() to each cell.

That would be OK but the problem is I won't know the exact number of rows in the file (the file sizes will vary). So how do you define a range of cells in Openpyxl if you don't know how many cells there are?

🌐
GitHub
github.com › humitos › sphinx-version-warning › issues › 34
AttributeError: 'tuple' object has no attribute 'format' · Issue #34 · humitos/sphinx-version-warning
May 2, 2021 - Traceback (most recent call last): File "/home/docs/checkouts/readthedocs.org/user_builds/pyodide/envs/latest/lib/python3.8/site-packages/sphinx/events.py", line 111, in emit results.append(listener.handler(self.app, *args)) File "/home/docs/checkouts/readthedocs.org/user_builds/pyodide/envs/latest/lib/python3.8/site-packages/versionwarning/signals.py", line 40, in generate_versionwarning_data_json message=message.format( AttributeError: 'tuple' object has no attribute 'format'
Author   rth
🌐
Autodesk
download.autodesk.com › global › docs › softimage2014 › en_us › sdkguide › files › script_trouble_ERRORtupleqobjecthasnoattribute.htm
ERROR : 'tuple' object has no attribute
This is a message that appears when you have provided a single variable for assignment from a method that supports output arguments and return values: · In this case, ConnectFromFile returns both the new shader source and provides the old disconnected shader in the PrevDataSource output argument, ...
🌐
Bobby Hadz
bobbyhadz.com › blog › python-attributeerror-tuple-object-has-no-attribute
AttributeError: 'tuple' object has no attribute X in Python | bobbyhadz
April 8, 2024 - The Python "AttributeError: 'tuple' object has no attribute" occurs when we access an attribute that doesn't exist on a tuple.
Find elsewhere
🌐
GitHub
github.com › pytorch › pytorch › issues › 116584
ERROR: AttributeError: 'tuple' object has no attribute 'to' · Issue #116584 · pytorch/pytorch
January 1, 2024 - --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) Cell In[118], line 21 16 print('Train Epoch: {} [{}/{} ({:.0f}%)]\tLoss: {:.6f}'.format( 17 epoch, batch_idx * len(data), len(train_loader.dataset), 18 100. * batch_idx / len(train_loader), loss.item())) 20 for epoch in range(1, 11): ---> 21 train(epoch) Cell In[118], line 10, in train(epoch) 8 model.train() 9 for batch_idx, (data, target) in enumerate(train_loader): ---> 10 data, target = data.to(device), target.to(device) 11 optimizer.zero_grad() 12 output = model(data) AttributeError: 'tuple' object has no attribute 'to' Here is the colab notebook for reference: https://colab.research.google.com/drive/1ylMF3jZDukErLtZfKjB-K-U9Q46hH4FF?usp=sharing ·
Author   andysingal
🌐
Free Python Source Code
freepythonsourcecode.com › post › 117
With Examples Fix attributeerror: 'tuple' object has no attribute ...
September 29, 2024 - The AttributeError: 'tuple' object has no attribute, which occurs when accessing an attribute or method that doesn't exist for a tuple object in Python.
🌐
Lemma Soft
lemmasoft.renai.us › forums › viewtopic.php
AttributeError: 'tuple' object has no attribute - Lemma Soft Forums
January 15, 2021 - Use the code tag to format scripts. ... Hi, I'm trying to make a calendar with classes from this tutorial :https://www.youtube.com/watch?v=XoowRbpBbs4 But i'm getting an error: ... I'm sorry, but an uncaught exception occurred. While running game code: File "game/script.rpy", line 16, in script $ calendar.AddTime (1) File "game/script.rpy", line 16, in <module> $ calendar.AddTime (1) AttributeError: 'tuple' object has no attribute 'AddTime' -- Full Traceback ------------------------------------------------------------ Full traceback: File "game/script.rpy", line 16, in script $ calendar.AddTim
🌐
Python.org
discuss.python.org › python help
AttributeError: 'tuple' object has no attribute 'enter' - Python Help - Discussions on Python.org
March 5, 2025 - Help! I’m coding a game program for my daughter and I come up with the following error: Traceback (most recent call last): File “/home/roberto-padilla/mystuff/ella_game.py”, line 193, in a_game.play() File “/home/roberto-padilla/mystuff/ella_game.py”, line 22, in play next_scene_name = current_scene.enter() ^^^^^^^^^^^^^^^^^^^ AttributeError: ‘tuple’ object has no attribute ‘enter’ Here’s the code: class Engine(object): def __init__(self, scene_map): self.scene_map = scen...
🌐
Sololearn
sololearn.com › en › Discuss › 1405271 › attributeerror-tuple-object-has-no-attribute-append
AttributeError: 'tuple' object has no attribute 'append' | Sololearn: Learn to code for FREE!
You have commas at the end of lines 1-4. 1: print("to stop adding numbers type 'quit' "), 2: input_user = input("type here your number:"), 3: result = 0, 4: input_numbers = [], I think Python automatically creates a tuple for lines 2 & 4 because without the parenthesis this is normally a multi-assignment syntax: a,b = b,a ...but without two variables on the left, Python took the 'safe' route, a tuple.
🌐
Esri Community
community.esri.com › t5 › arcgis-api-for-python-questions › attributeerror-tuple-object-has-no-attribute › td-p › 1182615
Solved: AttributeError: 'tuple' object has no attribute 'c... - Esri Community
June 14, 2022 - Solved: Hi, We work on a dedicated hosted version, so not the cloud solution. When we launch the scripts we manage to load everything to start with. so: import
🌐
Reddit
reddit.com › r/learnpython › getting attributeerror: 'tuple' object has no attribute 'items'
r/learnpython on Reddit: Getting AttributeError: 'tuple' object has no attribute 'items'
February 1, 2021 -
from kubernetes import client, config

config.load_kube_config()

v1 = client.CoreV1Api()
print("Listing services with their IPs:")
ret = v1.list_service_for_all_namespaces_with_http_info(watch=False)
for i in ret.items:
    print("%s\t%s\t%s" % (i.status.pod_ip, i.metadata.namespace, i.metadata.name))    

This throws this error: File "filename.py", line 8, in <module> for i in ret.items: AttributeError: 'tuple' object has no attribute 'items'

But when I simply print(ret), it certainly LOOKS like a tuple, which means I should be able to iterate through with tuple.items, no?

🌐
PyTorch Forums
discuss.pytorch.org › vision
'tuple' object has no attribute 'to' in pytorch - vision - PyTorch Forums
June 19, 2021 - I got this error while trying to test CNN model. I already checked type about this error point’variable. Here is error point 10. imgs = imgs.to(device) #imgs type <class ‘torch.Tensor’> —> 11 …