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

Pip3 freeze outputs Could not parse requirement: -BB #6513

Closed
Jendker opened this issue May 19, 2019 · 7 comments

Comments

@Jendker
Copy link

commented May 19, 2019

  • Pip version: 19.0.3
  • Python version: 3.7.3
  • Operating system: MacOS 10.14.4

I am trying to clean a bit my system-wide pip3 package to move all the development to the respective virtual environments.
I managed to remove all the pip3 packages, but right now I am getting such output for pip3 freeze:

➜  ~ pip3 freeze
Could not parse requirement: -BB

What can be the reason for such output?

@cjerdonek

This comment has been minimized.

Copy link
Member

commented May 24, 2019

Marking as a bug because the error doesn’t provide enough info to let the user diagnose.

@Jendker What happens if you pass the verbose option -vvv?

@cjerdonek

This comment has been minimized.

Copy link
Member

commented May 25, 2019

I posted PR #6538 for this.

@cjerdonek

This comment has been minimized.

Copy link
Member

commented May 25, 2019

Could not parse requirement: -BB
What can be the reason for such output?

@Jendker Try looking in your site-packages directories for a directory with "BB" towards the beginning of the name. It is probably a corrupt dist-info directory of some kind.

@Jendker

This comment has been minimized.

Copy link
Author

commented May 27, 2019

Thanks! I've found directories "~BB" and "~BB-0.1-py3.7.egg-info" under site-packages, I am not sure why they got created. Unfortunately I don't know the backgrounds on how to operate with pip and I am not sure how to solve this. Should I just remove the folders or is there something more to consider?

EDIT: I have found also this directory under: /Users/Jedrzej/Library/Caches/PyCharm2019.1/python_stubs/-1199943126/~BB
I am not sure if it is related

@cjerdonek

This comment has been minimized.

Copy link
Member

commented May 27, 2019

Should I just remove the folders or is there something more to consider?

I think those directories exist because of a bug in an earlier version of pip (maybe in 19.0.1 / 19.0.2). You can think of them as temp directories that got created while installing / uninstalling something, but they were orphaned / not cleaned up correctly. The "~" character replaced some other character, so it might have been something like "ABB" or "BBB" originally. It's okay to delete them. If you're curious, you can also look inside to try and figure out what package they corresponded to.

@Jendker

This comment has been minimized.

Copy link
Author

commented May 27, 2019

You are exactly right, they were a residue after TBB package. Thank you for your help!

@cjerdonek

This comment has been minimized.

Copy link
Member

commented May 27, 2019

Great, and no prob!

@lock lock bot added the S: auto-locked label Jun 26, 2019

@lock lock bot locked as resolved and limited conversation to collaborators Jun 26, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants
You can’t perform that action at this time.