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 9219083
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:01:15+00:00 2026-06-18T03:01:15+00:00

If I try to execute from sqlalchemy.ext.declarative import * it fails. I’ve tried do

  • 0

If I try to execute from sqlalchemy.ext.declarative import * it fails. I’ve tried do uninstall package with pip uninstall sqlalchemy and reinstall it again. I’ve tried removed the version from the Ubuntu repositary (the python-sqlalchemy-package) but it wasn’t installed. I’ve got to a clean directory and tried the same command. Still don’t work. This is both with sqlalchemy 0.7.8 and 0.7.9.

This is the traceback:

In [1]: from sqlalchemy.ext.declarative import *
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
/home/nine/slask/<ipython-input-1-7f210e4ec48b> in <module>()
----> 1 from sqlalchemy.ext.declarative import *

/usr/local/lib/python2.7/dist-packages/sqlalchemy/ext/declarative/__init__.py in <module>()
   1252 """
   1253
-> 1254 from .api import declarative_base, synonym_for, comparable_using, \
   1255     instrument_declarative, ConcreteBase, AbstractConcreteBase, \
   1256     DeclarativeMeta, DeferredReflection, has_inherited_table,\

/usr/local/lib/python2.7/dist-packages/sqlalchemy/ext/declarative/api.py in <module>()
    101
    102
--> 103 class declared_attr(interfaces._MappedAttribute, property):
    104     """Mark a class-level method as representing the definition of
    105     a mapped property or special declarative member name.

AttributeError: 'module' object has no attribute '_MappedAttribute'

For the record, I’m running Ubuntu 12.04.

  • 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-06-18T03:01:16+00:00Added an answer on June 18, 2026 at 3:01 am

    Now it works. This is what i did:

    • I uninstalled sqla with pip
    • Deleted the remaining files manually (rm -fr /usr/local/lib/python2.7/dist-packages/sqlalchemy)
    • Reinstalled sqla with pip and now it works.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following models to describe my database schema: from sqlalchemy.ext.declarative import declarative_base
It's not the first time I have tried to execute a system command from
When I try to execute an AsyncTask from a button click, my app says
I have created a table (MySQL 5.1) from sqlalchemy import * def get(): db
I'm using sqlite with sqlalchemy: when I execute this command: engine.execute(select * from teams);
When I try to execute php file from browser which have a command to
I've .dll which is registered and executed from Global Assembly Cache. When I try
When I try to execute the below class using ICriteria, if (_userGroupId > 0
When I try to execute this statement in Oracle SQL Developer 2.1 a dialog
When I try to execute my code, I'm getting an error dialog: 'Show Disassembly'

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.