Skip to content

Libraries issue #32

@williamBarnhart

Description

@williamBarnhart

Hi, and thank you for any guidance you can provide on the following-

I'm running to a libraries issue despite following the suggested fix for setting LD_LIBRARY_PATH. I installed the package using the miniconda option.

In running the test script, I receive the following Failed tests:
FAILED tests/test_geoCorrelation.py::test_corr[test_corr_config0] - geoCosiCorr3D.geoCore.core_correlation.InvalidCorrLib
FAILED tests/test_geoCorrelation.py::test_corr[test_corr_config1] - geoCosiCorr3D.geoCore.core_correlation.InvalidCorrLib
FAILED tests/test_geoOpt.py::test_geoOpt - SystemExit: Unable to load the system C library
FAILED tests/test_geoOrtho.py::test_ortho_rsm[sinc-30] - SystemExit: Unable to load the system C library
FAILED tests/test_geoOrtho.py::test_ortho_rsm[sinc-15] - SystemExit: Unable to load the system C library
FAILED tests/test_geoOrtho.py::test_ortho_rsm[bilinear-30] - SystemExit: Unable to load the system C library
FAILED tests/test_geoOrtho.py::test_ortho_rsm[bilinear-15] - SystemExit: Unable to load the system C library
FAILED tests/test_geoOrtho.py::test_ortho_rfm[sinc-30] - ValueError: Unable to load the system C library/Users/wbarnhart/Work/PixelTracking/Geospatial-COSICorr3D-main/lib/lfgeoCosiCorr3D.so
FAILED tests/test_tp_gcp_gen.py::test_asift_tps - ValueError: fname must be a string, filehandle, list of strings,

Additionally, when running the cosicorr.py script with the correlate module, I receive:
Traceback (most recent call last):
File "/Users/wbarnhart/Work/PixelTracking/Geospatial-COSICorr3D-main/geoCosiCorr3D/geoCore/core_correlation.py", line 111, in run_correlator
lib_cfreq_corr = cdll.LoadLibrary(FREQ_CORR_LIB)
File "/Users/wbarnhart/miniconda3/envs/geoCosiCorr3D/lib/python3.9/ctypes/init.py", line 460, in LoadLibrary
return self._dlltype(name)
File "/Users/wbarnhart/miniconda3/envs/geoCosiCorr3D/lib/python3.9/ctypes/init.py", line 382, in init
self._handle = _dlopen(self._name, mode)
OSError: dlopen(/Users/wbarnhart/Work/PixelTracking/Geospatial-COSICorr3D-main/lib/lgeoFreqCorr_v1.so, 0x0006): tried: '/Users/wbarnhart/Work/PixelTracking/Geospatial-COSICorr3D-main/lib/lgeoFreqCorr_v1.so' (not a mach-o file), '/System/Volumes/Preboot/Cryptexes/OS/Users/wbarnhart/Work/PixelTracking/Geospatial-COSICorr3D-main/lib/lgeoFreqCorr_v1.so' (no such file), '/Users/wbarnhart/Work/PixelTracking/Geospatial-COSICorr3D-main/lib/lgeoFreqCorr_v1.so' (not a mach-o file)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/wbarnhart/Work/PixelTracking/Geospatial-COSICorr3D-main/scripts/cosicorr.py", line 427, in
cosicorr()
File "/Users/wbarnhart/Work/PixelTracking/Geospatial-COSICorr3D-main/scripts/cosicorr.py", line 421, in cosicorr
args.func(args)
File "/Users/wbarnhart/Work/PixelTracking/Geospatial-COSICorr3D-main/scripts/cosicorr.py", line 117, in correlate_func
Correlate(base_image_path=args.base_image,
File "/Users/wbarnhart/Work/PixelTracking/Geospatial-COSICorr3D-main/geoCosiCorr3D/geoImageCorrelation/correlate.py", line 48, in init
self.run_correlation()
File "/Users/wbarnhart/Work/PixelTracking/Geospatial-COSICorr3D-main/geoCosiCorr3D/geoImageCorrelation/correlate.py", line 155, in run_correlation
ew_array, ns_array, snr_array = self.run_corr_engine(base_subset, target_subset)
File "/Users/wbarnhart/Work/PixelTracking/Geospatial-COSICorr3D-main/geoCosiCorr3D/geoImageCorrelation/correlate.py", line 187, in run_corr_engine
return FreqCorrelator.run_correlator(target_array=target_array,
File "/Users/wbarnhart/Work/PixelTracking/Geospatial-COSICorr3D-main/geoCosiCorr3D/geoCore/core_correlation.py", line 113, in run_correlator
raise InvalidCorrLib
geoCosiCorr3D.geoCore.core_correlation.InvalidCorrLib

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions