3

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 ?

Mohamed Benkedadra
  • 1,964
  • 3
  • 21
  • 48
BarJacks
  • 119
  • 2
  • 6

1 Answers1

0

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.

Library (dylib) not loaded - image not found - Python IDE

David
  • 1
  • 2