# WinError 10054

**URL:** <https://community.wandb.ai/t/winerror-10054/5861>\
**Category:** W&B Help\
**Tags:** wandb\
**Created:** [February 7, 2024, 11:33am UTC](https://community.wandb.ai/t/winerror-10054/5861 "2024-02-07T11:33:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![markman](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@markman](https://community.wandb.ai/u/markman)\
**Post date:** [February 7, 2024, 11:33am UTC](https://community.wandb.ai/t/winerror-10054/5861/1 "2024-02-07T11:33:13Z")

</div>

Hi,  
I am running simultaneously 4 runs in the same project. Everything is OK. I see the data changes at the dashboard. After a day I tried to run the fifth script with in the same project but with a new id. I am getting the error WinError 10054.  
Tried to relogin but it didn’t help.

this is what I get in VS code terminal.

PS C:\Users\Gilad\Markman Dropbox\Gilad Markman\Python\Space\_Invaders\> & c:/Users/Gilad/env/Scripts/python.exe “c:/Users/Gilad/Markman Dropbox/Gilad Markman/Python/Space\_Invaders/Trainer\_wandb.py”  
pygame 2.1.2 (SDL 2.0.18, Python 3.10.11)  
Hello from the pygame community. [Contribute - pygame wiki](https://www.pygame.org/contribute.html)  
wandb: Currently logged in as: markman (giladmarkman). Use `wandb login --relogin` to force relogin  
— Logging error —  
Traceback (most recent call last):  
File “C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10\_3.10.3056.0\_x64\_\_qbz5n2kfra8p0\lib\logging\__init_\_.py”, line 1103, in emit  
stream.write(msg + self.terminator)  
File “C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10\_3.10.3056.0\_x64\_\_qbz5n2kfra8p0\lib\encodings\cp1252.py”, line 19, in encode  
return codecs.charmap\_encode(input,self.errors,encoding\_table)[0]  
UnicodeEncodeError: ‘charmap’ codec can’t encode character ‘\u05ea’ in position 253: character maps to   
Call stack:  
File “c:\Users\Gilad\Markman Dropbox\Gilad Markman\Python\Space\_Invaders\Trainer\_wandb.py”, line 186, in   
main ()  
File “c:\Users\Gilad\Markman Dropbox\Gilad Markman\Python\Space\_Invaders\Trainer\_wandb.py”, line 69, in main  
wandb.init(  
File “C:\Users\Gilad\env\lib\site-packages\wandb\sdk\wandb\_init.py”, line 1176, in init  
run = wi.init()  
File “C:\Users\Gilad\env\lib\site-packages\wandb\sdk\wandb\_init.py”, line 573, in init  
logger.info(  
Message: “wandb.init called with sweep\_config: {}\nconfig: {‘name’: ‘Space\_invaders 24’, ‘checkpoint’: ‘Data/checkpoint24.pth’, ‘learning\_rate’: 0.0001, ‘architecture’: ‘FNN 128, 256, 512ת128, 64, 4’, ‘Schedule’: ‘5000, 10000, 15000, 20000 gamma=0.5’, ‘epochs’: 200000, ‘start\_epoch’: 0, ‘decay’: 20000, ‘gamma’: 0.99, ‘batch\_size’: 50, ‘C’: 3, ‘Model’: ‘DQN(\n (linear1): Linear(in\_features=88, out\_features=128, bias=True)\n (linear2): Linear(in\_features=128, out\_features=256, bias=True)\n (linear3): Linear(in\_features=256, out\_features=512, bias=True)\n (linear4): Linear(in\_features=512, out\_features=128, bias=True)\n (linear5): Linear(in\_features=128, out\_features=64, bias=True)\n (output): Linear(in\_features=64, out\_features=4, bias=True)\n (MSELoss): MSELoss()\n)’}”  
Arguments: ()  
Thread SenderThread: wandb.init()…  
Traceback (most recent call last):  
File “C:\Users\Gilad\env\lib\site-packages\wandb\sdk\internal\internal\_util.py”, line 49, in run  
self.\_run()  
File “C:\Users\Gilad\env\lib\site-packages\wandb\sdk\internal\internal\_util.py”, line 100, in \_run  
self.\_process(record)  
File “C:\Users\Gilad\env\lib\site-packages\wandb\sdk\internal\internal.py”, line 328, in \_process  
self.\_sm.send(record)  
File “C:\Users\Gilad\env\lib\site-packages\wandb\sdk\internal\sender.py”, line 389, in send  
send\_handler(record)  
File “C:\Users\Gilad\env\lib\site-packages\wandb\sdk\internal\sender.py”, line 947, in send\_run  
self.\_config\_save(config\_value\_dict)  
File “C:\Users\Gilad\env\lib\site-packages\wandb\sdk\internal\sender.py”, line 905, in \_config\_save  
config\_util.save\_config\_file\_from\_dict(config\_path, config\_value\_dict)  
File “C:\Users\Gilad\env\lib\site-packages\wandb\sdk\lib\config\_util.py”, line 92, in save\_config\_file\_from\_dict  
conf\_file.write(data)  
File “C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10\_3.10.3056.0\_x64\_\_qbz5n2kfra8p0\lib\encodings\cp1252.py”, line 19, in encode  
return codecs.charmap\_encode(input,self.errors,encoding\_table)[0]  
UnicodeEncodeError: ‘charmap’ codec can’t encode character ‘\u05ea’ in position 230: character maps to   
wandb: ERROR Internal wandb error: file data was not synced  
Problem at: c:\Users\Gilad\Markman Dropbox\Gilad Markman\Python\Space\_Invaders\Trainer\_wandb.py 69 main  
wandb: ERROR transport failed  
Traceback (most recent call last):  
File “c:\Users\Gilad\Markman Dropbox\Gilad Markman\Python\Space\_Invaders\Trainer\_wandb.py”, line 186, in   
main ()  
File “c:\Users\Gilad\Markman Dropbox\Gilad Markman\Python\Space\_Invaders\Trainer\_wandb.py”, line 69, in main  
wandb.init(  
File “C:\Users\Gilad\env\lib\site-packages\wandb\sdk\wandb\_init.py”, line 1195, in init  
raise e  
File “C:\Users\Gilad\env\lib\site-packages\wandb\sdk\wandb\_init.py”, line 1176, in init  
run = wi.init()  
File “C:\Users\Gilad\env\lib\site-packages\wandb\sdk\wandb\_init.py”, line 756, in init  
result = run\_init\_handle.wait(  
File “C:\Users\Gilad\env\lib\site-packages\wandb\sdk\lib\mailbox.py”, line 281, in wait  
raise MailboxError(“transport failed”)  
wandb.sdk.lib.mailbox.MailboxError: transport failed  
wandb: While tearing down the service manager. The following error has occurred: [WinError 10054] An existing connection was forcibly closed by the remote host  
PS C:\Users\Gilad\Markman Dropbox\Gilad Markman\Python\Space\_Invaders\>

---

<div class="post-metadata">

**Author:** ![nathank](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@nathank](https://community.wandb.ai/u/nathank)\
**Post date:** [February 12, 2024, 4:51pm UTC](https://community.wandb.ai/t/winerror-10054/5861/2 "2024-02-12T16:51:37Z")

</div>

Hi @markman, is it possible that you have the letter “[\u05ea](https://www.fileformat.info/info/unicode/char/05ea/index.htm)” getting logged anywhere?

Also, is this the exact same code as your other 4 runs other than the config?

Thank you,  
Nate
