[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] [Eric] No module named
From:       admin () mbnoimi ! net
Date:       2011-10-12 19:21:33
Message-ID: 4E95E8BD.6050707 () mbnoimi ! net
[Download RAW message or body]

[Attachment #2 (text/html)]

<html style="direction: ltr;">
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
    <style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
  </head>
  <body style="direction: ltr;"
    bidimailui-detected-decoding-type="UTF-8" text="#000000"
    bgcolor="#FFFFFF">
    Hi All,<br>
    <br>
    I've created a project by Eric its structure as following:<br>
    <br>
    <a class="moz-txt-link-freetext" \
href="http://i.stack.imgur.com/fgpFa.jpg">http://i.stack.imgur.com/fgpFa.jpg</a><br>  \
<br>  I can run it successfully in the IDE by specifying
    (<a class="moz-txt-link-freetext" \
href="http://i.stack.imgur.com/vskbO.jpg">http://i.stack.imgur.com/vskbO.jpg</a>):<br>
  <br>
     - "c:\trunk" as working directory<br>
     - "MyProject\main.py" as main script<br>
    <br>
    but it I can't run it by command line because I get:<br>
    <br>
    <pre><pre>ImportError: No module named package1.Settings</pre></pre>
    <br>
    <br>
    PS<br>
    <br>
    I added "c:\trunk\Project" to system path (see run.bat please):<br>
    <br>
    <pre><pre>set PATH=%PATH%;%CD%
python MyProject\main.py
pause</pre></pre>
    <br>
    <br>
    here is the running log:<br>
    <br>
    <pre><pre>C:\trunk&gt;set \
PATH=C:\Python26\Lib\site-packages\PyQt4\bin;C:\Python26\Scripts;C:\Python26;C:\Program \
Files\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program \
Files\Bazaar;C:\ProgramFiles\doxygen\bin;C:\Program Files\WinMerge;C:\trunk

C:\trunk&gt;python MyProject\main.py
Traceback (most recent call last):
  File <font class="pastecode" color="#008B00">"MyProject\main.py"</font>, line 17, \
in &lt;module&gt;  from MyProject.package1.Settings import Settings
  File <font class="pastecode" color="#008B00">"C:\trunk\MyProject\main.py"</font>, \
line 17, in  &lt;module&gt;
    from MyProject.package1.Settings import Settings
ImportError: No module named package1.Settings</pre></pre>
    <br>
    <pre class="moz-signature" cols="72">-- 
Best Regards
Muhammad Bashir Al-Noimi
My Blog: <a class="moz-txt-link-freetext" \
href="http://mbnoimi.net">http://mbnoimi.net</a></pre>  </body>
</html>



_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic