I'm trying to read a .sav
file with Python 3 using savReaderWriter :
Here's my code :
from savReaderWriter import SavReader
with SavReader(mySavFile, returnHeader = True) as reader:
header = reader.next()
for line in reader:
process(line)
I get the following error :
OSError: dlopen(/Users/myusername/.virtualenvs/master/src/savreaderwriter/savReaderWriter/spssio/macos/libicuuc48.1.dylib, 6): Library not loaded: @executable_path/../lib/libicudata48.1.dylib
Referenced from: /Users/myusername/.virtualenvs/master/src/savreaderwriter/savReaderWriter/spssio/macos/libicuuc48.1.dylib
Reason: image not found
What am i doing wrong ?
I saw this recently with some Java libs and the solution was to symlink the library from its actual location to its expected location. This seems to more closely relate to your particular question.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.