<div dir="ltr"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Thanks<br><br>Ernest Bonat, Ph.D.<br>Senior Software Engineer | Senior Data Analyst<br>Visual WWW, Inc. | President and CEO<br>115 NE 39th Avenue | Hillsboro, OR 97124<br>Cell: 503.730.4556 | Email: <a href="mailto:ernest.bonat@gmail.com" target="_blank">ernest.bonat@gmail.com</a><br><br><span><i>The content of this email is confidential. It is intended only for the use of the persons named above. If you are not the intended recipient, you are hereby notified that any review, dissemination, distribution or duplication of this communication is strictly prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.</i></span><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Terry Reedy</b> <span dir="ltr"><<a href="mailto:tjreedy@udel.edu">tjreedy@udel.edu</a>></span><br>Date: Sat, Jul 11, 2015 at 8:59 PM<br>Subject: Re: Python Error: ImportError: No module named ''folder_name’ at Command Prompt<br>To: "Ernest Bonat, Ph.D." <<a href="mailto:ernest.bonat@gmail.com">ernest.bonat@gmail.com</a>><br><br><br>Please send this followup to python-list.<span class=""><br>
<br>
On 7/11/2015 11:26 PM, Ernest Bonat, Ph.D. wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Hey Terry,<br>
<br>
Thanks for your help. I had follow the link: How to add a Python module<br>
to syspath?<br></span>
<<a href="http://askubuntu.com/questions/470982/how-to-add-a-python-module-to-syspath" rel="noreferrer" target="_blank">http://askubuntu.com/questions/470982/how-to-add-a-python-module-to-syspath</a>><span class=""><br>
and I could not make it work. I did use sys.path.insert() and<br>
sys.path.append() as:<br>
<br>
Examples: sys.path.append('/python_mvc_calculator/calculator/') or<br>
sys.path.insert(0, "/python_mvc_calculator/calculator")<br>
<br>
I did try it to:<br>
sys.path.append('/python_mvc_calculator/calculator/controller') or<br>
sys.path.insert(0, "/python_mvc_calculator/calculator/controller") too!<br>
<br>
The main.py file is in python_mvc_calculator/calculator folder and I<br>
need to import a module calculatorcontroller.py in<br>
"python_mvc_calculator/calculator/controller"<br>
<br>
I hope this explanation helps a bit!<br>
<br></span>
<<a href="http://askubuntu.com/questions/470982/how-to-add-a-python-module-to-syspath" rel="noreferrer" target="_blank">http://askubuntu.com/questions/470982/how-to-add-a-python-module-to-syspath</a>><span class=""><br>
<br>
Thanks<br>
<br>
Ernest Bonat, Ph.D.<br>
Senior Software Engineer | Senior Data Analyst<br>
Visual WWW, Inc. | President and CEO<br>
115 NE 39th Avenue | Hillsboro, OR 97124<br>
Cell: <a href="tel:503.730.4556" value="+15037304556" target="_blank">503.730.4556</a> | Email: <a href="mailto:ernest.bonat@gmail.com" target="_blank">ernest.bonat@gmail.com</a><br></span>
<mailto:<a href="mailto:ernest.bonat@gmail.com" target="_blank">ernest.bonat@gmail.com</a>><br>
<br>
/The content of this email is confidential. It is intended only for the<span class=""><br>
use of the persons named above. If you are not the intended recipient,<br>
you are hereby notified that any review, dissemination, distribution or<br>
duplication of this communication is strictly prohibited. If you are not<br>
the intended recipient, please contact the sender by reply email and<br></span>
destroy all copies of the original message./<span class=""><br>
<br>
On Sat, Jul 11, 2015 at 5:02 PM, Terry Reedy <<a href="mailto:tjreedy@udel.edu" target="_blank">tjreedy@udel.edu</a><br></span><div><div class="h5">
<mailto:<a href="mailto:tjreedy@udel.edu" target="_blank">tjreedy@udel.edu</a>>> wrote:<br>
<br>
    On 7/11/2015 11:15 AM, Ernest Bonat, Ph.D. wrote:<br>
<br>
        Hi All,<br>
<br>
<br>
        I’m doing a CSV data analysis in Python using Eclipse IDE/PyDev.<br>
        I have<br>
        organized my project using the standard MVC architecture. In<br>
        Eclipse IDE<br>
        everything is working properly. When I run my main.py file it at<br>
        Command<br>
        Prompt I got an error: ImportError: No module named<br>
        'folder_name'. It’s<br>
        like the location path of the ‘'folder_name’ was not found. Do I<br>
        need to<br>
        update my main.py file to run it at the Command Prompt?<br>
<br>
<br>
    'import module' searches directories on sys.path for a file or<br>
    directory named 'module'.  sys.path starts with '.', which<br>
    represents the 'current' directory. If you start with the directory<br>
    containing main.py as current directory and 'folder-name' is in the<br>
    same directory, the import should work.  Otherwise ??? EclipseIDE<br>
    probably modifies the current dir and/or path to make things work.<br>
<br>
    For any more help, post the OS and locations of main.py,<br>
    folder_name, and python.<br>
<br>
    --<br>
    Terry Jan Reedy<br>
<br>
<br>
    --<br>
    <a href="https://mail.python.org/mailman/listinfo/python-list" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-list</a><br>
<br>
<br>
</div></div></blockquote>
<br>
<br>
</div><br></div>