GithubHelp home page GithubHelp logo

jessatehcrow / lynie Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 41 KB

A easy to use oneline-icator for python

License: MIT License

Python 100.00%
python oneliner python3 hacktoberfest2021 hacktober

lynie's Issues

Failure to convert script.

Describe the bug
It doesn't like certain script formatting.

To Reproduce
Steps to reproduce the behavior:
Msg me on discord for my exact steps as they include some test source code that I'd rather remain private for the time being
GalacticB69#4729

Expected behavior
It doesn't error and produces a functioning script.

Additional context
Traceback:

Traceback (most recent call last):
  File "/****/lynie/example.py", line 8, in <module>
    line = lynie.parse_file(filename)
  File "/****/lynie/lynie/lynie.py", line 408, in parse_file
    out = _parse_body(parsed_ast.body,force_list=True)
  File "/****/lynie/lynie/lynie.py", line 387, in _parse_body
    temp = parser[type(x)](x)
  File "/****/lynie/lynie/lynie.py", line 346, in _def_parse
    code = _parse_body(body.body)
  File "/****/lynie/lynie/lynie.py", line 387, in _parse_body
    temp = parser[type(x)](x)
  File "/****/lynie/lynie/lynie.py", line 310, in _for_parse
    out = _parse_body(body.body)
  File "/****/lynie/lynie/lynie.py", line 387, in _parse_body
    temp = parser[type(x)](x)
  File "/****/lynie/lynie/lynie.py", line 286, in _assign_parse
    values = [[_get_values(x),type(x)] for x in body.value.elts] if isinstance(body.value,ast.Tuple) else [_get_values(body.value),type(body.value)]
  File "/****/lynie/lynie/lynie.py", line 262, in _get_values
    out = [get_value[type(val)](val,raw) for val in types]
  File "/****/lynie/lynie/lynie.py", line 262, in <listcomp>
    out = [get_value[type(val)](val,raw) for val in types]
  File "/****/lynie/lynie/lynie.py", line 57, in _get_call
    args = _get_values(*call.args)
  File "/****/lynie/lynie/lynie.py", line 262, in _get_values
    out = [get_value[type(val)](val,raw) for val in types]
  File "/****/lynie/lynie/lynie.py", line 262, in <listcomp>
    out = [get_value[type(val)](val,raw) for val in types]
KeyError: <class 'ast.GeneratorExp'>

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.