reflex-dev / reflex-examples

A repository full of Reflex example apps.
456 stars 352 forks source link

counter example: reflex (0.1.34) run failed for the first version of reflex counter #122

Closed milochen0418 closed 1 year ago

milochen0418 commented 1 year ago
Traceback (most recent call last):
  File "/Users/milochen/anaconda3/envs/rx/bin/rf", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/milochen/anaconda3/envs/rx/lib/python3.11/site-packages/typer/main.py", line 214, in __call__
    return get_command(self)(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/rx/lib/python3.11/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/rx/lib/python3.11/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/rx/lib/python3.11/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/rx/lib/python3.11/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/rx/lib/python3.11/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/rx/lib/python3.11/site-packages/typer/main.py", line 532, in wrapper
    return callback(**use_params)  # type: ignore
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/rx/lib/python3.11/site-packages/reflex/rf.py", line 126, in run
    app = prerequisites.get_app()
          ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/rx/lib/python3.11/site-packages/reflex/utils/prerequisites.py", line 105, in get_app
    return __import__(module, fromlist=(constants.APP_VAR,))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named '.'
masenf commented 1 year ago

@milochen0418 can you test on reflex ~= 0.2.0a1, which is the latest candidate

milochen0418 commented 1 year ago

@milochen0418 can you test on reflex ~= 0.2.0a1, which is the latest candidate

@masenf Nice ~ after testing, this issue is solved in reflex==0.2.0a1 .

Screenshot 2023-06-30 at 2 32 09 PM
milochen0418 commented 1 year ago

It is solved in reflex==0.2.0