Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7503785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T21:21:09+00:00 2026-05-29T21:21:09+00:00

first of all: I am not a python programmer, i just want to run

  • 0

first of all: I am not a python programmer, i just want to run default instalation of OSQA on linux hosting. My hosting provider installed it for me, and OSQA is working with ony one (but serious) error – if i try to post question/answer/comment with URL in text (http://www.whatever.com/whatever) – the empty post is added (no text at all), and this error appears in log :

/data/web/slovensko20.sk/web/forum/models/node.py TIME: 2012-02-05 23:29:14,944 MSG: node.py:_as_markdown:34 Caught exception 'module' object has no attribute 'etree' in markdown parser rendering Answer 'module' object has no attribute 'etree':\s Traceback (most recent call last):
  File "/data/web/slovensko20.sk/web/forum/models/node.py", line 30, in _as_markdown
    return mark_safe(sanitize_html(markdown.markdown(content, extensions=extensions)))
  File "build/bdist.linux-x86_64/egg/markdown/__init__.py", line 396, in markdown
  File "build/bdist.linux-x86_64/egg/markdown/__init__.py", line 287, in convert
  File "build/bdist.linux-x86_64/egg/markdown/treeprocessors.py", line 289, in run
    text), child)
  File "build/bdist.linux-x86_64/egg/markdown/treeprocessors.py", line 110, in __handleInline
    data, patternIndex, startIndex)
  File "build/bdist.linux-x86_64/egg/markdown/treeprocessors.py", line 237, in __applyPattern
    node = pattern.handleMatch(match)
  File "/data/web/slovensko20.sk/web/forum/markdownext/mdx_urlize.py", line 27, in handleMatch
    el = markdown.etree.Element("a")
AttributeError: 'module' object has no attribute 'etree' 

I tried to google it, but no luck.

OSQA is Fantasy Island (v0.9.0) Beta 3, Django is in version 1.3.1 afaik.

Thanks for any help!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T21:21:10+00:00Added an answer on May 29, 2026 at 9:21 pm

    The Python-Markdown new version seems move etree/AtomicString to markdown.util, So you can try this workaround, modify mdx_urlize.py

    try:
        from markdown.util import etree
    ## replace markdown.etree with just etree
    
    #el = markdown.etree.Element("a")
    el = etree.Element("a")
    
    ## replace markdown.AtomicString with markdown.util.AtomicString
    
    #el.text = markdown.AtomicString(text)
    el.text = markdown.util.AtomicString(text)
    

    You may also see this patch as reference.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First of all I am a programmer (Python, C, Java, Delphi, whatever) and not
First of all, do not be overwhelmed by the long code, I just put
First of all, I am not a veteran programmer i any language. But I've
Hi there First of all just let me say that I'm new in Python
first of all, I'm not a programmer, so the answer to this might be
First of all: I am not an experienced ClearCase user, but I have lots
First of all,I'm not into web programming. I bumped into django and read a
first of all: this is not the same as this . The ModelBackend has
First of all I'm not sure this is even possible, however I need to
First of all I am not a designer. so this question is may be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.