Trouble opening sas file with UNC path #135
-
Hi all, I'm having trouble using read_sas7bdat and I was wondering if anyone had ever faced something similar. I'm on a Windows 10 64 bits platform using pyreadstat version 1.1.2. I'm trying to read a SAS file located at a UNC path (think : \server_name\path\to\my\file.sas7dbat). The path exists, meaning that : However, when I try to run : I get the following : "pyreadstat._readstat_parser.PyreadstatError: File \\server_name\path\to\my\file.sas7dbat does not exist !" I'm able to read some regular, C:\Users\MyName\path\to\my\file.sas7dbat files, so I'm inclined to think it's probably a UNC path issue. Any idea what's going on here and how I might manage to read my file ? Thanks ! Best, Lucie |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
hmm, maybe try using forward slashes? https://stackoverflow.com/questions/7169845/using-python-how-can-i-access-a-shared-folder-on-windows-network otherwise, does this sequence of commands reproduce the issue?
the last line should rise an error, you could print what is filename_bytes to see why os.path.isfile thinks it is not a file. |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks a lot for trying all this ! |
Beta Was this translation helpful? Give feedback.
hmm, maybe try using forward slashes? https://stackoverflow.com/questions/7169845/using-python-how-can-i-access-a-shared-folder-on-windows-network
otherwise, does this sequence of commands reproduce the issue?
the last line should rise an error, you could print what is filename_bytes to see why os.path.isfile thinks it is not a file.