Unable to read SAV files on Windows10
I was using the package to read an sav file on Windows 8 and it worked fine, but I updated to Windows 10 recently and am unable to use the package to read in files. I'm relatively new to Python, so I am unable to understand what's causing this error. Here's the traceback I get when I'm trying to read a file in.
File "<ipython-input-11-5b568714e42c>", line 2, in <module> returnHeader = True, rawMode = True)))
File "C:\Users\vajjpr01\AppData\Local\Continuum\Anaconda3\lib\site-packages\savreaderwriter-3.3.0-py3.6.egg\savReaderWriter\savReader.py", line 57, in init
File "C:\Users\vajjpr01\AppData\Local\Continuum\Anaconda3\lib\site-packages\savreaderwriter-3.3.0-py3.6.egg\savReaderWriter\header.py", line 31, in init
File "C:\Users\vajjpr01\AppData\Local\Continuum\Anaconda3\lib\site-packages\savreaderwriter-3.3.0-py3.6.egg\savReaderWriter\generic.py", line 30, in init
File "C:\Users\vajjpr01\AppData\Local\Continuum\Anaconda3\lib\ctypes__init__.py", line 426, in LoadLibrary return self._dlltype(name)
File "C:\Users\vajjpr01\AppData\Local\Continuum\Anaconda3\lib\ctypes__init__.py", line 348, in init self._handle = _dlopen(self._name, mode)
TypeError: bad argument type for built-in operation
Comments (2)
-
repo owner -
Hi Albert,
The output I get is 'None' when I try that in command prompt. I am using the latest version of the package (3.4.2). Here's my Python version:
3.6.1 |Anaconda 4.4.0 (64-bit)| (default, May 11 2017, 13:25:24) [MSC v.1900 64 bit (AMD64)]
Could you please let me know if I should upgrade any other packages?
Thanks!
- Log in to comment
Hi,
I think you need to upgrade to the latest version. This is probably due to the fact that
ctypes.util.find_library('c')
returnsNone
in modern Windows versions (https://bugs.python.org/issue23606), which then causes aTypeError
in the next step. What output do you get if you run this in a command prompt?Best wishes, Albert-Jan