fraoustin / Sublime2pdf

/!\ inactive /!\ plugin for sublime generate a pdf file for print
11 stars 3 forks source link

To PDF command grayed out #2

Open Sharlock93 opened 11 years ago

Sharlock93 commented 11 years ago

when i install the plugin it works okay, but when i restart this happens Untitled

fraoustin commented 11 years ago

Have you a error in console ( press Ctrl+`) after start sublimeText ? you work on windows?

Sharlock93 commented 11 years ago

yes im using windows.

this error happens:

Reloading plugin C:\Users\Sharo\AppData\Roaming\Sublime Text 2\Packages\2pdf\2pdf.py Traceback (most recent call last): File ".\sublime_plugin.py", line 62, in reload_plugin File ".\2pdf.py", line 64, in import rst2pdf.createpdf File "C:\Users\Sharo\AppData\Roaming\Sublime Text 2\Packages\2pdf\libs\rst2pdf-0.93.dev\rst2pdf\createpdf.py", line 45, in from opt_imports import psyco File "C:\Users\Sharo\AppData\Roaming\Sublime Text 2\Packages\2pdf\libs\rst2pdf-0.93.dev\rst2pdf\opt_imports.py", line 50, in from reportlab.platypus.paragraph import Paragraph File "C:\Users\Sharo\AppData\Roaming\Sublime Text 2\Packages\2pdf\libs\reportlab-2.6\reportlab\platypusinit.py", line 10, in from reportlab.platypus.paragraph import Paragraph, cleanBlockQuotedText, ParaLines File "C:\Users\Sharo\AppData\Roaming\Sublime Text 2\Packages\2pdf\libs\reportlab-2.6\reportlab\platypus\paragraph.py", line 9, in from unicodedata import category ImportError: DLL load failed: %1 is not a valid Win32 application.

fraoustin commented 11 years ago

you work on windows 8, 7, XP?

Sharlock93 commented 11 years ago

windows 7

fraoustin commented 11 years ago

if you have python27 on computer, can you copied :

Sharlock93 commented 11 years ago

copied, but not fixed

fraoustin commented 11 years ago

I can not reproduce your problem can you

Sharlock93 commented 11 years ago

okay i first removed 2pdf and trashed C:\Users\Sharo\AppData\Roaming\Sublime Text 2\Packages\2pdf then started sublime and installed 2pdf, here is the log installing 2pdf, it works but when i restart it stops working, here is the log after restart

fraoustin commented 11 years ago

Sublime 2 use python 2.6 and f you have python26 (and not 27) on computer, can you copied :

C:\python26\libs\unicodedata.lib in C:\Users\Sharo\AppData\Roaming\Sublime Text 2\Packages\2pdf\libs\
C:\Python26\DLLs\unicodedata.pyd in C:\Users\Sharo\AppData\Roaming\Sublime Text 2\Packages\2pdf\libs\
Sharlock93 commented 11 years ago

Yup that fixed it...thanks

fraoustin commented 11 years ago

you work on 64bits ?

Sharlock93 commented 11 years ago

yes

fraoustin commented 11 years ago

can you send me your unicodedata.lib and unicodedata.pyd

Sharlock93 commented 11 years ago

sure, the files were from python 2.6.5 x64, i download it from this website unicodedata

lawlist commented 11 years ago

Grayed out on OSX 10.6.8 with ST2.

azur29 commented 10 years ago

Hello,

Same things for me. Windows7 64 bit (french) 2pdf was greyed. after replacing the file with the link giving above by Sharlock93, all became ok. Thanks for this great functionality.