/hydrus/ - Hydrus Network

Archive for bug reports, feature requests, and other discussion for the hydrus network.

Index Catalog Archive Bottom Refresh
Name
Options
Subject
Message

Max message length: 12000

files

Max file size: 32.00 MB

Total max file size: 50.00 MB

Max files: 5

Supported file types: GIF, JPG, PNG, WebM, OGG, and more

E-mail
Password

(used to delete files and posts)

Misc

Remember to follow the Rules

The backup domains are located at 8chan.se and 8chan.cc. TOR access can be found here, or you can access the TOR portal from the clearnet at Redchannit 3.0.

Uncommon Time Winter Stream

Interboard /christmas/ Event has Begun!
Come celebrate Christmas with us here


8chan.moe is a hobby project with no affiliation whatsoever to the administration of any other "8chan" site, past or present.

local variable 'photoshop' referenced before assignment Anonymous 05/01/2019 (Wed) 15:26:28 Id: 3d3c95 No. 12454
Hey, awesome tool, really enjoying it. I did encounter an error that came up three times when fetching files from Sankaku (out of probably around 10k+ files imported so far, I've only just started using hydrus last week): local variable 'photoshop' referenced before assignment… (Copy note to see full error) Traceback (most recent call last): File "include\ClientImportFileSeeds.py", line 1178, in WorkOnURL self.DownloadAndImportRawFile( file_url, file_import_options, network_job_factory, network_job_presentation_context_factory, status_hook, override_bandwidth = True ) File "include\ClientImportFileSeeds.py", line 571, in DownloadAndImportRawFile self.Import( temp_path, file_import_options ) File "include\ClientImportFileSeeds.py", line 790, in Import ( status, hash, note ) = HG.client_controller.client_files_manager.ImportFile( file_import_job ) File "include\ClientCaches.py", line 1144, in ImportFile file_import_job.GenerateInfo() File "include\ClientImportFileSeeds.py", line 283, in GenerateInfo self._file_info = HydrusFileHandling.GetFileInfo( self._temp_path, mime ) File "include\HydrusFileHandling.py", line 233, in GetFileInfo ( ( width, height ), duration, num_frames ) = HydrusImageHandling.GetImageProperties( path, mime ) File "include\HydrusImageHandling.py", line 241, in GetImageProperties ( ( width, height ), num_frames ) = GetResolutionAndNumFrames( path, mime ) File "include\HydrusImageHandling.py", line 274, in GetResolutionAndNumFrames pil_image = GeneratePILImage( path ) File "include\HydrusImageHandling.py", line 92, in GeneratePILImage pil_image = PILImage.open( fp ) File "site-packages\PIL\Image.py", line 2690, in open File "site-packages\PIL\Image.py", line 2676, in _open_core File "site-packages\PIL\JpegImagePlugin.py", line 783, in jpeg_factory File "site-packages\PIL\ImageFile.py", line 103, in init File "site-packages\PIL\JpegImagePlugin.py", line 373, in _open File "site-packages\PIL\JpegImagePlugin.py", line 139, in APP UnboundLocalError: local variable 'photoshop' referenced before assignment The URLs in question are these ones: https://chan.sankakucomplex.com/post/show/7921258 https://chan.sankakucomplex.com/post/show/7921259 https://chan.sankakucomplex.com/post/show/7921260 I didn't specifically add the URLs, I did a tag search for "1girl lying_on_bed". I've retried a few times and got the same error. Downloading the actual images and trying to import them manually results in the same error. I'm using hydrus version 349 on Windows 10 Pro (version 1809). It's not an issue for me since I don't care about these three files anyway, but I thought you might want to know.
Thank you for this report. This actually isn't my code failing here, but the image library I use, Pillow. Just guessing, I suspect these files are slightly malformed (broken) and Pillow is having trouble dealing with them. As it happens, I plan to do some cleanup work next week to have a different library, OpenCV, do the initial metadata parsing work here and improve reliability of metadata parsing overall. I will test these URLs once that is done and see if they work. Thank you for the examples!


Forms
Delete
Report
Quick Reply