1. Jan-Philip Gehrcke
  2. gipc

Issues

Issue #3 invalid

ImportError: No module named os

Jeremias Blendin
created an issue

Hi,

I installed gipc using pip, however, I get an error:

>>> import gipc
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/gipc/__init__.py", line 8, in <module>
    from gipc import pipe, start_process, GIPCError, GIPCClosed, GIPCLocked
  File "/usr/local/lib/python2.7/dist-packages/gipc/gipc.py", line 33, in <module>
    import gevent.os
ImportError: No module named os

Comments (5)

  1. Jan-Philip Gehrcke repo owner

    When you start the same Python interpreter as used to generate this error, what happens when you just import gevent.os? For me, this works:

    $ python
    Python 2.7.3 (default, Aug 28 2012, 14:23:39) 
    [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import gevent.os
    >>> gevent.os.__file__
    '/***/Python-2.7.3/lib/python2.7/site-packages/gevent-1.0rc2-py2.7-linux-x86_64.egg/gevent/os.pyc'
    
  2. Jeremias Blendin reporter

    For me, it does not work:

    MacOS:

    pip freeze
    gevent==0.13.8
    
     python
    Python 2.7.5 (default, May 28 2013, 17:37:55) 
    [GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import gevent.os
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    ImportError: No module named os
    

    Linux:

    pip freeze
    gevent==0.13.7
    
    python
    Python 2.7.3 (default, Sep 26 2012, 21:51:14) 
    [GCC 4.7.2] on linux2
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import gevent.os
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    ImportError: No module named os
    

    I guess gevent 1.0 is required?

  3. Log in to comment