Menu

Running opencobolide

Anonymous
2022-09-09
2022-09-09
  • Anonymous

    Anonymous - 2022-09-09

    When I attempt to invoke the opecobolide from the command line I get the output in the attached file.

    How do I overcome these errors?

    Thanks in advance
    Arch

     
  • Simon Sobisch

    Simon Sobisch - 2022-09-09

    Your error output is (quoted here so people are able to search for it):

    [archman@archlinux OpenCobolIDE-4.7.6]$ opencobolide
    Traceback (most recent call last):
      File "/usr/bin/opencobolide", line 33, in <module>
        sys.exit(load_entry_point('OpenCobolIDE==4.7.6', 'gui_scripts', 'opencobolide')())
      File "/usr/lib/python3.10/site-packages/open_cobol_ide/main.py", line 31, in main
        from open_cobol_ide.app import Application
      File "/usr/lib/python3.10/site-packages/open_cobol_ide/app.py", line 14, in <module>
        import qcrash.api as qcrash
      File "/usr/lib/python3.10/site-packages/open_cobol_ide/extlibs/qcrash/api.py", line 7, in <module>
        from . import backends
      File "/usr/lib/python3.10/site-packages/open_cobol_ide/extlibs/qcrash/backends/__init__.py", line 16, in <module>
        from .github import GithubBackend
      File "/usr/lib/python3.10/site-packages/open_cobol_ide/extlibs/qcrash/backends/github.py", line 7, in <module>
        import keyring
      File "/usr/lib/python3.10/site-packages/open_cobol_ide/extlibs/keyring/__init__.py", line 6, in <module>
        from .core import (set_keyring, get_keyring, set_password, get_password,
      File "/usr/lib/python3.10/site-packages/open_cobol_ide/extlibs/keyring/core.py", line 14, in <module>
        from . import backend
      File "/usr/lib/python3.10/site-packages/open_cobol_ide/extlibs/keyring/backend.py", line 18, in <module>
        from .util import properties
      File "/usr/lib/python3.10/site-packages/open_cobol_ide/extlibs/keyring/util/properties.py", line 1, in <module>
        from collections import Callable
    ImportError: cannot import name 'Callable' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
    [archman@archlinux OpenCobolIDE-4.7.6]$
    

    So you've got a python error; it likely works to run it with an older version of python (3.6?), which you could install next to your system installation and explicit setup before calling OCIDE.

    ... or, consider to switch from the archived, not maintained any more program to a maintained; in this case I'd suggest to have a look at Gix IDE (from a quick test not yet as mature as OCIDE was, but improving) or to use vscode with COBOL specific extensions.
    I personally use a setup with VSCodium + [old] bitlang.gnucobol and bitlang.cobol (newer have an anti-feature of disabling itself if any other extension that may handle COBOL parts is enabled - especially debugging which are also registered by general purpose debugging extensions - is enabled, with the exception of the proprietary one from Micro Focus; you may could go with current bitlang.gnucobol only [which misses some features but the author may add it if you create an issue for what you miss]) + project specific task definition to build and recognize cobc's output better than OCIDE did.

     

Anonymous
Anonymous

Add attachments
Cancel