Giter VIP home page Giter VIP logo

Comments (4)

jab avatar jab commented on June 14, 2024

It works fine for me:

10:53:39 ~> cd /tmp
10:54:00 /tmp> virtualenv -p /usr/bin/python test
Running virtualenv with interpreter /usr/bin/python
New python executable in test/bin/python
Installing setuptools, pip...done.
10:54:24 /tmp> cd test
10:54:29 /t/test> . bin/activate.fish
(test)10:54:31 /t/test> pip install bidict
You are using pip version 6.1.1, however version 7.1.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting bidict
/private/tmp/test/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:79: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Downloading bidict-0.9.0.post1.tar.gz
Installing collected packages: bidict
  Running setup.py install for bidict
Successfully installed bidict-0.9.0.post1
(test)10:54:39 /t/test> python -c 'import bidict'
(test)10:54:50 /t/test> pip uninstall bidict
You are using pip version 6.1.1, however version 7.1.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Uninstalling bidict-0.9.0.post1:
  /private/tmp/test/lib/python2.7/site-packages/bidict-0.9.0.post1-py2.7.egg-info
  /private/tmp/test/lib/python2.7/site-packages/bidict/VERSION
  /private/tmp/test/lib/python2.7/site-packages/bidict/__init__.py
  /private/tmp/test/lib/python2.7/site-packages/bidict/__init__.pyc
  /private/tmp/test/lib/python2.7/site-packages/bidict/_bidict.py
  /private/tmp/test/lib/python2.7/site-packages/bidict/_bidict.pyc
  /private/tmp/test/lib/python2.7/site-packages/bidict/_collapsing.py
  /private/tmp/test/lib/python2.7/site-packages/bidict/_collapsing.pyc
  /private/tmp/test/lib/python2.7/site-packages/bidict/_common.py
  /private/tmp/test/lib/python2.7/site-packages/bidict/_common.pyc
  /private/tmp/test/lib/python2.7/site-packages/bidict/_frozen.py
  /private/tmp/test/lib/python2.7/site-packages/bidict/_frozen.pyc
  /private/tmp/test/lib/python2.7/site-packages/bidict/_named.py
  /private/tmp/test/lib/python2.7/site-packages/bidict/_named.pyc
  /private/tmp/test/lib/python2.7/site-packages/bidict/compat.py
  /private/tmp/test/lib/python2.7/site-packages/bidict/compat.pyc
  /private/tmp/test/lib/python2.7/site-packages/bidict/util.py
  /private/tmp/test/lib/python2.7/site-packages/bidict/util.pyc
Proceed (y/n)? y
  Successfully uninstalled bidict-0.9.0.post1
(test)10:54:57 /t/test> python -c 'import bidict'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named bidict

What version of bidict do you have installed? What happens if you try with a fresh virtualenv as I just demonstrated?

I'm going to close this for now but if it becomes apparent there's really a bug I'll reopen.

P.S. Not related to your pip uninstall issue, but from your code sample, using a bidict.BidirectionalMapping there suggests you probably want a bidict.bidict instead. Did you read the docs? e.g. http://bidict.readthedocs.org/en/latest/other-bidict-types.html

from bidict.

jab avatar jab commented on June 14, 2024

By the way, you can always manually remove an unwanted package from a virtualenv by deleting its files from inside your lib/pythonX.Y/site-packages/ directory and removing the corresponding line from lib/pythonX.Y/site-packages/easy-install.pth.

One other thing you could try is upgrading to a more recent version of pip, as 1.5.6 is pretty old.

from bidict.

jgbreezer avatar jgbreezer commented on June 14, 2024

After some more research: yes it failed to install, BUT - so did other pip install packages. So I think there's something broken about my pip or virtualenv in this system.

from bidict.

jab avatar jab commented on June 14, 2024

Glad you made some progress identifying the problem and best of luck debugging further.

By the way, if you'd like to share what you're using bidict for (assuming you can get it installed:), I'm always interested in better understanding my users and their use cases.

from bidict.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.