Python module “cx_Oracle” module could not be found

# – This import requires appropriate oraocciXX.dll to be available in PATH (on windows) # (Probably LD_LIBRARY_PATH or LD_LIBRARY_PATH64 on POSIX) # where XX is the oracle DB version, e.g. oraocci11.dll for Oracle 11g. # – This dll is part of the Oracle Instant client pkg available here: # http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html # – Also ensure that … Read more

Auto-Loading a module on IPython startup

i’ve found a solution to this one, in your IPython profile directory (by default – .ipython\profile_default), edit the file ipython_config.py (create it with ipython profile create if it does not exist) with the following lines: # loads the root config object c=get_config() # executes the line in brackets on program launch c.InteractiveShellApp.exec_lines = [‘from __future__ … Read more

How do you organize Python modules? [closed]

My advice: Read Installing Python Modules. Read Distributing Python Modules. Start using easy_install from setuptools. Read the documentation for setuptools. Always use virtualenv. My site-packages directory contains setuptools and virtualenv only. Check out Ian Bicking’s new project pyinstall. Follow everything Ian Bicking is working on. It is always goodness. When creating your own packages, use … Read more

python module import – relative paths issue

My Python development workflow This is a basic process to develop Python packages that incorporates what I believe to be the best practices in the community. It’s basic – if you’re really serious about developing Python packages, there still a bit more to it, and everyone has their own preferences, but it should serve as … Read more

When do I need a triple slash reference?

You need a triple slash reference in two scenarios: When you are referencing JavaScript type definitions e.g. definitions for node, jQuery, etc. for a great collection see : https://github.com/DefinitelyTyped/DefinitelyTyped When we want to compile using –out you can reference your files using /// <reference. You need a import/require combo when using external modules i.e. amd/commonjs. … Read more