GithubHelp home page GithubHelp logo

jc-packaging's People

Contributors

kellyjonbrazil avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

jc-packaging's Issues

The --yaml parser doesn't run for me on ubuntu 18.04 when using the deb or the .tar.gz file

For these files

jc-1.14.1-1.x86_64.deb
jc-1.14.1-linux-x86_64.tar.gz

For this test

 printf 'blah:\n  thing: stuff' | ./jc -d --yaml

I get this error

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "jc.cli", line 456, in main
  File "jc.parsers.yaml", line 137, in parse
  File "ruamel.yaml.main", line 89, in __init__
  File "ruamel.yaml.main", line 633, in official_plug_ins
NameError: name '__file__' is not defined

The pypi install is fine which is why I think it's a packaging bug - not a bug in jc as such.
But I'm happy to open an issue on the jc project if you prefer.

I'm not sure how you would fix it since ruamel.yaml does this

    # helpers
    def official_plug_ins(self):
        # type: () -> Any
        bd = os.path.dirname(__file__)
        gpbd = os.path.dirname(os.path.dirname(bd))
        res = [x.replace(gpbd, "")[1:-3] for x in glob.glob(bd + '/*/__plug_in__.py')]
        return res

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.