Re: import fails in non-interactive interpreter

2012-01-26 Thread Jean-Michel Pichavant
Brian wrote: I've been banging my head against this for the past hour, and I'm hoping someone here can set me straight. [Snip] but, using the same same python, I'm able to import the module from the interactive interpreter. The PATH and PYTHONPATH environment variables are identical in

Re: import fails in non-interactive interpreter

2012-01-26 Thread Brian Brinegar
JM, Thanks for the response, you're correct '' is pre-pended to the path in interactive mode. I've tried adding . to my PYTHONPATH and it doesn't solve the problem. When imported from interactive python the paste.deploy module is located at: import paste.deploy paste.deploy.__path__

Re: import fails in non-interactive interpreter

2012-01-26 Thread Jean-Michel Pichavant
Brian Brinegar wrote: JM, Thanks for the response, you're correct '' is pre-pended to the path in interactive mode. I've tried adding . to my PYTHONPATH and it doesn't solve the problem. When imported from interactive python the paste.deploy module is located at: import paste.deploy

Re: import fails in non-interactive interpreter

2012-01-26 Thread Brian Brinegar
On Thu, Jan 26, 2012 at 8:49 AM, Jean-Michel Pichavant jeanmic...@sequans.com wrote: Brian Brinegar wrote: JM, Thanks for the response, you're correct '' is pre-pended to the path in interactive mode. I've tried adding . to my PYTHONPATH and it doesn't solve the problem. When imported

import fails in non-interactive interpreter

2012-01-25 Thread Brian
I've been banging my head against this for the past hour, and I'm hoping someone here can set me straight. I have a virtualenv setup for a Pyramid app and I'm having trouble importing the paste.deploy module in a standalone, non-Pyramid script within the virtualenv. For testing purposes I have a

Re: import fails in non-interactive interpreter

2012-01-25 Thread Devin Jeanpierre
On Wed, Jan 25, 2012 at 9:25 PM, Brian brian.brine...@gmail.com wrote: Under what situations would a module be available to through the interactive interpreter but not the non-interactive? I don't know if it matches your situation, but one such case is this: The interactive interpreter (and