smol-ai / developer

the first library to let you embed a developer agent in your own app!
https://twitter.com/SmolModels
MIT License
11.81k stars 1.03k forks source link

SyntaxError: invalid decimal literal #45

Open hawkmax opened 1 year ago

hawkmax commented 1 year ago

I keep running into this error. Any Idea what this means ?

Traceback (most recent call last): File "C:\Users\User\Desktop\developer\main_no_modal.py", line 244, in main(prompt, directory, file) File "C:\Users\User\Desktop\developer\main_no_modal.py", line 141, in main list_actual = ast.literal_eval(filepaths_string) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python311\Lib\ast.py", line 64, in literal_eval node_or_string = parse(node_or_string.lstrip(" \t"), mode='eval') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Python311\Lib\ast.py", line 50, in parse return compile(source, filename, mode, flags, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 18

hawkmax commented 1 year ago

I have tried running this with Modal as well.

stagsz commented 1 year ago

Getting the same results.

swyxio commented 1 year ago

sorry about that - this is the api returning non json. its a prompt issue. we will improve this

Smit-Parmar commented 1 year ago

How to reproduce this issue? May be I can help.