ArtLabss / open-data-anonymizer

Python Data Anonymization & Masking Library For Data Science Tasks
https://www.artlabs.tech
BSD 3-Clause "New" or "Revised" License
234 stars 29 forks source link

error in anonympy setup command: 'python_requires' must be a string containing valid version specifiers; Invalid specifier: '>=3.6*' #26

Open gianmarcoaversanoenx opened 1 year ago

gianmarcoaversanoenx commented 1 year ago
pip install anonympy

retults in

error in anonympy setup command: 'python_requires' must be a string containing valid version specifiers; Invalid specifier: '>=3.6*'

this error happens just sometimes... i am using python 3.10.10 and i can install it, then i suddenly cannot anymore.

damnkrat commented 1 year ago

Same on python 3.11

ajouanjean commented 1 year ago

same here

Solutions was to download the tar.gz file, remove the * char in line 33 of setup.py directly in the tar.gz file, and pip install the tar.gz file.

But there is still a problem with cape_privacy, cf. the pull request related to it...

shukkkur commented 1 year ago

@ajouanjean Pull requested merged now

LSD-98 commented 1 year ago

Hello, I am quite new to Python and Git, but I still have the same error when running pip install anonympy. Here is the full output:

pip install anonympy
Collecting anonympy
  Using cached anonympy-0.3.7.tar.gz (5.8 MB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error in anonympy setup command: 'python_requires' must be a string containing valid version specifiers; Invalid specifier: '>=3.6*'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

What I do not understand is that the setup.py file from the tar.gz folder downloaded on pypi is not updated and still has the *. The cape_privacy fix is also missing on pypi.

Edit : fixed it by installing the package from the repository. pip install git+https://github.com/ArtLabss/open-data-anonymizer.git

ajouanjean commented 1 year ago

Yes, files in PyPI have not yet been updated, so using pip will not work unfortunately. @shukkkur could you please push a new version to pypi? Thanks a lot

shukkkur commented 1 year ago

Hey @ajouanjean

I am very happy that people are using our package. Will definitely do this weekend, although I am totally clueless how to do did I do it in the past 😅

Thanks for the reminders and forgive my laziness :)

keenborder786 commented 1 year ago

I am still facing the same error and will be happy to fix it.

djmhunt commented 9 months ago

Hi @shukkkur,

It is great to see that the GitHub code has been updated. Do you have any update on when you plan to create a new release here or on pypi?

filipafcastro commented 8 months ago

I'm also having trouble now with installing the package from the repository. image

Error downloading object: anonympy/tests/pdf/expected/Tesseract-OCR/iconv.dll (806b29c): Smudge error: Error downloading anonympy/tests/pdf/expected/Tesseract-OCR/iconv.dll (806b29c2da610a1f8145dc7934f779dd7a569e4a95beac6433d72a833b01feac): batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.

Any idea what these data packs are? Thanks!

onakatomi commented 6 months ago

@filipafcastro I have the same issue. @shukkkur any update for when this will be fixed, or when the fixed version (latest github version) will be pushed to pypi?

elyse-weiss commented 6 months ago

Also, getting this issue!