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

String assignment to imdat[0] #1

Open
itsbenweeks opened this issue Apr 28, 2014 · 0 comments
Open

String assignment to imdat[0] #1

itsbenweeks opened this issue Apr 28, 2014 · 0 comments

Comments

@itsbenweeks
Copy link

One staff member has been having issues when attempting to test his installation with quadratic.tex and receives the following error:

Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/bin/latex2dnd", line 9, in <module>
    load_entry_point('latex2dnd==0.9.4', 'console_scripts', 'latex2dnd')()
  File "/Users/user/Documents/mitx-vagrant/data/content-mit-8851/src/latex2dnd/latex2dnd/main.py", line 618, in CommandLine
    can_reuse=opts.can_reuse)
  File "/Users/user/Documents/mitx-vagrant/data/content-mit-8851/src/latex2dnd/latex2dnd/main.py", line 298, in __init__
    self.generate_dnd_image()
  File "/Users/user/Documents/mitx-vagrant/data/content-mit-8851/src/latex2dnd/latex2dnd/main.py", line 433, in generate_dnd_image
    self.dndpi = PageImage(self.pdffn, page=1, imfn=self.solimfn, dpi=self.dpi, verbose=self.imverbose)
  File "/Users/user/Documents/mitx-vagrant/data/content-mit-8851/src/latex2dnd/latex2dnd/main.py", line 91, in __init__
    imx = int(imdat[0])
ValueError: invalid literal for int() with base 10: 'x'

In my tests this is a number, not a alphabet character, so I do not receive this error.

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

1 participant