I was facing the error above in teradataml
py package on Win11, when using Dataframe.from_query()
.
But I am sure the exception would be triggered in (many) other methods.
Why ?
Because of a generic bug in garbagecollector.py
constructor, namely the filename of the GarbageCollector contains one or multiple :
chars, which is invalid in Windows.
Note this is teradataml
v20.0.0.3
No issue if run in linux/WSL.
Had a closer look at it and the invalid name was due to a teradataml package function that gets the IP address of the TD server.
It can't resolve localhost
(am using SSH tunnel), resulting in ::
in the filename which Windows doesn't accept.
I switched to 127.0.0.1
in the connection string and problem solved.