ArtLabss / open-data-anonymizer

Python Data Anonymization & Masking Library For Data Science Tasks

Home Page:https://www.artlabs.tech

Repository from Github https://github.comArtLabss/open-data-anonymizerRepository from Github https://github.comArtLabss/open-data-anonymizer

[BUG]

ShNadi opened this issue · comments

Hi,
while calling the anonymize function:

  • anonym.anonymize(inplace = False, seed = 100)
    I face with the following error:
  • AttributeError: 'function' object has no attribute 'seed'

could you please let me know, how can I fix this error?
Thanks, Shiva

@ShNadi Heyyy, many thanks for reporting the issue! Seems like I haven't uploaded the latest version to pypi (pip).
So, what you have to do:

  1. pip install anonympy --upgrade
  2. To verify:
import anonympy 
print(anonympy.__version__)
>>> 0.2.6

After that you can run your code with seed argument to get reproducible results. Feel free to reopen the issue, if anything else pops up.
Cheers! 😄

@shukkkur thanks for your quick reply! I have upgraded the anonympy to version 0.2.6 but, the problem is not solved. The same error as before...

Best,

@ShNadi Can you plase share your code

@shukkkur Here is the code and the error...
Have a nice weekend!
image

Strangeee 🤔
Tested both on my machine and Google Colab. Works.

image
image

I would suggest to reinstall the package:

  1. pip uninstall anonympy
  2. pip install anonympy

Let me know how it goes.

hey @shukkkur,
I reinstalled it in my Jupyter notebook, and it still does not work. But it works perfectly in the Pycharm environment. So, probably there is something wrong with my Jupyter...
Many thanks for the nice implemented package and the support.
Best,