WonderLandxD / opensdpc

Python library for processing whole slide images (WSIs) in sdpc format
38 stars 8 forks source link

ValueError: NULL pointer access #7

Closed zero19970 closed 10 months ago

zero19970 commented 1 year ago

File /cache/lch/anaconda3/lib/python3.8/site-packages/sdpc/Sdpc.py:29, in Sdpc.init(self, sdpcPath) 27 def init(self, sdpcPath): 28 print(sdpcPath) ---> 29 self.sdpc = self.readSdpc(sdpcPath) 30 self.level_count = self.getLevelCount() 31 self.level_downsample = self.getLevelDownsamples()

File /cache/lch/anaconda3/lib/python3.8/site-packages/sdpc/Sdpc.py:42, in Sdpc.readSdpc(self, fileName) 39 def readSdpc(self, fileName): 41 sdpc = so.SqOpenSdpc(c_char_p(bytes(fileName, 'gbk'))) ---> 42 sdpc.contents.fileName = bytes(fileName, 'gbk') 44 return sdpc

ValueError: NULL pointer access

WonderLandxD commented 1 year ago

Are you sure the WSI format you input is in sdpc?

zero19970 commented 1 year ago

Yes