I'm making a few tables on python using the fairly new great-tables library, but I'm not being able to properly .save() the table as PNG. In total I made 3 tables, 2 last week and one I just finished. The first two I also wasn't able to save at first, but that was because I'm working behind a corporate firewall. To solve that, I changed my driver from web_driver='chrome' to web_driver='edge' and it worked. My .save() code block: table.save( file='K:\PATH\table_name.png', selector='table', scale=1.0, expand=5, web_driver='edge', encoding='utf-8', ) Fast forward to this day, I just finished the last one (using the same .save() method) and all of the sudden all my scripts stopped saving and the folowing error occur: Error traceback: SessionNotCreatedException: Message: session not created: probably user data directory is already in use, please specify a unique value for --user-data-dir argument, or don't use --user-data-dir Stacktrace: GetHandleVerifier [0x00007FF72BCB79C5+24981] Microsoft::Applications::Events::ILogConfiguration:perator* [0x00007FF72BC0ABD0+444192] Microsoft::Applications::Events::EventProperty::to_string [0x00007FF72BF3E0AA+2011274] (No symbol) [0x00007FF72BA127C9] (No symbol) [0x00007FF72BA1036F] (No symbol) [0x00007FF72BA553D5] (No symbol) [0x00007FF72BA5443B] (No symbol) [0x00007FF72BA48E03] (No symbol) [0x00007FF72BA1D686] (No symbol) [0x00007FF72BA1CB92] (No symbol) [0x00007FF72BA1D4B3] (No symbol) [0x00007FF72BB1900D] Microsoft::Applications::Events::EventProperty::~EventProperty [0x00007FF72BB26943+41539] Microsoft::Applications::Events::EventProperty::~EventProperty [0x00007FF72BB1FC79+13689] Microsoft::Applications::Events::EventProperty::to_string [0x00007FF72BD9A00A+290794] Microsoft::Applications::Events::ILogConfiguration:perator* [0x00007FF72BC17CA1+497649] Microsoft::Applications::Events::ILogConfiguration:perator* [0x00007FF72BC10B24+468596] Microsoft::Applications::Events::ILogConfiguration:perator* [0x00007FF72BC10C73+468931] Microsoft::Applications::Events::ILogConfiguration:perator* [0x00007FF72BC02D86+411862] BaseThreadInitThunk [0x00007FFE4D7D7374+20] RtlUserThreadStart [0x00007FFE4EAFCC91+33] To solve this i tried to manually set up my selenium driver: from selenium import webdriver from selenium.webdriver.edge.service import Service as EdgeService from webdriver_manager.microsoft import EdgeChromiumDriverManager options = webdriver.EdgeOptions() options.add_argument("--headless") driver = webdriver.Edge(service=EdgeService(EdgeChromiumDriverManager().install()), options=options) To then add web_driver=driver, but as a result I got the same error to occur. So now I'm trying to figure out what could be the problem. My thoughts: . it must be a problem with my firewall. . it must be a bug on great-tables, as it's still in development. . it must be a problem with the way i'm setting up my driver I would very much appreciate help on the metter, because this is my first contact with the selenium library. If I missed any thing, just let me know that I will update this question. Thank you for the help! Continue reading...