Code Monkey home page Code Monkey logo

Comments (7)

rwnx avatar rwnx commented on August 23, 2024

However, there's no reason to think it didnt create the database. It's just that it doesn't log anything when it does. Remember that the schema for the database comes from the dumpfile and not the CREATE_DB step.

I understand that the table doesn't exist at anonymization-time, though. If i was looking into this, I'd start by making absolutely sure that the table in question is in the dumpfile/sql and that the strategyfile is referencing it correctly, including any options like schema, etc.

To be clear, have you tried restoring this dumpfile manually, and does that work (i.e is the table present there?).

from pynonymizer.

armorKing11 avatar armorKing11 commented on August 23, 2024

The pynonymizer works correctly if you use the only_step parameter in the run() call for all the steps specified individually which is my current workaround ,ie,

1. CREATE_DB
2. RESTORE_DB
3. ANONYMIZE_DB
4. DUMP_DB

What is does not appear to do is go through its default process control as you specified in the readme and code as i mentioned in my above comments.
I will look into enabling a logger to access the pynonymizer logs at a hopefully higher verbosity level to investigate the issue more over the weekend
Thanks for the quick response @rwnx

from pynonymizer.

rwnx avatar rwnx commented on August 23, 2024

At the moment, to go further on this I think we need to put together a replication case we can test against.

The information provided here would indicate something seriously wrong with the normal flow of the tool, which we definitely don't want, but likewise, doesn't seem to happen in any of our tests.

Can you give any more info about your use case?

How big is the dumpfile you're restoring? ( My thinking is it might be related to the fix in #98 ). If you try against the current master, that could be useful. alternatively, wait for this change to ship in the next release !

from pynonymizer.

armorKing11 avatar armorKing11 commented on August 23, 2024

The dump file i am restoring is only about 50 MB and i was using the code in master , but looking at the version ( i am using 1.21.3) , i assume the #98 fix is available in 1.22.0 ?
The release history at https://pypi.org/project/pynonymizer/1.22.0/#history does not tell me what fixes are included in that release . Can you please confirm if the fix is present in 1.22.0 release , @rwnx ?

from pynonymizer.

rwnx avatar rwnx commented on August 23, 2024

Hi, yes, that's present in v1.22.0.

If you want to know what's in each release, you can check out the CHANGELOG or compare git tags.

from pynonymizer.

armorKing11 avatar armorKing11 commented on August 23, 2024

Thanks @rwnx !!

from pynonymizer.

rwnx avatar rwnx commented on August 23, 2024

I'm assuming this was fixed for you, so am closing this issue. Let me know if that's not the case.

from pynonymizer.

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.