Did I find the right examples for you? yes no

All Samples(8914)  |  Call(8692)  |  Derive(222)  |  Import(0)
Import can't find module, or can't find name in module.

src/d/j/django-admin-report-HEAD/example/lib/reportlab/__init__.py   django-admin-report(Download)
    our 'version1' branch.
    """
    raise ImportError("reportlab needs Python 2.4 or higher", warning)
 
def getStory(context):

src/m/o/modern-python-example-HEAD/lib/python2.7/site-packages/logilab/common/modutils.py   modern-python-example(Download)
        _file = getattr(module, '__file__', '')
        if not _file and len(modpath) != len(parts):
            raise ImportError('no module in %s' % '.'.join(parts[len(modpath):]) )
        path = [dirname( _file )]
        prevmodule = module
            if _check_init(path, modpath[:-1]):
                return modpath
    raise ImportError('Unable to find module for %s in %s' % (
        filename, ', \n'.join(sys.path)))
 
        if parts[0] in BUILTIN_MODULES:
            if len(parts) > 2:
                raise ImportError(dotted_name)
            return parts[0]
        # don't use += or insert, we want a new list to be created !
            if importer.find_module(modpath[0]):
                if not importer.find_module('/'.join(modpath)):
                    raise ImportError('No module named %s in %s/%s' % (
                        '.'.join(modpath[1:]), file, modpath))
                return ZIPFILE, abspath(filepath) + '/' + '/'.join(modpath), filepath
    raise ImportError('No module named %s' % '.'.join(modpath))

src/n/e/neutron-drive-HEAD/google_appengine/lib/PyAMF/doc/tutorials/examples/actionscript/geoip/python/server.py   neutron-drive(Download)
    gi = GeoIP.new(GeoIP.GEOIP_STANDARD)
except ImportError:
    raise ImportError('This example requires the Maxmind GeoIP Python API package')
 
import pyamf

src/h/u/hunch-sample-app-HEAD/django/contrib/gis/geos/libgeos.py   hunch-sample-app(Download)
    lib_names = ['geos_c', 'GEOS']
else:
    raise ImportError('Unsupported OS "%s"' % os.name)
 
# Using the ctypes `find_library` utility to find the path to the GEOS
# No GEOS library could be found.
if lib_path is None:
    raise ImportError('Could not find the GEOS library (tried "%s"). '
                        'Try setting GEOS_LIBRARY_PATH in your settings.' %
                        '", "'.join(lib_names))

src/m/o/modern-python-example-HEAD/lib/python2.7/site-packages/Crypto/SelfTest/PublicKey/test_RSA.py   modern-python-example(Download)
            +"/../../PublicKey/_fastmath"+get_config_var("SO"))
        if os.path.exists(_fm_path):
            raise ImportError("While the _fastmath module exists, importing "+
                "it failed. This may point to the gmp or mpir shared library "+
                "not being in the path. _fastmath was found at "+_fm_path)

src/m/o/modern-python-example-HEAD/lib/python2.7/site-packages/Crypto/SelfTest/PublicKey/test_DSA.py   modern-python-example(Download)
            +"/../../PublicKey/_fastmath"+get_config_var("SO"))
        if os.path.exists(_fm_path):
            raise ImportError("While the _fastmath module exists, importing "+
                "it failed. This may point to the gmp or mpir shared library "+
                "not being in the path. _fastmath was found at "+_fm_path)

src/m/o/modern-python-example-HEAD/lib/python2.7/site-packages/Crypto/Random/OSRNG/__init__.py   modern-python-example(Download)
    from Crypto.Random.OSRNG.fallback import new
else:
    raise ImportError("Not implemented")
 
# vim:set ts=4 sw=4 sts=4 expandtab:

src/n/e/networkx-HEAD/examples/graph/football.py   networkx(Download)
    import pyparsing
except ImportError as e:
    raise ImportError(str(e)+". Check http://pyparsing.wikispaces.com/")
 
from networkx import *

src/n/e/networkx-HEAD/examples/graph/atlas.py   networkx(Download)
        from networkx import graphviz_layout
    except ImportError:
        raise ImportError("This example needs Graphviz and either PyGraphviz or Pydot")
 
    import matplotlib.pyplot as plt

src/n/e/networkx-HEAD/examples/drawing/lanl_routes.py   networkx(Download)
        from networkx import graphviz_layout
    except ImportError:
        raise ImportError("This example needs Graphviz and either PyGraphviz or Pydot")
 
    G=lanl_graph()

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next