question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

trying to get running...

See original GitHub issue

Hi. I am trying to get this running on Windows 10 using Visual Studio Code.

If cd into the repo and run a command like: eynollah -i C:/Users/Scott/Desktop/Python2/Kpages/Pages/076v.jpg -o C:/Users/Scott/Desktop/Python2/Kpages -m C:/Users/Scott/Desktop/Python2/eynollah/models_eynollah -si C:/Users/Scott/Desktop/Python2/Kpages it doesn’t appear to run. A new command prompt comes up after a couple of seconds – but no output and no error message.

Any guidance would be appreciated.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:53 (36 by maintainers)

github_iconTop GitHub Comments

2reactions
kbacommented, Feb 17, 2021

🎉 good to hear it’s working for you now and thanks for documenting the steps you needed. Good to close an issue with an actual solution.

About make models, you don’t need to go through make just for that, all that target does is

wget 'https://qurator-data.de/eynollah/models_eynollah.tar.gz'
tar xf models_eynollah.tar.gz

i.e. download the tarball and extract it, nothing fancy.

Once the OCR-D bindings are in place and https://github.com/OCR-D/core/pull/668 is merged, you will be able to download the models with ocrd resmgr download ocrd-eynollah '*'.

1reaction
SB2020-eyecommented, Feb 15, 2021

Thanks to everyone weighing in with input on this.

I made a fresh conda environment (Windows 10 OS) and took another go at it. I needed to install pip to install eynollah. But after some fails, I figured out that pip installed python 3.9. So I installed python 3.6. pip install . worked after that – but not until I manually made the changes referenced above (#18).

I used msys64 + mingw64 to install the models successfully.

Running eynollah -i C:/Users/Scott/Desktop/Python2/K/eyn_test/F073r.jpg -o C:/Users/Scott/Desktop/Python2/K/eyn_test/results -m C:/users/scott/desktop/python2/eynollah/models_eynollah -si C:/users/scott/desktop/python2/K/eyn_test/results I got the following

File "C:\ProgramData\Miniconda3\envs\eenv\Scripts\eynollah.exe\__main__.py", line 4, in <module>
  File "c:\programdata\miniconda3\envs\eenv\lib\site-packages\sbb_newspapers_org_image\cli.py", line 2, in <module>
    from sbb_newspapers_org_image.eynollah import eynollah
  File "c:\programdata\miniconda3\envs\eenv\lib\site-packages\sbb_newspapers_org_image\eynollah.py", line 31, in <module>
    from shapely import geometry
  File "c:\programdata\miniconda3\envs\eenv\lib\site-packages\shapely\geometry\__init__.py", line 4, in <module>
    from .base import CAP_STYLE, JOIN_STYLE
    from shapely.coords import CoordinateSequence
  File "c:\programdata\miniconda3\envs\eenv\lib\site-packages\shapely\coords.py", line 8, in <module>
    from shapely.geos import lgeos
  File "c:\programdata\miniconda3\envs\eenv\lib\site-packages\shapely\geos.py", line 154, in <module>
    _lgeos = CDLL(os.path.join(sys.prefix, 'Library', 'bin', 'geos_c.dll'))
  File "c:\programdata\miniconda3\envs\eenv\lib\ctypes\__init__.py", line 348, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found

After some dead ends, I googled the error line plus “shapely,” and found a suggestion at another repo to simply conda install -c conda-forge shapely I no longer got that specific error. And eynollah --help works. (Yay!)

However, running the same command above, now I get:

The system cannot find the path specified.
'identify' is not recognized as an internal or external command,
operable program or batch file.
Traceback (most recent call last):
  File "c:\programdata\miniconda3\envs\eenv\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\programdata\miniconda3\envs\eenv\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\ProgramData\Miniconda3\envs\eenv\Scripts\eynollah.exe\__main__.py", line 7, in <module>
  File "c:\programdata\miniconda3\envs\eenv\lib\site-packages\click\core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "c:\programdata\miniconda3\envs\eenv\lib\site-packages\click\core.py", line 782, in main
    rv = self.invoke(ctx)
  File "c:\programdata\miniconda3\envs\eenv\lib\site-packages\click\core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "c:\programdata\miniconda3\envs\eenv\lib\site-packages\click\core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "c:\programdata\miniconda3\envs\eenv\lib\site-packages\sbb_newspapers_org_image\cli.py", line 102, in main
    headers_off,
  File "c:\programdata\miniconda3\envs\eenv\lib\site-packages\sbb_newspapers_org_image\eynollah.py", line 2978, in run
    is_image_enhanced, img_org, img_res, num_col_classifier, num_column_is_classified = self.resize_and_enhance_image_with_column_classifier(is_image_enhanced)
  File "c:\programdata\miniconda3\envs\eenv\lib\site-packages\sbb_newspapers_org_image\eynollah.py", line 419, in resize_and_enhance_image_with_column_classifier
    dpi = self.check_dpi()
  File "c:\programdata\miniconda3\envs\eenv\lib\site-packages\sbb_newspapers_org_image\eynollah.py", line 298, in check_dpi
    return int(float(dpi))
ValueError: could not convert string to float:

I’ve triple-checked my paths, and they’re fine. And I’ve poked around to try to understand where the ValueError is coming from. But yet to no avail. Any suggestions?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Start Running - Well Guides - The New York Times
Starting a new running habit doesn't have to be hard. ... Instead, try on four or five running shoes, jog around the store...
Read more >
How to start running today: a beginner's guide - Runner's World
From a pre-run walk plan to a run-walk plan, here's how to get started. ... Whether you want to start getting active or...
Read more >
Running for Beginners: How to Get Started - Verywell Fit
Getting started with running can feel overwhelming to a beginner runner. Here are some of the basics of running to help you get...
Read more >
How to Start (or Get Back Into) Running - Men's Journal
Figure out why you're running · Don't get ahead of yourself · Build a base · One-month beginner's running schedule · Want more?...
Read more >
How To Start Running: A Guide for Beginners - Fleet Feet
Getting started is the hardest part. If you want to know how to start running, we compiled all our best advice here to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found