Comments (3)
It seems to be that in your case, urlwatch
is installed into /usr/sbin/urlwatch
instead of /usr/bin/urlwatch
(or that /usr/sbin
appears first in your $PATH
, and on Void Linux, /usr/sbin
is a symlink to /usr/bin
?).
In order to determine whether the program is run from a source checkout or a system-wide installation, this is used (the assumption here is that if the urlwatch
script is in a folder named bin
, assume system-wide installation, otherwise assume a source checkout):
Lines 47 to 51 in d674439
Both prefix
and bindir
from the code snippet above are then used to construct a path to the examples:
urlwatch/lib/urlwatch/config.py
Lines 62 to 67 in d674439
There are multiple ways to fix this:
- Quick workaround for you locally: Make sure
/usr/bin
appears before/usr/sbin
in your$PATH
- Change
== 'bin'
toin ('bin', 'sbin')
to support cases where it's launched fromsbin
- Use
os.path.realpath()
to remove symlinks in the path - Instead of detecting a system-wide installation via
bin
, try to detect a source checkout instead
I'll try to come up with a workaround. This isn't really a regression, but has been like that since ~ 2008 in urlwatch (according to git blame
), and probably affects Void Linux since July 2015 (according to the blog post linked above) :)
from urlwatch.
Additional information for the fix in 6b68afb: Since the urlwatch
script that gets installed system-wide (or in $HOME
if installed via pip install --user
) is different from the urlwatch
script in the source checkout, the special-case handling of that can just go into the urlwatch
script. Also cleaned up some other things (e.g. sys.path.insert()
wasn't necessary, as the urlwatch
script was already doing this).
from urlwatch.
This isn't really a regression, but has been like that since ~ 2008 in urlwatch (according to
git blame
), and probably affects Void Linux since July 2015 (according to the blog post linked above) :)
My bad, I assumed it was a regression because it worked on one machine with urlwatch 2.25 but not on a different machine that I'd updated to urlwatch 2.26. Apparently urlwatch behaved differently because the machine running urlwatch 2.25 had /usr/bin
before /usr/sbin
and the one I'd updated had /usr/sbin
before /usr/bin
.
(I don't know why the paths are ordered differently when all the relevant config files are identical, but that's a separate problem.)
from urlwatch.
Related Issues (20)
- Reporting blanks HOT 28
- add support to specify multiple recipients per URL HOT 7
- YAML Anchors/Aliases not working HOT 4
- CSS Filter "AttributeError: 'CSSSelector' object has no attribute 'evaluate'" HOT 2
- FEATURE: Support multiple reporters with different options HOT 6
- Meaning of max_tries is confusing
- urlwatch stopped working HOT 4
- sendmail is not documented HOT 2
- Randomly "not enough values to unpack" Python errors HOT 4
- Cache inconsistency creating new items from nowhere HOT 3
- Feature request: Extension of regex filtering to extract data HOT 7
- Consider releasing version 2.29 HOT 5
- Question - Report http errors only once HOT 5
- urlwatch 2.25-1 on Debian Stable 12.5 (navigate fails) HOT 3
- Enable/disable job from the command line HOT 1
- urlwatch moans when supplying --config HOT 1
- urlwatch 2.25 - AttributeError: 'list' object has no attribute 'read' HOT 2
- XML parsing with CDATA not working HOT 6
- urlwatch 2.28: html: separate: true not sending separate emails HOT 2
- --test-filter works but not with a normal execution HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from urlwatch.