[ home / board list / faq / random / create / bans / search / manage / irc ] [ ]

/hydrus/ - Hydrus Network

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

Catalog

Name
Email
Subject
Comment *
File
* = required field[▶ Show post options & limits]
Confused? See the FAQ.
Embed
(replaces files and can be used instead)
Options
Password (For file and post deletion.)

Allowed file types:jpg, jpeg, gif, png, webm, mp4, swf, pdf
Max filesize is 8 MB.
Max image dimensions are 10000 x 10000.
You may upload 5 per post.


New user? Start here ---> http://hydrusnetwork.github.io/hydrus/

Currently prioritising: simple IPFS plugin


File: 1456010656322.png (120.77 KB, 250x418, 125:209, 1416038647012.png)

 No.2069

user@ThinkPad-X60s ~/Downloads/hydrus-191 $ ./client.pyw
Critical error occured! Details written to crash.log!
user@ThinkPad-X60s ~/Downloads/hydrus-191 $ cat crash.log
Traceback (most recent call last):
File "./client.pyw", line 23, in <module>
from include import ClientController
File "/home/user/Downloads/hydrus-191/include/ClientController.py", line 1, in <module>
import ClientCaches
File "/home/user/Downloads/hydrus-191/include/ClientCaches.py", line 1, in <module>
import ClientDefaults
File "/home/user/Downloads/hydrus-191/include/ClientDefaults.py", line 2, in <module>
import ClientData
File "/home/user/Downloads/hydrus-191/include/ClientData.py", line 4, in <module>
import ClientFiles
File "/home/user/Downloads/hydrus-191/include/ClientFiles.py", line 7, in <module>
import HydrusFileHandling
File "/home/user/Downloads/hydrus-191/include/HydrusFileHandling.py", line 10, in <module>
import HydrusDocumentHandling
File "/home/user/Downloads/hydrus-191/include/HydrusDocumentHandling.py", line 2, in <module>
import PyPDF2
ImportError: No module named PyPDF2
user@ThinkPad-X60s ~/Downloads/hydrus-191 $ sudo pip install pypdf2
Downloading/unpacking pypdf2
Downloading PyPDF2-1.25.1.tar.gz (194kB): 194kB downloaded
Running setup.py (path:/tmp/pip_build_root/pypdf2/setup.py) egg_info for package pypdf2

Installing collected packages: pypdf2
Running setup.py install for pypdf2

Successfully installed pypdf2
Cleaning up...
user@ThinkPad-X60s ~/Downloads/hydrus-191 $ lather
user@ThinkPad-X60s ~/Downloads/hydrus-191 $ rinse
user@ThinkPad-X60s ~/Downloads/hydrus-191 $ repeat

Surely there must be a better way. Why can't you make a depends.py script? or is there one and i'm just a retard

 No.2077

File: 1456083683181.jpg (225.33 KB, 1600x1071, 1600:1071, a35824528d530ce41b54cd1b32….jpg)

Sorry, I don't have much experience putting out source for other people to run, and I'm not really naturally professional anyway, so I never bothered to research it. I'd never even heard of a depends.py before, so that's why there isn't one!

If you haven't seen it yet, I put together a help page on my experiences getting the source to run on different platforms here:

http://hydrusnetwork.github.io/hydrus/help/running_from_source.html

Specifically, this seems to cover most of the bases:

(sudo) pip install beautifulsoup4 hsaudiotag lxml lz4 mp3play nose numpy pafy Pillow psutil pycrypto PyPDF2 PySocks python-potr PyYAML requests Send2Trash twisted

Although there can be more complicated stuff to do for things like wx–see the page.

Is depends.py something that'll auto-install this stuff? Is there some built-in library that'll check my code and automatically generate that file or otherwise figure out what the local python installation needs? I don't know what documentation I should be looking at, for this stuff, so I would be interested in what you can recommend. I prefer simple and multi-platform above everything else.


 No.2081

Actually, what I wonder is if you can't turn these dependencies into optional dependencies.

Restructure your code so that hydrus only crashes when things it actually needs are missing. Otherwise, just throw an error message, "you need python2-whatever to use this function".

I don't know if this is normal for python projects (or rather, I suspect python was never meant to scale up and is not a good language for large projects like this), but you've got quite the collection of dependencies going on here and I'd be glad to cut out the ones I don't use.




[Return][Go to top][Catalog][Post a Reply]
Delete Post [ ]
[]
[ home / board list / faq / random / create / bans / search / manage / irc ] [ ]