Closed GoogleCodeExporter closed 8 years ago
Very strange. Yoton is a package that comes with IEP. I can not think of a
reason why it cannot be imported.
You say you think it might be related to the VC runtime. Reinstalling Python
should fix that. Otherwise you can try and install the redistributable runtime:
http://www.microsoft.com/en-us/download/details.aspx?id=29
Does your normal Python interpreter work ok?
Original comment by almar.klein@gmail.com
on 19 Nov 2012 at 8:42
reinstall VC runtime won't solve the issue.
and normal python works fine, but yoton also not working
C:\>python
Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> import yoton
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named yoton
>>>
Original comment by keekyc...@gmail.com
on 21 Nov 2012 at 12:58
The fact that you cannot import yoton from normal Python is ok; yoton is a
packaged embedded in IEP. However, I do not understand why the IEP interpreter
cannot find it ...
Let's do some remote debugging (if you feel like it) ...
Can you open the start.py (the file name is in the error message of your
screenshot), and between "import sys" and "import yoton", add the following
line:
print('PATH', sys.path)
Next, restart the IEP interpreter (no need to restart IEP itself), and see what
it says?
Original comment by almar.klein@gmail.com
on 21 Nov 2012 at 1:38
aplogize for the late, here is output:
the "e:\\python27" is where python been installed and "E:\\Program Files\\iep"
is where iep been installed
('PATH', ['E:\\Program Files\\iep\\source\\iepkernel', 'e:\\python27\\lib\\site-
packages\\progressbar-2.3-py2.7.egg', 'e:\\python27\\lib\\site-packages\\bitsyau
th-0.1.2-py2.7.egg', 'e:\\python27\\lib\\site-packages\\genshi-0.6-py2.7-win32.e
gg', 'e:\\python27\\lib\\site-packages\\pil-1.1.7-py2.7-win32.egg', 'e:\\python2
7\\lib\\site-packages\\pyparsing-1.5.6-py2.7-win32.egg', 'e:\\python27\\lib\\sit
e-packages\\pycopia_net-1.0-py2.7.egg', 'e:\\python27\\lib\\site-packages\\pycop
ia_cli-1.0-py2.7.egg', 'e:\\python27\\lib\\site-packages\\pycopia_process-1.0-py
2.7.egg', 'e:\\python27\\lib\\site-packages\\pycopia_aid-1.0-py2.7.egg', 'e:\\py
thon27\\lib\\site-packages\\pycopia_core-1.0-py2.7.egg', 'e:\\python27\\lib\\sit
e-packages\\pycopia_utils-1.0-py2.7.egg', 'e:\\python27\\lib\\site-packages\\pyw
inauto-0.4.0-py2.7.egg', 'e:\\python27\\lib\\site-packages\\jinja2-2.6-py2.7.egg
', 'e:\\python27\\lib\\site-packages\\web.py-0.36-py2.7.egg', 'e:\\python27\\lib
\\site-packages\\bottle_werkzeug-0.1-py2.7.egg', 'e:\\python27\\lib\\site-packag
es\\buzhug-1.8-py2.7.egg', 'e:\\python27\\lib\\site-packages\\pyftpdlib-0.7.0-py
2.7.egg', 'e:\\python27\\lib\\site-packages\\pysftp-0.2.2-py2.7.egg', 'e:\\pytho
n27\\lib\\site-packages\\mrcli-0.3-py2.7.egg', 'e:\\python27\\lib\\site-packages
\\pytrie-0.1-py2.7.egg', 'e:\\python27\\lib\\site-packages\\notch.client-0.5-py2
.7.egg', 'e:\\python27\\lib\\site-packages\\pyyaml-3.10-py2.7-win32.egg', 'e:\\p
ython27\\lib\\site-packages\\jsonrpclib-0.1.3-py2.7.egg', 'e:\\python27\\lib\\si
te-packages\\eventlet-0.9.16-py2.7.egg', 'e:\\python27\\lib\\site-packages\\cisc
o_decrypt-0.8.3-py2.7.egg', 'e:\\python27\\lib\\site-packages\\ciscoconfparse-0.
8.3a-py2.7.egg', 'e:\\python27\\lib\\site-packages\\checker-1.5-py2.7.egg', 'e:\
\python27\\lib\\site-packages\\zope.dottedname-3.4.6-py2.7.egg', 'e:\\python27\\
lib\\site-packages\\mailinglogger-3.7.0-py2.7.egg', 'e:\\python27\\lib\\site-pac
kages\\execute-1.2-py2.7.egg', 'e:\\python27\\lib\\site-packages\\argparse-1.2.1
-py2.7.egg', 'e:\\python27\\lib\\site-packages\\colorama-0.2.4-py2.7.egg', 'e:\\
python27\\lib\\site-packages\\ping-0.2-py2.7.egg', 'e:\\python27\\lib\\site-pack
ages\\wmi-1.4.9-py2.7-win32.egg', 'e:\\python27\\lib\\site-packages\\pip-1.1-py2
.7.egg', 'e:\\python27\\lib\\site-packages\\graph-0.4-py2.7.egg', 'e:\\python27\
\lib\\site-packages\\nose-1.1.2-py2.7.egg', 'e:\\python27\\lib\\site-packages\\d
elegate-0.1-py2.7.egg', 'e:\\python27\\lib\\site-packages\\urwid-1.0.1-py2.7-win
32.egg', 'e:\\python27\\lib\\site-packages\\ipython-0.13-py2.7.egg', 'e:\\python
27\\lib\\site-packages\\atpy-0.9.6-py2.7.egg', 'e:\\python27\\lib\\site-packages
\\dbutils-1.1-py2.7.egg', 'e:\\python27\\lib\\site-packages\\yapsy-1.9.2_python3
-py2.7.egg', 'e:\\python27\\lib\\site-packages\\matplotlib-1.1.0-py2.7-win32.egg
', 'C:\\', 'C:\\Windows\\system32\\python27.zip', 'E:\\Python27\\lib\\site-packa
ges\\Orange\\orng', 'e:\\python27\\DLLs', 'e:\\python27\\lib', 'e:\\python27\\li
b\\plat-win', 'e:\\python27\\lib\\lib-tk', 'e:\\python27', 'C:\\Users\\43349390\
\AppData\\Roaming\\Python\\Python27\\site-packages', 'e:\\python27\\lib\\site-pa
ckages', 'e:\\python27\\lib\\site-packages\\FontTools', 'e:\\python27\\lib\\site
-packages\\PIL', 'e:\\python27\\lib\\site-packages\\gtk-2.0', 'e:\\python27\\lib
\\site-packages', 'e:\\python27\\lib\\site-packages\\pythonutils', 'e:\\python27
\\lib\\site-packages\\win32', 'e:\\python27\\lib\\site-packages\\win32\\lib', 'e
:\\python27\\lib\\site-packages\\Pythonwin', 'e:\\python27\\lib\\site-packages\\
wx-2.8-msw-unicode'])
Original comment by keekyc...@gmail.com
on 26 Nov 2012 at 5:43
This is not a IEP issue but a system optimize issue:
http://stackoverflow.com/questions/4895966/changing-default-startup-directory-fo
r-command-prompt-in-windows-7
after i set above post suggeted about cmd, the IEP can not find the right in
subprocess path.
C:\>reg query "HKCU\Software\Microsoft\Command Processor" /v AutoRun
HKEY_CURRENT_USER\Software\Microsoft\Command Processor
AutoRun REG_EXPAND_SZ
^_____________this is OK
C:\>reg query "HKCU\Software\Microsoft\Command Processor" /v AutoRun
HKEY_CURRENT_USER\Software\Microsoft\Command Processor
AutoRun REG_EXPAND_SZ CD /D %CMDAUTORUNPATH%
^____________this making trouble
Almar, can it be patched in IEP start.py? thanks.
Original comment by keekyc...@gmail.com
on 26 Nov 2012 at 7:10
Ah, so if I understand this correctly then:
IEP adds an empty entry to PYTHONPATH and sets the current working directory
for the kernel process such that yoton can be imported. But apparently, the
current-directory is somehow overridden in your case.
Can you please test the following:
* in iep/source/iepcore/kernelbroker.py
* in function getEnvFromKernelInfo()
* Change "pythonPath = os.pathsep + pythonPath"
to "pythonPath = iep.iepDir + os.pathsep + pythonPath"
* Restart IEP
Original comment by almar.klein@gmail.com
on 26 Nov 2012 at 3:30
This issue was closed by revision a398e63a032c.
Original comment by almar.klein@gmail.com
on 26 Nov 2012 at 3:35
confirmed issue been solved by this revision, thank.
Original comment by keekyc...@gmail.com
on 27 Nov 2012 at 9:09
Original comment by almar.klein@gmail.com
on 28 Nov 2012 at 9:36
Original issue reported on code.google.com by
keekyc...@gmail.com
on 19 Nov 2012 at 6:50