How to fix “AssertionError error: Not implemented” when trying to change Required relation to Optional in PonyORM migrationError when trying to migrate django application with southHow to change a nullable column to not nullable in a Rails migration?South migrate error - relation already existsPonyORM orphaned items when clearing a set that defines one-to-many relationGetting Operational Error when trying to migrate DjangoFixing migration errorHow to select records in the case of a many to many relation with ponyormUUID field in fresh Postgresql DB failing ValidationError: [“'1' is not a valid UUID.”]Migration error on timestamp change fieldPony ORM - Resolve 'Expected string or bytes-like object' error

Could you fly a Boeing 747 on Venus?

Why is this missile positioned in this odd position? How can it be launched correctly?

Fuel gauge very slow to come up after filling - anything to worry about?

Why do three series connected 1.2 V NiMH batteries read 4.16 V when charged?

How to draw the following image in TikZ?

Will a nuclear country use nuclear weapons if attacked by conventional means by another nuclear country?

What is the difference between turbojet and turbofan engines?

Are there "fewer independent theaters than ever"?

Does a motor suffer damage when resistance to the intended motion is met?

Das ist ja wohl nicht dein Ernst - meaning of particle "ja"

Language to define perfectly a programming problem

Printing the bits of an integer using bitfields and union

Effects of quantum computing on parallel universes

Is a vector space naturally isomorphic to its dual?

If a middle class person is expecting a down turn in the market, what percentage of cash should they hold?

Improving the observation skill & making less blunders

HR trying to sabotage my wife's work because we're married

Translation Golf XLIX - An Accurate Shot

Do Macs come with any programming language available from the Terminal?

How do I find the unknown program enabled during Start-Up?

In a shuttle launch, what would have happened if all three SSMEs failed during flight?

Physical interpretation of complex numbers

Fermat's Last Theorem, mod n

Google just EOLed the original Pixel. How long until it's a brick?



How to fix “AssertionError error: Not implemented” when trying to change Required relation to Optional in PonyORM migration


Error when trying to migrate django application with southHow to change a nullable column to not nullable in a Rails migration?South migrate error - relation already existsPonyORM orphaned items when clearing a set that defines one-to-many relationGetting Operational Error when trying to migrate DjangoFixing migration errorHow to select records in the case of a many to many relation with ponyormUUID field in fresh Postgresql DB failing ValidationError: [“'1' is not a valid UUID.”]Migration error on timestamp change fieldPony ORM - Resolve 'Expected string or bytes-like object' error






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









0

















I'm getting AssertionError: Not implemented when I tried to change a relation between 2 models to Required to Optional.



Steps to reproduce:
I got in my model user = Required(lambda: User) and then change it to user = Optional(lambda: User, default=None, nullable=True)
python migrate.py make, no errors
python migrate.py apply:



Applied:
Traceback (most recent call last):
File "migrate.py", line 8, in <module>
models.db.migrate(**app.config['DB_PARAMS'])
File "/home/www/env/lib/python3.6/site-packages/pony/orm/core.py", line 728, in migrate
return migrate(self, command)
File "/home/www/env/lib/python3.6/site-packages/pony/migrate/command.py", line 61, in migrate
return _migrate(db, cmd, **kwargs)
File "/home/www/env/lib/python3.6/site-packages/pony/migrate/command.py", line 102, in _migrate
graph.apply(db=db, is_fake=fake_initial, dry_run=dry, name_start=start, name_end=end)
File "/home/www/env/lib/python3.6/site-packages/pony/migrate/migration.py", line 383, in apply
upgrade_db(new_db, dic)
File "/home/www/env/lib/python3.6/site-packages/pony/migrate/migration.py", line 53, in upgrade_db
op.apply(db)
File "/home/www/env/lib/python3.6/site-packages/pony/migrate/diagram_ops.py", line 154, in apply
assert False, 'Not implemented'
AssertionError: Not implemented


When I delete the entire DB and all my migrations and run make & apply again all works fine, but now I have to do this migration in my production server.










share|improve this question
































    0

















    I'm getting AssertionError: Not implemented when I tried to change a relation between 2 models to Required to Optional.



    Steps to reproduce:
    I got in my model user = Required(lambda: User) and then change it to user = Optional(lambda: User, default=None, nullable=True)
    python migrate.py make, no errors
    python migrate.py apply:



    Applied:
    Traceback (most recent call last):
    File "migrate.py", line 8, in <module>
    models.db.migrate(**app.config['DB_PARAMS'])
    File "/home/www/env/lib/python3.6/site-packages/pony/orm/core.py", line 728, in migrate
    return migrate(self, command)
    File "/home/www/env/lib/python3.6/site-packages/pony/migrate/command.py", line 61, in migrate
    return _migrate(db, cmd, **kwargs)
    File "/home/www/env/lib/python3.6/site-packages/pony/migrate/command.py", line 102, in _migrate
    graph.apply(db=db, is_fake=fake_initial, dry_run=dry, name_start=start, name_end=end)
    File "/home/www/env/lib/python3.6/site-packages/pony/migrate/migration.py", line 383, in apply
    upgrade_db(new_db, dic)
    File "/home/www/env/lib/python3.6/site-packages/pony/migrate/migration.py", line 53, in upgrade_db
    op.apply(db)
    File "/home/www/env/lib/python3.6/site-packages/pony/migrate/diagram_ops.py", line 154, in apply
    assert False, 'Not implemented'
    AssertionError: Not implemented


    When I delete the entire DB and all my migrations and run make & apply again all works fine, but now I have to do this migration in my production server.










    share|improve this question




























      0












      0








      0








      I'm getting AssertionError: Not implemented when I tried to change a relation between 2 models to Required to Optional.



      Steps to reproduce:
      I got in my model user = Required(lambda: User) and then change it to user = Optional(lambda: User, default=None, nullable=True)
      python migrate.py make, no errors
      python migrate.py apply:



      Applied:
      Traceback (most recent call last):
      File "migrate.py", line 8, in <module>
      models.db.migrate(**app.config['DB_PARAMS'])
      File "/home/www/env/lib/python3.6/site-packages/pony/orm/core.py", line 728, in migrate
      return migrate(self, command)
      File "/home/www/env/lib/python3.6/site-packages/pony/migrate/command.py", line 61, in migrate
      return _migrate(db, cmd, **kwargs)
      File "/home/www/env/lib/python3.6/site-packages/pony/migrate/command.py", line 102, in _migrate
      graph.apply(db=db, is_fake=fake_initial, dry_run=dry, name_start=start, name_end=end)
      File "/home/www/env/lib/python3.6/site-packages/pony/migrate/migration.py", line 383, in apply
      upgrade_db(new_db, dic)
      File "/home/www/env/lib/python3.6/site-packages/pony/migrate/migration.py", line 53, in upgrade_db
      op.apply(db)
      File "/home/www/env/lib/python3.6/site-packages/pony/migrate/diagram_ops.py", line 154, in apply
      assert False, 'Not implemented'
      AssertionError: Not implemented


      When I delete the entire DB and all my migrations and run make & apply again all works fine, but now I have to do this migration in my production server.










      share|improve this question















      I'm getting AssertionError: Not implemented when I tried to change a relation between 2 models to Required to Optional.



      Steps to reproduce:
      I got in my model user = Required(lambda: User) and then change it to user = Optional(lambda: User, default=None, nullable=True)
      python migrate.py make, no errors
      python migrate.py apply:



      Applied:
      Traceback (most recent call last):
      File "migrate.py", line 8, in <module>
      models.db.migrate(**app.config['DB_PARAMS'])
      File "/home/www/env/lib/python3.6/site-packages/pony/orm/core.py", line 728, in migrate
      return migrate(self, command)
      File "/home/www/env/lib/python3.6/site-packages/pony/migrate/command.py", line 61, in migrate
      return _migrate(db, cmd, **kwargs)
      File "/home/www/env/lib/python3.6/site-packages/pony/migrate/command.py", line 102, in _migrate
      graph.apply(db=db, is_fake=fake_initial, dry_run=dry, name_start=start, name_end=end)
      File "/home/www/env/lib/python3.6/site-packages/pony/migrate/migration.py", line 383, in apply
      upgrade_db(new_db, dic)
      File "/home/www/env/lib/python3.6/site-packages/pony/migrate/migration.py", line 53, in upgrade_db
      op.apply(db)
      File "/home/www/env/lib/python3.6/site-packages/pony/migrate/diagram_ops.py", line 154, in apply
      assert False, 'Not implemented'
      AssertionError: Not implemented


      When I delete the entire DB and all my migrations and run make & apply again all works fine, but now I have to do this migration in my production server.







      migration ponyorm pony






      share|improve this question














      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 28 at 21:20









      LouLou

      11 bronze badge




      11 bronze badge

























          0






          active

          oldest

          votes













          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );














          draft saved

          draft discarded
















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55407021%2fhow-to-fix-assertionerror-error-not-implemented-when-trying-to-change-require%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown


























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55407021%2fhow-to-fix-assertionerror-error-not-implemented-when-trying-to-change-require%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown









          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript