Giter Club home page Giter Club logo

Comments (4)

Deepwalker avatar Deepwalker commented on September 25, 2024

Hey! Example should help.

from aldjemy.

ryanhiebert avatar ryanhiebert commented on September 25, 2024

If anyone has an example of this, please post one, so that I have a test case that can be fixed.

from aldjemy.

matuqam avatar matuqam commented on September 25, 2024
Traceback (most recent call last):
  File "/private/tmp/pys/automap/automap.py", line 25, in <module>
    main()
  File "/private/tmp/pys/automap/automap.py", line 19, in main
    Base.prepare(engine, reflect=True)
  File "/private/tmp/pys/automap/venv/lib/python3.8/site-packages/sqlalchemy/ext/automap.py", line 848, in prepare
    map_config.map()
  File "/private/tmp/pys/automap/venv/lib/python3.8/site-packages/sqlalchemy/ext/declarative/base.py", line 765, in map
    return super(_DeferredMapperConfig, self).map()
  File "/private/tmp/pys/automap/venv/lib/python3.8/site-packages/sqlalchemy/ext/declarative/base.py", line 695, in map
    self.cls.__mapper__ = mp_ = mapper_cls(
  File "<string>", line 2, in mapper
  File "<string>", line 2, in __init__
  File "/private/tmp/pys/automap/venv/lib/python3.8/site-packages/sqlalchemy/util/deprecations.py", line 139, in warned
    return fn(*args, **kwargs)
  File "/private/tmp/pys/automap/venv/lib/python3.8/site-packages/sqlalchemy/orm/mapper.py", line 721, in __init__
    self._configure_properties()
  File "/private/tmp/pys/automap/venv/lib/python3.8/site-packages/sqlalchemy/orm/mapper.py", line 1520, in _configure_properties
    self._configure_property(
  File "/private/tmp/pys/automap/venv/lib/python3.8/site-packages/sqlalchemy/orm/mapper.py", line 1759, in _configure_property
    prop = self._property_from_column(key, prop)
  File "/private/tmp/pys/automap/venv/lib/python3.8/site-packages/sqlalchemy/orm/mapper.py", line 1940, in _property_from_column
    raise sa_exc.ArgumentError(
sqlalchemy.exc.ArgumentError: WARNING: when configuring property 'product_uom' on mapped class stock_move->stock_move, column 'product_uom' conflicts with property '<RelationshipProperty at 0x10d5f77c0; product_uom>'. To resolve this, map the column to the class under a different name in the 'properties' dictionary.  Or, to remove all awareness of the column entirely (including its availability as a foreign key), use the 'include_properties' or 'exclude_properties' mapper arguments to control specifically which table columns get mapped.

from aldjemy.

ryanhiebert avatar ryanhiebert commented on September 25, 2024

Thanks, although I'm not sure this really helps me much. Can you give me steps or a repository to reproduce the issue?

from aldjemy.

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.