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

parse error at '-irtuale', but virtualenv is correct #7763

Closed
ujinyng opened this issue Feb 21, 2020 · 4 comments
Closed

parse error at '-irtuale', but virtualenv is correct #7763

ujinyng opened this issue Feb 21, 2020 · 4 comments
Labels
auto-locked Outdated issues that have been locked by automation C: uninstall The logic for uninstallation of packages type: bug A confirmed bug or unintended behavior

Comments

@ujinyng
Copy link

ujinyng commented Feb 21, 2020

Environment

  • pip version: 19.3.1 and 19.2.3
  • Python version: 3.7.6
  • OS: mac catalina

Description

In locale home directory
I try this :
pip freeze>tflist.txt

but show :
WARNING: Could not generate requirement for distribution -irtualenv 20.0.4 (/usr/local/lib/python3.7/site-packages): Parse error at "'-irtuale'": Expected W:(abcd...)

and the file tflist.txt is generated, but empty.

I think 'virtualenv' is correct, but when I command 'pip list'
the result is :

Package            Version
------------------ -------
-irtualenv         20.0.4

.
.
.

but I cannot uninstall -rtualenv.
I try this : pip uninstall -irtualenv, and pip uninstall virtualenv
Both are failed, the message is is not installed

well, I succese to reinstall virtualenv, using pip install virtualenv

but How can I remove the wrong name package?
and who knows why the problem happens?

when I try pip freeze
'-virtualenv', the worng name is not involved the ouput .
So I think maybe the pip list command is wrong and have some bug. etc. parse error..

@pradyunsg
Copy link
Member

Hi! Thanks for filing this @ujinyoung!

Could you provide the output of running ls -l /usr/local/lib/python3.7/site-packages on this system?

@pradyunsg pradyunsg added C: uninstall The logic for uninstallation of packages S: awaiting response Waiting for a response/more information type: bug A confirmed bug or unintended behavior labels Feb 21, 2020
@triage-new-issues triage-new-issues bot removed S: needs triage Issues/PRs that need to be triaged labels Feb 21, 2020
@no-response
Copy link

no-response bot commented Mar 7, 2020

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

@no-response no-response bot closed this as completed Mar 7, 2020
@no-response no-response bot removed the S: awaiting response Waiting for a response/more information label Mar 29, 2020
@no-response no-response bot reopened this Mar 29, 2020
@ujinyng
Copy link
Author

ujinyng commented Mar 29, 2020

Hi! Thanks for filing this @ujinyoung!

Could you provide the output of running ls -l /usr/local/lib/python3.7/site-packages on this system?

Now, pip freeze works properly and not warning and virtualenv or -irtualenv are not included in pip list

But ls -l /usr/local/lib/python3.7/site-packages
The output contains
~irtualenv-20.0.4.dist-info , not virtualenv or -irtualenv

@uranusjr
Copy link
Member

You will need to delete the (corrupted) ~irtualenv-20.0.4.dist-info manually, unfortunately. pip cannot delete things it does not recognise, since it can’t be sure if the users put it there themselves intentionally.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label May 5, 2020
@lock lock bot locked as resolved and limited conversation to collaborators May 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation C: uninstall The logic for uninstallation of packages type: bug A confirmed bug or unintended behavior
Projects
None yet
Development

No branches or pull requests

3 participants