Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import issues continue #17

Closed
seruum opened this issue Oct 2, 2018 · 2 comments
Closed

Import issues continue #17

seruum opened this issue Oct 2, 2018 · 2 comments

Comments

@seruum
Copy link

seruum commented Oct 2, 2018

I was about to open a ticket explaining the import issues I was having when I saw that some updates had already been made in regard to that. However, they still exist for me. I'm using 0.19.0, which I thought might be part of the problem, but I'm not certain.

If it helps, to get it to work, I moved all the nimPDF files into the first directory in nimble (nimpdf-0.4.2 I think) and then had to download the zip file and manually add the "private" directory to nimPNG. This looks like it may have been addressed already.

When I saw the new changes, I removed nimPDF using nimble and then re-installed it. I didn't go further after that because of time, but it looked to act the same as before in that "nimpdf could not be found".

FWIW, I'm and hobbyist noob, so I could be missing something.
Thank you

@jangko
Copy link
Owner

jangko commented Oct 3, 2018

well, I think you should import nimPDF/nimPDF, and not only import nimPDF.
this artefact from old days should be fixed someday, it causes a lot confusion

@seruum
Copy link
Author

seruum commented Oct 4, 2018

That worked.
I was trying to build/run the pdf_encoding_list.nim example. When I made the changes you mentioned it was able to compile. It ran fine in release mode, but in debug mode I got the following response.

pdf_encoding_list.nim(103) pdf_encoding_list
pdf_encoding_list.nim(95) main
nimPDF.nim(113) writePDF
page.nim(398) writePDF
page.nim(367) putCatalog
page.nim(318) putOutlines
page.nim(288) putOutlineItem
page.nim(165) putDestination
objects.nim(443) addElement
system.nim(3790) failedAssertImpl
system.nim(3783) raiseAssert
system.nim(2830) sysFatal
Error: unhandled exception: C:\Users\me\ .nimble\pkgs\nimPDF-0.4.2\nimpdf\objects.nim(443, 9) (val.objID and 0x80000000'i32) == 0 [AssertionError]
Error: execution of an external program failed: 'c:\Users\me\Projects\NimTest\pdf_encoding_list.exe '
The terminal process terminated with exit code: 1

Thanks again

@jangko jangko closed this as completed in 4acd842 Oct 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants