-
-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
packaging test #1074
Comments
i tried to build using above package and install it with pipx and there is error if there is no v474, 2022/02/19 18:01:57: Traceback (most recent call last):
File "/home/r3r/.local/pipx/venvs/hydrus/lib/python3.9/site-packages/hydrus/core/HydrusImageHandling.py", line 1002, in RawOpenPILImage
pil_image = PILImage.open( path )
File "/home/r3r/.local/pipx/venvs/hydrus/lib/python3.9/site-packages/PIL/Image.py", line 2953, in open
fp = builtins.open(filename, "rb")
FileNotFoundError: [Errno 2] No such file or directory: '/home/r3r/.local/pipx/venvs/hydrus/lib/python3.9/site-packages/static/hydrus.png'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/r3r/.local/pipx/venvs/hydrus/lib/python3.9/site-packages/hydrus/client/ClientController.py", line 2103, in THREADBootEverything
self.InitModel()
File "/home/r3r/.local/pipx/venvs/hydrus/lib/python3.9/site-packages/hydrus/client/ClientController.py", line 1189, in InitModel
self._caches[ 'thumbnail' ] = ClientCaches.ThumbnailCache( self )
File "/home/r3r/.local/pipx/venvs/hydrus/lib/python3.9/site-packages/hydrus/client/ClientCaches.py", line 640, in __init__
self.Clear()
File "/home/r3r/.local/pipx/venvs/hydrus/lib/python3.9/site-packages/hydrus/client/ClientCaches.py", line 946, in Clear
numpy_image = ClientImageHandling.GenerateNumPyImage( path, HC.IMAGE_PNG )
File "/home/r3r/.local/pipx/venvs/hydrus/lib/python3.9/site-packages/hydrus/client/ClientImageHandling.py", line 31, in GenerateNumPyImage
return HydrusImageHandling.GenerateNumPyImage( path, mime, force_pil = force_pil )
File "/home/r3r/.local/pipx/venvs/hydrus/lib/python3.9/site-packages/hydrus/core/HydrusImageHandling.py", line 335, in GenerateNumPyImage
pil_image = GeneratePILImage( path )
File "/home/r3r/.local/pipx/venvs/hydrus/lib/python3.9/site-packages/hydrus/core/HydrusImageHandling.py", line 373, in GeneratePILImage
pil_image = RawOpenPILImage( path )
File "/home/r3r/.local/pipx/venvs/hydrus/lib/python3.9/site-packages/hydrus/core/HydrusImageHandling.py", line 1006, in RawOpenPILImage
raise HydrusExceptions.DamagedOrUnusualFileException( 'Could not load the image--it was likely malformed!' )
hydrus.core.HydrusExceptions.DamagedOrUnusualFileException: Could not load the image--it was likely malformed!
v474, 2022/02/19 18:01:57: boot error
v474, 2022/02/19 18:01:57: A serious error occurred while trying to start the program. The error will be shown next in a window. More information may have been written to client.log.
v474, 2022/02/19 18:02:02: boot error
v474, 2022/02/19 18:02:02: Traceback (most recent call last):
File "/home/r3r/.local/pipx/venvs/hydrus/lib/python3.9/site-packages/hydrus/core/HydrusImageHandling.py", line 1002, in RawOpenPILImage
pil_image = PILImage.open( path )
File "/home/r3r/.local/pipx/venvs/hydrus/lib/python3.9/site-packages/PIL/Image.py", line 2953, in open
fp = builtins.open(filename, "rb")
FileNotFoundError: [Errno 2] No such file or directory: '/home/r3r/.local/pipx/venvs/hydrus/lib/python3.9/site-packages/static/hydrus.png'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/r3r/.local/pipx/venvs/hydrus/lib/python3.9/site-packages/hydrus/client/ClientController.py", line 2103, in THREADBootEverything
self.InitModel()
File "/home/r3r/.local/pipx/venvs/hydrus/lib/python3.9/site-packages/hydrus/client/ClientController.py", line 1189, in InitModel
self._caches[ 'thumbnail' ] = ClientCaches.ThumbnailCache( self )
File "/home/r3r/.local/pipx/venvs/hydrus/lib/python3.9/site-packages/hydrus/client/ClientCaches.py", line 640, in __init__
self.Clear()
File "/home/r3r/.local/pipx/venvs/hydrus/lib/python3.9/site-packages/hydrus/client/ClientCaches.py", line 946, in Clear
numpy_image = ClientImageHandling.GenerateNumPyImage( path, HC.IMAGE_PNG )
File "/home/r3r/.local/pipx/venvs/hydrus/lib/python3.9/site-packages/hydrus/client/ClientImageHandling.py", line 31, in GenerateNumPyImage
return HydrusImageHandling.GenerateNumPyImage( path, mime, force_pil = force_pil )
File "/home/r3r/.local/pipx/venvs/hydrus/lib/python3.9/site-packages/hydrus/core/HydrusImageHandling.py", line 335, in GenerateNumPyImage
pil_image = GeneratePILImage( path )
File "/home/r3r/.local/pipx/venvs/hydrus/lib/python3.9/site-packages/hydrus/core/HydrusImageHandling.py", line 373, in GeneratePILImage
pil_image = RawOpenPILImage( path )
File "/home/r3r/.local/pipx/venvs/hydrus/lib/python3.9/site-packages/hydrus/core/HydrusImageHandling.py", line 1006, in RawOpenPILImage
raise HydrusExceptions.DamagedOrUnusualFileException( 'Could not load the image--it was likely malformed!' )
hydrus.core.HydrusExceptions.DamagedOrUnusualFileException: Could not load the image--it was likely malformed! |
from dev
notes: hydrus name is already used on pypi https://pypi.org/project/hydrus/ so maybe use other name, maybe hydrus-network issue with package / trade off https://discuss.python.org/t/should-there-be-a-new-standard-for-installing-arbitrary-data-files/7853/8 also poetry can't handle gui entry script e: update the poetry and structure branch https://github.com/rachmadaniHaryono/hydrus/tree/feature/poetry |
Hydrus version
447
Operating system
Linux (specify distro and version in comments)
Install method
Running from source
Install and OS comments
ubuntu 21.04
i tried packaging hydrus using poetry
here is pyproject.toml file
this is still based linux requirement and not yet compared with macos and windows
can anyone test it?
here is package structure result
structure
i want to test it by uploading it to test.pypi but it is currently used by hydrus-api
Bug description and reproduction
how to install
pipx install dist/hydrus-474.0.0.tar.gz
hydrus-client
Log output
No response
The text was updated successfully, but these errors were encountered: