Skip to content
This repository has been archived by the owner on Mar 16, 2020. It is now read-only.

To PDF command grayed out #2

Open
Sharlock93 opened this issue Mar 6, 2013 · 16 comments
Open

To PDF command grayed out #2

Sharlock93 opened this issue Mar 6, 2013 · 16 comments

Comments

@Sharlock93
Copy link

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

@fraoustin
Copy link
Owner

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

@Sharlock93
Copy link
Author

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\platypus__init__.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
Copy link
Owner

you work on windows 8, 7, XP?

@Sharlock93
Copy link
Author

windows 7

@fraoustin
Copy link
Owner

if you have python27 on computer, can you copied :

  • C:\python27\libs\unicodedata.lib in C:\Users\Sharo\AppData\Roaming\Sublime Text 2\Packages\2pdf\libs\
  • C:\Python27\DLLs\unicodedata.pyd in C:\Users\Sharo\AppData\Roaming\Sublime Text 2\Packages\2pdf\libs\

@Sharlock93
Copy link
Author

copied, but not fixed

@fraoustin
Copy link
Owner

I can not reproduce your problem
can you

  • start sublime
  • remove package (by control package: remove package)
  • stop sublime
  • trash C:\Users\Sharo\AppData\Roaming\Sublime Text 2\Packages\2pdf
  • start sublime
  • install package 2pdf and test
  • restart sublime
  • test ...

@Sharlock93
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

Yup that fixed it...thanks

@fraoustin
Copy link
Owner

you work on 64bits ?

@Sharlock93
Copy link
Author

yes

@fraoustin
Copy link
Owner

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

@Sharlock93
Copy link
Author

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

@lawlist
Copy link

lawlist commented Mar 26, 2013

Grayed out on OSX 10.6.8 with ST2.

@azur29
Copy link

azur29 commented Nov 18, 2013

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants