Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#13 bug with N++ Zen Coding Python

open
5
2013-01-25
2012-01-18
Anonymous
No

I have an error wen do [Ctrl] + [Enter] on a line contain "div#bkgd"

Pyton log say :
<code>
Python 2.7.1 (release27-maint-npp, Feb 6 2011, 16:58:20) [MSC v.1500 32 bit (Intel)]
Initialisation took 63ms
Ready.
Traceback (most recent call last):
File "<string>", line 2, in <module>
ImportError: No module named npp_zen_coding
Traceback (most recent call last):
File "<string>", line 1, in <module>
NameError: name 'npp_zen_coding' is not defined
</code>

Versions :
N++ : 5.9.8
Python Script : 0.9.2
Zen Coding - Python : 0.7.0.1

Discussion

  • This almost certainly isn't a bug.

    Things to check:
    Type
    sys.path

    on the console, and check that your %APPDATA%\Notepad++\plugins\ZenCodingPython directory is in there (obviously with the %APPDATA% expanded to your user appdata directory)

    Did you install Zen Coding with Plugin Manager?

    Does your username have any extended (non-latin) characters in it? This can sometimes be a problem for Python. If that's the case, copy the ZenCodingPython directory to your Notepad++ directory (under Program files), and add the path to sys.path in your startup.py script in Python Script:

    sys.path.insert(0, r'c:\Program Files\Notepad++\ZenCodingPython')

    As you submitted this as anonymous, if there's no feedback after 7 days, I'll close it. You're best of requesting help on something like this on the forums.

    Cheers,
    Dave.

     

  • Anonymous
    2012-01-27

    Thank's !
    it's works !
    it's due to my name ("Clément")