Skip to content

Commit 6fe881c

Browse files
committed
Fix pyreadline error lukas-blecher#252
1 parent 44d70eb commit 6fe881c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pix2tex/cli.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import yaml
1313
import re
1414

15-
with suppress(ImportError):
15+
with suppress(ImportError, AttributeError):
1616
import readline
1717

1818
import numpy as np

setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
setuptools.setup(
3030
name='pix2tex',
31-
version='0.0.29',
31+
version='0.0.30',
3232
description='pix2tex: Using a ViT to convert images of equations into LaTeX code.',
3333
long_description=long_description,
3434
long_description_content_type='text/markdown',
@@ -65,6 +65,7 @@
6565
'pandas>=1.0.0',
6666
'timm==0.5.4',
6767
'albumentations>=0.5.2',
68+
'pyreadline3>=3.4.1; platform_system=="Windows"',
6869
],
6970
extras_require={
7071
'all': gui+api+train+highlight,

0 commit comments

Comments
 (0)