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

Can't install #1

Closed
matthewdeanmartin opened this issue Jan 14, 2023 · 3 comments
Closed

Can't install #1

matthewdeanmartin opened this issue Jan 14, 2023 · 3 comments

Comments

@matthewdeanmartin
Copy link

I think your setup.py is trying to do to much, maybe it shouldn't attempt to do anything with git or package metadata? Or if this does need a git cloned repo, maybe don't publish it to pypi?

$ pipx install tui-editor
Fatal error from pip prevented installation. Full pip output in file:
    C:\Users\matth\.local\pipx\logs\cmd_2023-01-14_15.26.54_pip_errors.log

pip seemed to fail to build package:
    tui-editor

Some possibly relevant errors from pip install:
    error: subprocess-exited-with-error
    ValueError: not enough values to unpack (expected 2, got 1)
    error: metadata-generation-failed

Error installing tui-editor.
@albertz
Copy link
Owner

albertz commented Jan 14, 2023

I fixed the pip install now.

I'm not really familiar with pipx though. I get now this message:

$ pipx install tui-editor

No apps associated with package tui-editor or its dependencies. If you are attempting to install a library,
pipx should not be used. Consider using pip or a similar tool instead.

As far as I understand from here, it should have an entry_points section in the setup call. However, this is just a pure library without any entry points. So, I don't think that you should use pipx for this.

@dejlek
Copy link
Contributor

dejlek commented Aug 12, 2024

Works for me with regular pip:

  Preparing metadata (setup.py) ... done
Installing collected packages: tui-editor
  DEPRECATION: tui-editor is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
  Running setup.py install for tui-editor ... done
Successfully installed tui-editor-1.20230114.224756

It must be some weird Windows-related issue (as I notice you are trying to install it on Windows). Also, I do not expect tui-editor to work on Windows CMD. Maybe it does work on mintty or similar though...

@albertz
Copy link
Owner

albertz commented Aug 12, 2024

with git or package metadata? Or if this does need a git cloned repo, maybe don't publish it to pypi?

To also comment this: It doesn't need a git cloned repo. It just tries to extract the version automatically.

I assume there is some issue with Windows. I never tested this on Windows. It would be helpful if you could post the log file.

But in any case, as I commented, I think this was already fixed? I don't recall the details anymore. I think I just forget to close this. I'm closing this now, unless there is some new report that pip install is not working.

@albertz albertz closed this as completed Aug 12, 2024
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

3 participants