fraoustin / Sublime2pdf

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

Error while calling the ToPdf command #1

Open n1k0 opened 11 years ago

n1k0 commented 11 years ago

Capture d e cran 2013-02-22 a 12 05 26

(using SublimeText 2, OSX ML)

fraoustin commented 11 years ago

can you send a text that generate error please?

n1k0 commented 11 years ago

Sure Capture d e cran 2013-02-22 a 13 51 22

fraoustin commented 11 years ago

can you remove an re-install plugin, i change a management of error

after can you send a screenshot of error

n1k0 commented 11 years ago

I'm now having this:

Capture d e cran 2013-02-23 a 11 38 18

Text version:

Traceback (most recent call last):   File "./2pdf.py", line 126, 
    in run   File "./2pdf.py", line 163, 
    in _run   File "/Users/niko/Library/Application Support/Sublime Text 2/Packages/Sublime2pdf/libs/rst2pdf-0.93.dev/rst2pdf/createpdf.py", line 186, 
    in __init__   File "/Users/niko/Library/Application Support/Sublime Text 2/Packages/Sublime2pdf/libs/rst2pdf-0.93.dev/rst2pdf/createpdf.py", line 281, 
    in loadStyles   File "/Users/niko/Library/Application Support/Sublime Text 2/Packages/Sublime2pdf/libs/rst2pdf-0.93.dev/rst2pdf/styles.py", line 473, 
    in __init__   File "/Users/niko/Library/Application Support/Sublime Text 2/Packages/Sublime2pdf/libs/reportlab-2.6/reportlab/lib/styles.py", line 190, 
    in __getitem__ KeyError: u"Style 'bodytext' not found in stylesheet"
fraoustin commented 11 years ago

this is not same error .... it's strange you can in file '/Users/niko/Library/Application Support/Sublime Text 2/Packages/Sublime2pdf/print.style' after "styles:" the bloc

bodytext:
  parent: normal
  spaceBefore: 6
  alignment: TA_JUSTIFY
  hyphenation: true
n1k0 commented 11 years ago

It didn't solve the issue :/ I tried to add the block using 3 different indentation levels with no luck, I keep getting the error

Edit: not the exact same error actually:

Traceback (most recent call last):   File "./2pdf.py", line 122, 
    in run   File "./2pdf.py", line 163, 
    in _run   File "/Users/niko/Library/Application Support/Sublime Text 2/Packages/Sublime2pdf/libs/rst2pdf-0.93.dev/rst2pdf/createpdf.py", line 186, 
    in __init__   File "/Users/niko/Library/Application Support/Sublime Text 2/Packages/Sublime2pdf/libs/rst2pdf-0.93.dev/rst2pdf/createpdf.py", line 281, 
    in loadStyles   File "/Users/niko/Library/Application Support/Sublime Text 2/Packages/Sublime2pdf/libs/rst2pdf-0.93.dev/rst2pdf/styles.py", line 523, 
    in __init__   File "/Users/niko/Library/Application Support/Sublime Text 2/Packages/Sublime2pdf/libs/rst2pdf-0.93.dev/rst2pdf/styles.py", line 549, 
    in __getitem__   File "/Users/niko/Library/Application Support/Sublime Text 2/Packages/Sublime2pdf/libs/reportlab-2.6/reportlab/lib/styles.py", line 190, 
    in __getitem__ KeyError: "Style 'normal' not found  in stylesheet"

Edit2: BTW, I didn't found print.style in /Users/niko/Library/Application Support/Sublime Text 2/Packages/Sublime2pdf/print.style but in /Users/niko/Library/Application Support/Sublime Text 2/Packages/2pdf/print.style

llanverygranger commented 11 years ago

I also get the same traceback. Thanks to the developers for putting in the effort though. I hope you manage to get a working version soon as this has huge potential :+1: