Comments (5)
Hi!
Right, so the reason is that you're using python3.5, and I've recently had to drop support for python < 3.6. (just updated release notes for that, so thanks for spotting! https://github.com/karlicoss/orgparse/releases/tag/v0.2.0)
If you can't/don't want to update your python version now, you can use pip install --force-reinstall 'orgparse=0.1.4'
to install the previous version which should work with python3.5
. Let me know if that helps!
from orgparse.
Many thanks !
I decided to upgrade my python version to 3.9.0 and it works well now.
I would also been interested in a capacity to serialize back the org nodes into an org file,
as you experiment with inorganic.
from orgparse.
Glad it worked!
If guess you want to load something with orgparse, modify and then serialize back? It's not directly supported, at least yet, but:
-
for modifying, you can modify the internal attributes of
OrgNode
, e.g. setnode._heading = "something"
... -
for serializing, you can traverse it recursively and write out:
for x in root: print(' ' * x.level + x.heading)
, or something like that
from orgparse.
Yes, I see. It can help for the moment...
And why not merging orgparse with orger ?
from orgparse.
And why not merging orgparse with orger
Mainly because they are serve pretty different purposes at the moment, so better keep it separate for simplicity. The kind of org-mode rendering orger is doing is very specific (i.e. list hierarchies), and to justify integration with orgparse it would need to be more general purpose so both libraries could somehow benefit from it
from orgparse.
Related Issues (20)
- Date parsing with timezone information HOT 2
- speedup parsing
- orgparse.load() is broken for file-like objects HOT 3
- support names on tables HOT 1
- Support more Effort format in Properties HOT 2
- Repeated_tasks and logbook parsing HOT 4
- Minor difference in date objects parsed
- Support properties in OrgRootNode HOT 2
- Question: Why is `_special_comments['TITLE']` a list? HOT 1
- parsing of multiline properties HOT 1
- QUESTION: Reason about using `codecs.open()` HOT 2
- Move `tests` outside the package folder HOT 4
- Offer `CONTRIBUTE.md` (was: Unittest not running) HOT 3
- Providing OrgEnv to load() with pathlib.Path errors HOT 1
- Logbook drawer tags are not removed from body text HOT 1
- Non-existant date errors without context HOT 5
- Extracting line numbers from org nodes? HOT 1
- How to access comments and properties in clocks (Loogbook entry)
- __version__ missing
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 orgparse.