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

Error installing organize-tool[textract] with pipx extract-msg (<=0.29.*) and workaround #283

Closed
kwbr opened this issue Jun 2, 2023 · 8 comments
Labels

Comments

@kwbr
Copy link

kwbr commented Jun 2, 2023

With the current version 2.4.0 it is not possible to install the package via PyPi using pipx:

  File "/usr/lib/python3/dist-packages/pipx/venv_inspect.py", line 54, in get_package_dependencies
    for req in map(Requirement, dist.requires or []):
  File "/usr/lib/python3/dist-packages/packaging/requirements.py", line 37, in __init__
    raise InvalidRequirement(str(e)) from e
packaging.requirements.InvalidRequirement: Expected closing RIGHT_PARENTHESIS
    extract-msg (<=0.29.*)

This is an issue with a change in the wheel package. See for example: deanmalmgren/textract#461

As a workaround one can first install organize-tool and then manually install a newer version of textract. This works for me.

pipx install organize-tool
pipx runpip organize-tool install textract==1.6.5

Happy and heavy user of the tool. ❤️

@kwbr kwbr added the bug label Jun 2, 2023
@tfeldmann
Copy link
Owner

Hey thanks for the heart!
I can reproduce this, but I'm not yet sure how to fix this. Maybe pinning wheel to an older version?

Let me know if you have a good solution. I'll try some things in the next days.

@kwbr
Copy link
Author

kwbr commented Jun 3, 2023

It's strange that installing textract separately works. I am not sure how to solve this. I tried debugging this further but following pip installing a package is quiet hard. Others seem to have tried to pin wheel to an older version. Hopefully textract will release an update with a change to the extract-msg dependency.

Also installing with pip into a venv also works. So maybe it's a problem with pipx.

@lensaffair
Copy link

Not sure if this is related; but after upgrading to Python 3.11.3, I cannot install organize-tool[texttract] either using pip. Error seems very weird to me:

pip install organize-tool[textract]
zsh: no matches found: organize-tool[textract]

@gaby
Copy link
Contributor

gaby commented Jul 1, 2023

@lensaffair Could it be related to the project not listing py3.11 as supported on Pypi? https://pypi.org/project/organize-tool/

@gaby gaby mentioned this issue Jul 1, 2023
2 tasks
@gaby
Copy link
Contributor

gaby commented Jul 1, 2023

@tfeldmann @lensaffair I just submitted a PR that adds py3.11 to the pyproject file and the unit-tests.

@kamuridesu
Copy link

Not sure if this is related; but after upgrading to Python 3.11.3, I cannot install organize-tool[texttract] either using pip. Error seems very weird to me:

pip install organize-tool[textract]
zsh: no matches found: organize-tool[textract]

The issue is that zsh considers [] as part of it's syntax instead of passing the arguments to pip. Try to quote it so it's consider a string:

pip install "organize-tool[texttract]"

@lensaffair
Copy link

That's it - works like a charm. Thanks a lot!

@tfeldmann
Copy link
Owner

This should be fixed with v3.

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

No branches or pull requests

5 participants