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

Error while calling the ToPdf command #1

Open
n1k0 opened this issue Feb 22, 2013 · 7 comments
Open

Error while calling the ToPdf command #1

n1k0 opened this issue Feb 22, 2013 · 7 comments
Labels

Comments

@n1k0
Copy link

n1k0 commented Feb 22, 2013

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

(using SublimeText 2, OSX ML)

@fraoustin
Copy link
Owner

can you send a text that generate error please?

@n1k0
Copy link
Author

n1k0 commented Feb 22, 2013

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

@fraoustin
Copy link
Owner

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

after can you send a screenshot of error

@n1k0
Copy link
Author

n1k0 commented Feb 23, 2013

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

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

n1k0 commented Feb 23, 2013

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

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 👍

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

No branches or pull requests

3 participants