Comments (4)
My patches on github.com: https://github.com/terencehonles/fusepy probably fix
what you need (Ideally my patches will be pushed upstream)
Original comment by [email protected]
on 24 Apr 2012 at 8:10
from fusepy.
Also, the Python 3 module (fuse3.py, and memory3.py example) is getting quite
out of date -- many fixes have been made to fuse.py that have not been applied
to fuse3. The long-term solution is to do what Terence is suggesting and have
just one file that works on both 2 and 3. But his changes are quite drastic,
and somewhat broken, so in the short term, I am providing two minimalistic
patches that get this code working properly in Python 3.
First, python3-merge-to-r65.patch simply takes all of the changes to fuse.py
and memory.py from SVN r37 to r65, and applies them to fuse3.py and memory3.py.
Then (once that first patch is applied), python3-unicode-fixes.patch fixes up
the string encoding issues in fuse.py and memory.py so that it works in Python
3.2. I have not forward-ported the other examples but I could do so.
Important note about str vs bytes: I have quite deliberately forced the user's
code to deal with bytes objects. My patch will not work if users expect or
produce str values -- you must deal with bytes values. I explained the
reasoning for this on Issue 32
(http://code.google.com/p/fusepy/issues/detail?id=32#c5) -- POSIX filenames are
bytes, not Unicode strings (not specifically UTF-8) and therefore, when you
write a Fuse module in Python 3, you must deal with bytes, not strs. Note that
Terence's patch doesn't satisfy this requirement.
Original comment by [email protected]
on 14 Jul 2012 at 1:29
Attachments:
from fusepy.
Sorry, I found some more places (in the default implementations of Operations
methods) that needed to be turned into bytes literals. Attaching new patch.
Original comment by [email protected]
on 14 Jul 2012 at 2:47
Attachments:
from fusepy.
Oh, I just noticed that the website states that development has moved to
GitHub. I suppose this is the official branch now? If this is so, ignore my
patches here. I'll file a new issue on GitHub.
Original comment by [email protected]
on 15 Jul 2012 at 1:01
from fusepy.
Related Issues (20)
- Patch - support for Linux PPC HOT 1
- Errors generated by fuse_main_real are ignored HOT 1
- uid and gid can be negative for chown() HOT 1
- Patch for some minor changes arising during an FS development HOT 2
- Unicode support HOT 1
- Allow examples to handle SIGINT (Ctrl-C) gracefully HOT 4
- Allow importing fusepy as a package HOT 1
- Import in python 3 is not relative
- Stat handling is bug prone
- Fuse paths should be encoded to UTF-8 HOT 5
- statfs returns incorrect data on Mac HOT 1
- No tutorial/documentation on how to use the software
- FusePy doesn't support 64 bit inodes? HOT 4
- Patch for /trunk/fuse.py HOT 1
- Update the package in PyPI HOT 1
- look into merging https://github.com/terencehonles/fusepy HOT 2
- Remove the source tree from Google Code
- Error import fuse on OS X HOT 1
- Invalid string type conversion HOT 1
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 fusepy.