Giter Club home page Giter Club logo

Comments (4)

PydImmodvisor avatar PydImmodvisor commented on September 24, 2024 1

Hi, updating pyparsing worked. Thanks !

from jira2markdown.

catcombo avatar catcombo commented on September 24, 2024

Hello @PydImmodvisor!

Thanks for starting using jira2markdown!

I tried to reproduce your problem, but I wasn't successful with that:

> pyenv install 3.8.10
> mkdir jira2markdown-attribute-error
> cd jira2markdown-attribute-error
> poetry init
> poetry env use ~/.pyenv/versions/3.8.10/bin/python
> poetry install
> poetry add jira2markdown
> poetry shell
(jira2markdown-attribute-error-py3.8) > python
Python 3.8.10 (default, Nov 23 2023, 09:01:35) 
[GCC 13.2.1 20231011 (Red Hat 13.2.1-4)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from jira2markdown import convert
>>> print(convert("Some *Jira text* formatting [example|https://example.com]."))
Some **Jira text** formatting [example](https://example.com).

AttributeError: type object 'ParserElement' has no attribute 'set_default_whitespace_chars'

This line looks suspicious to me. It seems that pyparsing library, which jira2markdown uses under the hood, is version 2.x instead of 3.x. How did you install jira2markdown? Did you use pip or poetry?

from jira2markdown.

PydImmodvisor avatar PydImmodvisor commented on September 24, 2024

Hi,

Capture d’écran du 2023-11-23 08-07-23

Yes you are right pyparsing is 2.x and I'm using pip.

What python version would you recommend for using jira2markdown ?

from jira2markdown.

catcombo avatar catcombo commented on September 24, 2024

What python version would you recommend for using jira2markdown ?

jira2markdown supports Python version from 3.7 and higher. I personally prefer to use one of the latest Python versions to get access to the latest language features. For now, it's 3.11. But if Python 3.8 is enough for you, then just use it.

Yes you are right pyparsing is 2.x and I'm using pip.

You can run pip install -U pyparsing to upgrade pyparsing to the latest version. Or maybe the better option will be to start using some of the dependency managers (e.g. https://python-poetry.org/docs/). It resolves dependency conflicts for you and does a lot of other useful things, like creating a virtual environment for each project.

from jira2markdown.

Related Issues (15)

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.