Home Download Buy Blog Forum Support

No Module Named Yaml

No Module Named Yaml

Postby banders on Sat Mar 17, 2012 7:32 pm


I'm trying to use the Yaml module in a plugin I'm writing, but I keep getting the error:
ImportError: No module named yaml

I'm on OS X. I have installed the Yaml module. When I go to the python command line, I can use the Yaml module just fine. But in the plugin, I get the error on the `import yaml` line.

Sorry, I'm really new to python.
Heres a few more details
"which python" => /Users/me/Developer/bin/python
Last line of yaml module install => Writing /Users/me/Developer/Cellar/python/2.7.2/lib/python2.7/site-packages/PyYAML-3.10-py2.7.egg-info

So it definitely looks like I'm not using the system-wide version of Python, which I'm assuming is used by Sublime Text(?).

So a few questions
1) What version of python does Sublime Text use?
2) Where is it installed
3) Is there anyway I can install the Yaml module there?
Posts: 1
Joined: Sat Mar 17, 2012 7:26 pm

Re: No Module Named Yaml

Postby agibsonsw on Sat Mar 17, 2012 11:39 pm

Sublime Text installs its own copy of Python. On my Windows computer it's at:

C:\Program Files (x86)\Sublime Text 2\python26.zip

You could copy Yaml into your corresponding folder, but it will (possibly..) be found if you store it in your Packages folder (User or Python).

Alternatively, you may need to find a path setting :?:
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
Posts: 901
Joined: Fri Jan 27, 2012 9:11 pm

Return to Technical Support

Who is online

Users browsing this forum: dyekvar, Exabot [Bot], Yahoo [Bot] and 25 guests