Mobileread
COPS : Calibre OPDS PHP Server
#1741  MontyJ 10-07-2019, 10:57 AM
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
Reply 

#1742  mariosipad 10-07-2019, 11:35 AM
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.
Reply 

#1743  MontyJ 10-07-2019, 11:42 AM
Quote mariosipad
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!
Reply 

#1744  mariosipad 10-07-2019, 12:32 PM
...... but .... isn't Ubooquity(.jar) java? Not Python?.....

I have Ubooquity installed, It's nice, but I don't use it much.
Reply 

#1745  MontyJ 11-10-2019, 11:28 PM
Quote mariosipad
...... 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
Reply 

#1746  stefanak 03-05-2020, 11:55 AM
Hello folks!

A have a quick question: is there a way to switch between case sensitive / case insensitive search in COPS?
Reply 

#1747  mariosipad 03-06-2020, 09:16 AM
@stefanak

The only setting in COPS (that I am aware of) is (in config_local.php):
Code
 /* * WARNING NOT READY FOR PRODUCTION USE * Make the search better (don't care about diacritics, uppercase should work on Cyrillic) but slower. * 1 : Yes (enable) * 0 : No */ $config ['cops_normalized_search'] = "0";
You can try, but in my experience COPS search is not case sensitive.
Reply 

#1748  stefanak 03-06-2020, 09:37 AM
Quote mariosipad
@stefanak

The only setting in COPS (that I am aware of) is (in config_local.php):
Code
 /* * WARNING NOT READY FOR PRODUCTION USE * Make the search better (don't care about diacritics, uppercase should work on Cyrillic) but slower. * 1 : Yes (enable) * 0 : No */ $config ['cops_normalized_search'] = "0";
You can try, but in my experience COPS search is not case sensitive.
COPS search IS case sensitive by default and I would like to turn it off.
Reply 

#1749  mariosipad 03-06-2020, 12:58 PM
Interesting.......

I'm running cops with apache on Windows 10 and Debian Linux and I get the same search results whether I search for "Francis" or "francis" or "FRANCIS". (When searching for Francis.)

I used Firefox as browser.

Can you give an example where this does not work for you?
Reply 

#1750  stefanak 03-06-2020, 01:19 PM
I'm using COPS on Synology NAS Webstation (Apache). The COPS configuration is the default one, except the localization and library directory. BUT, there is difference between linux, Linux and LINUX - I get different corresponding results???
Reply 

 « First  « Prev Next »  Last »  (175/176)
Today's Posts | Search this Thread | Login | Register