r/LazyLibrarian • • 9d ago

Bugs: Runtime error on user admin

This error on user admin button is the only thing stopping me continuing trying lazylibrarian. Every time I click on it, I get a runtime error

Error ! AttributeError: module 'lazylibrarian' has no attribute 'perm_admin' 134 $(document).ready(function() 135 { 136 $('#admin').click(function() { 137 $("#perms").val("${lazylibrarian.perm_admin}"); 138 }); 139 $('#friend').click(function() { 140 $("#perms").val("${lazylibrarian.perm_friend}"); 141 }); 142 $('#guest').click(function() { /app/lazylibrarian/data/interfaces/bookstrap/users.html, line 137: 137 $("#perms").val("${lazylibrarian.perm_admin}"); /app/lazylibrarian/data/interfaces/bookstrap/base.html, line 197: 197 ${next.javascriptIncludes()} /lsiopy/lib/python3.14/site-packages/mako/runtime.py, line 936: 936 callable_(context, *args, **kwargs) /lsiopy/lib/python3.14/site-packages/mako/runtime.py, line 909: 909 _exec_template(inherit, lclcontext, args=args, kwargs=kwargs) /lsiopy/lib/python3.14/site-packages/mako/runtime.py, line 867: 867 _render_context( /lsiopy/lib/python3.14/site-packages/mako/template.py, line 449: 449 return runtime.render(self, self.callable, args, data) /app/lazylibrarian/lazylibrarian/webServe.py, line 753: 753 return template.render(perm=perm, pref=userprefs, style=style, ui_look=ui_look, **kwargs)

I've tried clearing cookies, different browsers but this looks like something in the code. Or maybe something to do with making an admin account, I can't see how to do that though.

And the reason I want to click on user admin: the hardcover API input box is nowhere I can find. Not by user accounts as has been advised. I have user accounts enabled and a user made. I have hardcover sync enabled but just nowhere to put the API.

I've updated to the release made yesterday.

0 Upvotes

3 comments sorted by

1

u/misko903 9d ago

Hi, thanks for your report,

Fixed after your build: the perm_admin crash on the user admin page was fixed on 14 Nov. Pull the latest image or master. Meanwhile, you don’t need that page: click your username → Profile, and the “HardCover Token” field is there.

2

u/Shouty-Hooman 8d ago edited 8d ago

thanks. not sure why it happened after it updated, maybe 2 restarts woke it up. anyway can you tell me where my username is to click: the only place i can see to click on a username is within this user admin section (which i can now access)

Edit: I've finally successfully scanned both my books & Hardcover!! Looks like it's working. It's the only readarr replacement I've found that doesn't feel churned out by Claude (I've had a very frustrating 3 days testing various apps) Thank you so much for developing :)

1

u/misko903 8d ago

nice to hear! we will make it even better :)