Giter Site home page Giter Site logo

Comments (5)

karlicoss avatar karlicoss commented on May 28, 2024

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.

hbalp avatar hbalp commented on May 28, 2024

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.

karlicoss avatar karlicoss commented on May 28, 2024

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. set node._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.

hbalp avatar hbalp commented on May 28, 2024

Yes, I see. It can help for the moment...
And why not merging orgparse with orger ?

from orgparse.

karlicoss avatar karlicoss commented on May 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.