Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

textract3-1.6.4.post1 and textract-1.6.5 compilation error: error in beautifulsoup4 setup command: use_2to3 is invalid. #464

Open
ashish-2022 opened this issue May 3, 2023 · 1 comment

Comments

@ashish-2022
Copy link

ashish-2022 commented May 3, 2023

Describe the bug
When installing textract3-1.6.4.post1 or textract-1.6.5 from source we get following error:

bash-4.2$ pip3 install --no-binary :all: textract3
Collecting textract3
  Downloading textract3-1.6.4.post1.tar.gz (16 kB)
  Preparing metadata (setup.py) ... done
Collecting argcomplete~=1.10.0 (from textract3)
  Using cached argcomplete-1.10.3.tar.gz (50 kB)
  Preparing metadata (setup.py) ... done
Collecting beautifulsoup4~=4.8.0 (from textract3)
  Using cached beautifulsoup4-4.8.2.tar.gz (298 kB)
  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 beautifulsoup4 setup command: use_2to3 is invalid.
      [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.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
bash-4.2$

To Reproduce
Steps to reproduce the behavior:

  1. Install Python 3.10.8
  2. run command pip3 install --no-binary :all: textract3
  3. This is also occurring if we download and extract textract3-1.6.4.post1.tar.gz from pypi and try to install locally using: pip3 install python_packages/textract3-1.6.4.post1/
  4. As per my initial analysis we need to upgrade beautifulsoup4 version in textract3 and textract

Expected behavior
The package should compile and install without any error from source tar.gz file

Desktop (please complete the following information):

  • OS: RHEL 7.9, RHEL 8.6
  • Textract version : textract3-1.6.4.post1, textract-1.6.5
  • Python version : Python 3.10.8
  • Virtual environment : No
@ashish-2022 ashish-2022 changed the title textract3-1.6.4.post1 compilation error: error in beautifulsoup4 setup command: use_2to3 is invalid. textract3-1.6.4.post1 and textract-1.6.5 compilation error: error in beautifulsoup4 setup command: use_2to3 is invalid. May 3, 2023
@ashish-2022
Copy link
Author

I'm not an expert on this package but from my little knowledge I know that we have to upgrade version of beautifulsoup4 in following files:
bash-4.2$ vim python_packages/textract3-1.6.4.post1/requirements/python
bash-4.2$ vim python_packages/textract3-1.6.4.post1/textract3.egg-info/requires.txt

See here beautifulsoup4 has fixed this in latest versions:
https://bugs.funtoo.org/browse/FL-8788?page=com.atlassian.jira.plugin.system.issuetabpanels%3Achangehistory-tabpanel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant