Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Related Tools

Notices

Reply
 
Thread Tools Search this Thread
Old 10-07-2019, 11:57 AM   #1741
MontyJ
Groupie
MontyJ began at the beginning.
 
Posts: 183
Karma: 10
Join Date: Jul 2012
Device: Kindle
Thanks...that solved the problem.

I had been through that a long time ago and had set gmail to accept 'less secure' apps. How it changed I do not know as I did not intentionally change it. Anyway, it is now working

COPS also still relies on an 'older' module in python. When QNAP does a firmware update, it often messes up my install of python in opkg. Then I get the error trying to run COPS:

Code:
ImportError: No module named CGIHTTPServer
It seems the module CGIHTTPServer that COPS calls has been gone from the newer releases of python for some time. When a new QNAP firmware update messes with the opkg package, I have to reinstall it, then install the default version of python under opkg. That has always got me back to 'normal' in COPS.

So, I keep trying the new COPS versions, hoping against hope that he has updated to the newer python modules. So far, no cigar...

Again, thanks for checking that! That feature is very popular with many of my COPS users as they prefer the ease of simply having the ebook show up in their Kindle or Kindle compatible device through the Amazon send-to-email account setup.

Monty
MontyJ is offline   Reply With Quote
Old 10-07-2019, 12:35 PM   #1742
mariosipad
Evangelist
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 457
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
As far as I know (but correct me if I'm wrong) COPS does not list Python as a dependency.

The module CGIHTTPServer does exist in Python 2.7 that is deprecated in the latest linux releases

This might be a problem in the future.

Maybe that's why my LAN server still runs Debian Jessie (8) instead of the latest and greatest. However COPS still runs fine on Debian Buster (10). So I'm not to worried yet.
mariosipad is offline   Reply With Quote
Old 10-07-2019, 12:42 PM   #1743
MontyJ
Groupie
MontyJ began at the beginning.
 
Posts: 183
Karma: 10
Join Date: Jul 2012
Device: Kindle
Quote:
Originally Posted by mariosipad View Post
As far as I know (but correct me if I'm wrong) COPS does not list Python as a dependency.

The module CGIHTTPServer does exist in Python 2.7 that is deprecated in the latest linux releases

This might be a problem in the future.

Maybe that's why my LAN server still runs Debian Jessie (8) instead of the latest and greatest. However COPS still runs fine on Debian Buster (10). So I'm not to worried yet.

My bad...I use two packages, COPS and Ubooquity for user access to various media. Since COPS does not handle audio book, music, and wallpaper image files, I use Uboo for those. It is Uboo that has the python dependency, not COPS.

Thanks for that correction!
MontyJ is offline   Reply With Quote
Old 10-07-2019, 01:32 PM   #1744
mariosipad
Evangelist
mariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watchmariosipad is clearly one to watch
 
Posts: 457
Karma: 10738
Join Date: Nov 2012
Device: iPad & iPhone with Marvin 2 + 3 & Kobo Glo HD
...... but .... isn't Ubooquity(.jar) java? Not Python?.....

I have Ubooquity installed, It's nice, but I don't use it much.
mariosipad is offline   Reply With Quote
Old 11-11-2019, 12:28 AM   #1745
MontyJ
Groupie
MontyJ began at the beginning.
 
Posts: 183
Karma: 10
Join Date: Jul 2012
Device: Kindle
Question

Quote:
Originally Posted by mariosipad View Post
...... but .... isn't Ubooquity(.jar) java? Not Python?.....

I have Ubooquity installed, It's nice, but I don't use it much.
Yep, you are right! While the problem surfaces using both those 2 programs, it is the ddns web service I use for both of them that is the problem. Here is the shell script that makes the call to start COPS:
Code:
python /share/Web/cops111/pagekite.py --daemonize --optfile=/share/Web/cops111/pagekite.rc mywebsite.pagekite.me
So its the 'pagekite.py' that depends on that (apparently outdated) python module. I have been using Entware-ng 0.97 for years, but now that old version doesn't work on QNAP anymore and the new replacements simply won't work on my NAS. The normal "opkg" command returns a "command not found". I am on the QNAP forum with this issue but so far no joy.

Anyway, assuming I can't budge the Pagekite developer off his seeming refusal to get up to date with python2 and python3 modules, does anyone here have any experience with using a ddns service with COPS on Linux? Pagekite's script eliminates any port forwarding issues altogether, so setup and configuration in the QNAP is straight forward as the above startup script shows.

Anyone have experience with something similar? I pay a few bucks a month for Pagekite as a 'donation', and it has been worth it for many years, but I am looking for something that isn't hung up on an old python module, LoL.

Thanks for any tips!

monty
MontyJ is offline   Reply With Quote
Reply

Tags
calibre opds, dns, kobo aura, synology

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Old Thread] Android FBreader and Calibre OPDS server question kalex Calibre 5 12-24-2015 11:16 PM
PHP+Apache web server for calibre ... chaley Related Tools 254 04-28-2014 09:18 PM
External OPDS catalogue in Calibre bolton Calibre 1 09-05-2012 07:14 AM
Calibre OPDS server with windows apps? nickdma Related Tools 9 02-02-2011 04:09 PM
Calibre Command Line usage with PHP artoros Related Tools 13 07-01-2010 10:57 AM


All times are GMT -4. The time now is 09:02 PM.


MobileRead.com is a privately owned, operated and funded community.