Comments (1)
I was getting a similar error in v0.2.8
File "/usr/local/lib/python3.4/dist-packages/inotify/adapters.py", line 264, in __load_trees
_LOGGER.debug("Adding initial watches on trees: [%s]", ",".join(paths))
TypeError: sequence item 0: expected str instance, bytes found
Which led me to believe it was supposed to work with strings and not bytes.
Didn't help that the InotifyTree example in pypi used a str
instead of bytes
.
This TypeError issue was fixed with PR #26.
What the pypi documentation says:
Note that the directories to pass to the add_watch() and remove_watch() functions must be bytestring (in Python 3). The same holds for the contents of the events that are returned. Itβs up to the user to encode and decode any strings.
from pyinotify.
Related Issues (20)
- Provide test.sh within release tarballs
- Exception during shutdown because of __del__ HOT 1
- Feature: add timestamp to events.
- Feature: InotifyTree depth, or path mask
- [Improvement] Adapters: Remove duplicate code
- Question about fd monitoring
- InotifyTree does not pick up file events if the directories created HOT 3
- Add support for watching a single file HOT 3
- pytest Failed under CentOS7/Python3.8 HOT 1
- `superficial` parameter not forwarded to remove_watch_with_id() HOT 1
- Does this project have any active maintainers? HOT 3
- Create Dockerfile to support unit-test debugging/development from local and fix current CI issues
- Issue running with socketio HOT 1
- Package seems to be broken HOT 1
- AttributeError: 'Inotify' object has no attribute '_Inotify__inotify_fd' HOT 1
- Problem in SunOS/Solaris
- test.sh fails
- Release a new version with recent fixes?
- Moves are not handled properly HOT 2
- Superficial remove prevents later remove
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 pyinotify.