reflex icon indicating copy to clipboard operation
reflex copied to clipboard

Install reflex in windows 11 with WSL

Open jesusjuarezrdz opened this issue 2 years ago β€’ 11 comments

Describe the bug I tried to install reflex, but i can't.

To Reproduce i've installed the wsl on windows 11,

i was folow steps to install but i have no succes

I have this messages: after i typed: pip install reflex

Using cached python-engineio-0.6.0.tar.gz (10 kB) Preparing metadata (setup.py) ... done Using cached python-engineio-0.5.1.tar.gz (9.9 kB) Preparing metadata (setup.py) ... done Using cached python-engineio-0.5.0.tar.gz (9.9 kB) Preparing metadata (setup.py) ... done Using cached python-engineio-0.4.0.tar.gz (9.4 kB) Preparing metadata (setup.py) ... done Collecting eventlet>=0.17.4 Using cached eventlet-0.35.0-py3-none-any.whl (359 kB) Collecting python-engineio!=4.6.0 Using cached python-engineio-0.3.1.tar.gz (9.2 kB) Preparing metadata (setup.py) ... done Using cached python-engineio-0.3.0.tar.gz (9.2 kB) Preparing metadata (setup.py) ... done Using cached python-engineio-0.2.0.tar.gz (9.1 kB) Preparing metadata (setup.py) ... done Using cached python-engineio-0.1.0.tar.gz (7.3 kB) Preparing metadata (setup.py) ... done INFO: pip is looking at multiple versions of pydantic to determine which version is compatible with other requirements. This could take a while. Collecting pydantic<2.0.0,>=1.10.2 Using cached pydantic-1.10.13-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB) Using cached pydantic-1.10.12-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB) Using cached pydantic-1.10.11-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB) Using cached pydantic-1.10.10-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB) Using cached pydantic-1.10.9-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB) Using cached pydantic-1.10.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB) Using cached pydantic-1.10.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB) INFO: pip is looking at multiple versions of pydantic to determine which version is compatible with other requirements. This could take a while. Using cached pydantic-1.10.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB) Using cached pydantic-1.10.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB) Using cached pydantic-1.10.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB) Using cached pydantic-1.10.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.8 MB) INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracking for guidance. If you want to abort this run, press Ctrl + C. INFO: pip is looking at multiple versions of psutil to determine which version is compatible with other requirements. This could take a while. Collecting psutil<6.0.0,>=5.9.4 Using cached psutil-5.9.7-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (285 kB) Using cached psutil-5.9.6-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (283 kB) Using cached psutil-5.9.5-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (282 kB) Using cached psutil-5.9.4-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (280 kB) INFO: pip is looking at multiple versions of psutil to determine which version is compatible with other requirements. This could take a while. INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracking for guidance. If you want to abort this run, press Ctrl + C.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Specifics (please complete the following information):

  • Python Version: 3.10
  • Reflex Version: 0.39
  • OS: Windows 11, with WSL (Ubuntu distribution)
  • Browser (Optional):

Additional context

jesusjuarezrdz avatar Jan 29 '24 01:01 jesusjuarezrdz

try upgrading your pip version(pip install -U pip)

ElijahAhianyo avatar Jan 29 '24 14:01 ElijahAhianyo

I tried before i try to install rΓ©flex,

[photo]

Jesus Juarez CTO

[icon] +52(33)18160155 ext. 2002tel:+52(33)18160155ext.2002

[icon] +52 (33)18255426tel:+52(33)18255426

[icon] @.@.>

[icon] Zapopan, Jalisco, C.P. 45019

[Custom Button App]https://www.etico.mx/privacidad.htm

De: Elijah Ahianyo @.> Enviado el: lunes, 29 de enero de 2024 08:50 a. m. Para: reflex-dev/reflex @.> CC: Jesus Juarez @.>; Author @.> Asunto: Re: [reflex-dev/reflex] Install reflex in windows 11 with WSL (Issue #2473)

try upgrading your pip version(pip install -U pip)

β€” Reply to this email directly, view it on GitHubhttps://github.com/reflex-dev/reflex/issues/2473#issuecomment-1914849463, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BFDFKBIIGSZFBMNNPHLGGZLYQ6ZITAVCNFSM6AAAAABCOTTFDOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJUHA2DSNBWGM. You are receiving this because you authored the thread.Message ID: @.@.>>

jesusjuarezrdz avatar Jan 29 '24 15:01 jesusjuarezrdz

I tried before i try to install rΓ©flex, [photo] Jesus Juarez CTO [icon] +52(33)18160155 ext. 2002tel:+52(33)18160155ext.2002 [icon] +52 (33)18255426tel:+52(33)18255426 [icon] @.@.> [icon] Zapopan, Jalisco, C.P. 45019 [Custom Button App]https://www.etico.mx/privacidad.htm De: Elijah Ahianyo @.> Enviado el: lunes, 29 de enero de 2024 08:50 a. m. Para: reflex-dev/reflex @.> CC: Jesus Juarez @.>; Author @.> Asunto: Re: [reflex-dev/reflex] Install reflex in windows 11 with WSL (Issue #2473) try upgrading your pip version(pip install -U pip) β€” Reply to this email directly, view it on GitHub<#2473 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BFDFKBIIGSZFBMNNPHLGGZLYQ6ZITAVCNFSM6AAAAABCOTTFDOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJUHA2DSNBWGM. You are receiving this because you authored the thread.Message ID: @.@.>>

Not sure Im able to see the attached photo to this message, but can you show the output of when you do pip --version?

ElijahAhianyo avatar Jan 29 '24 15:01 ElijahAhianyo

Thanks for your quick response, it still equal

Collecting eventlet>=0.17.4 Using cached eventlet-0.35.0-py3-none-any.whl (359 kB) Collecting python-engineio!=4.6.0 Using cached python-engineio-0.3.1.tar.gz (9.2 kB) Preparing metadata (setup.py) ... done Using cached python-engineio-0.3.0.tar.gz (9.2 kB) Preparing metadata (setup.py) ... done Using cached python-engineio-0.2.0.tar.gz (9.1 kB) Preparing metadata (setup.py) ... done Using cached python-engineio-0.1.0.tar.gz (7.3 kB) Preparing metadata (setup.py) ... done INFO: pip is looking at multiple versions of pydantic to determine which version is compatible with other requirements. This could take a while. Collecting pydantic<2.0.0,>=1.10.2 Using cached pydantic-1.10.13-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB) Using cached pydantic-1.10.12-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB) Using cached pydantic-1.10.11-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB) Using cached pydantic-1.10.10-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB) Using cached pydantic-1.10.9-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB) Using cached pydantic-1.10.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB) Using cached pydantic-1.10.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB) INFO: pip is looking at multiple versions of pydantic to determine which version is compatible with other requirements. This could take a while. Using cached pydantic-1.10.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB) Using cached pydantic-1.10.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB) Using cached pydantic-1.10.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB) Using cached pydantic-1.10.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.8 MB) INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracking for guidance. If you want to abort this run, press Ctrl + C.

It takes too long. Actually in Windows doesn’t have problem, only the reload desn’t work

[photo]

Jesus Juarez CTO

[icon] +52(33)18160155 ext. 2002tel:+52(33)18160155ext.2002

[icon] +52 (33)18255426tel:+52(33)18255426

[icon] @.@.>

[icon] Zapopan, Jalisco, C.P. 45019

[Custom Button App]https://www.etico.mx/privacidad.htm

De: Elijah Ahianyo @.> Enviado el: lunes, 29 de enero de 2024 08:50 a. m. Para: reflex-dev/reflex @.> CC: Jesus Juarez @.>; Author @.> Asunto: Re: [reflex-dev/reflex] Install reflex in windows 11 with WSL (Issue #2473)

try upgrading your pip version(pip install -U pip)

β€” Reply to this email directly, view it on GitHubhttps://github.com/reflex-dev/reflex/issues/2473#issuecomment-1914849463, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BFDFKBIIGSZFBMNNPHLGGZLYQ6ZITAVCNFSM6AAAAABCOTTFDOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJUHA2DSNBWGM. You are receiving this because you authored the thread.Message ID: @.@.>>

jesusjuarezrdz avatar Jan 30 '24 02:01 jesusjuarezrdz

I have the same issue. It's hung up in the same spot. It was also very slow trying to resolve pydantic. I will start gathering some details.

RebelSyntax avatar Jan 30 '24 21:01 RebelSyntax

I have the same issue. It's hung up in the same spot. It was also very slow trying to resolve pydantic. I will start gathering some details.

Did you also try updating your pip version? What's the output of when you do pip --version?

ElijahAhianyo avatar Jan 30 '24 22:01 ElijahAhianyo

I have the same issue. It's hung up in the same spot. It was also very slow trying to resolve pydantic. I will start gathering some details.

Did you also try updating your pip version? What's the output of when you do pip --version?

No, I did not. Here is the output pip 22.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10)

after install it's

pip 23.3.2 from /home/myusername/.local/lib/python3.10/site-packages/pip (python 3.10)

let me see what happens next. I will let you know.

RebelSyntax avatar Jan 30 '24 22:01 RebelSyntax

Great, super fast. I can move on now. @ElijahAhianyo thanks for your quick response.

RebelSyntax avatar Jan 30 '24 22:01 RebelSyntax

I’ve already upgraded pip, but somethink was broke:

reflex init ──────────────────────────────────────────────── Initializing link_bio ───────────────────────────────────────────────── Traceback (most recent call last): File "/mnt/c/Users/JesusJuarez/Documents/Python/Pruebas_Reflex/link-bio/.venv/bin/reflex", line 8, in sys.exit(cli()) File "/mnt/c/Users/JesusJuarez/Documents/Python/Pruebas_Reflex/link-bio/.venv/lib/python3.10/site-packages/typer/main.py", line 328, in call raise e File "/mnt/c/Users/JesusJuarez/Documents/Python/Pruebas_Reflex/link-bio/.venv/lib/python3.10/site-packages/typer/main.py", line 311, in call return get_command(self)(*args, **kwargs) File "/mnt/c/Users/JesusJuarez/Documents/Python/Pruebas_Reflex/link-bio/.venv/lib/python3.10/site-packages/click/core.py", line 1157, in call return self.main(*args, **kwargs) File "/mnt/c/Users/JesusJuarez/Documents/Python/Pruebas_Reflex/link-bio/.venv/lib/python3.10/site-packages/typer/core.py", line 778, in main return _main( File "/mnt/c/Users/JesusJuarez/Documents/Python/Pruebas_Reflex/link-bio/.venv/lib/python3.10/site-packages/typer/core.py", line 216, in _main rv = self.invoke(ctx) File "/mnt/c/Users/JesusJuarez/Documents/Python/Pruebas_Reflex/link-bio/.venv/lib/python3.10/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/mnt/c/Users/JesusJuarez/Documents/Python/Pruebas_Reflex/link-bio/.venv/lib/python3.10/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, **ctx.params) File "/mnt/c/Users/JesusJuarez/Documents/Python/Pruebas_Reflex/link-bio/.venv/lib/python3.10/site-packages/click/core.py", line 783, in invoke return __callback(*args, **kwargs) File "/mnt/c/Users/JesusJuarez/Documents/Python/Pruebas_Reflex/link-bio/.venv/lib/python3.10/site-packages/typer/main.py", line 683, in wrapper return callback(**use_params) # type: ignore File "/mnt/c/Users/JesusJuarez/Documents/Python/Pruebas_Reflex/link-bio/.venv/lib/python3.10/site-packages/reflex/reflex.py", line 123, in init _init(name, template, loglevel) File "/mnt/c/Users/JesusJuarez/Documents/Python/Pruebas_Reflex/link-bio/.venv/lib/python3.10/site-packages/reflex/reflex.py", line 94, in _init prerequisites.initialize_frontend_dependencies() File "/mnt/c/Users/JesusJuarez/Documents/Python/Pruebas_Reflex/link-bio/.venv/lib/python3.10/site-packages/reflex/utils/prerequisites.py", line 834, in initialize_frontend_dependencies processes.run_concurrently(install_node, install_bun) File "/mnt/c/Users/JesusJuarez/Documents/Python/Pruebas_Reflex/link-bio/.venv/lib/python3.10/site-packages/reflex/utils/processes.py", line 199, in run_concurrently with run_concurrently_context(*fns): File "/usr/lib/python3.10/contextlib.py", line 142, in exit next(self.gen) File "/mnt/c/Users/JesusJuarez/Documents/Python/Pruebas_Reflex/link-bio/.venv/lib/python3.10/site-packages/reflex/utils/processes.py", line 186, in run_concurrently_context task.result() File "/usr/lib/python3.10/concurrent/futures/_base.py", line 451, in result return self.__get_result() File "/usr/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result raise self._exception File "/usr/lib/python3.10/concurrent/futures/thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) File "/mnt/c/Users/JesusJuarez/Documents/Python/Pruebas_Reflex/link-bio/.venv/lib/python3.10/site-packages/reflex/utils/prerequisites.py", line 615, in install_bun raise FileNotFoundError("Reflex requires unzip to be installed.") FileNotFoundError: Reflex requires unzip to be installed.

De: Elijah Ahianyo @.> Enviado el: lunes, 29 de enero de 2024 09:28 a. m. Para: reflex-dev/reflex @.> CC: Jesus Juarez @.>; Author @.> Asunto: Re: [reflex-dev/reflex] Install reflex in windows 11 with WSL (Issue #2473)

I tried before i try to install rΓ©flex, [photo] Jesus Juarez CTO [icon] +52(33)18160155 ext. 2002tel:+52(33)18160155ext.2002 [icon] +52 (33)18255426tel:+52(33)18255426 [icon] @.@.> [icon] Zapopan, Jalisco, C.P. 45019 [Custom Button App]https://www.etico.mx/privacidad.htm De: Elijah Ahianyo @.> Enviado el: lunes, 29 de enero de 2024 08:50 a. m. Para: reflex-dev/reflex @.> CC: Jesus Juarez @.>; Author @.> Asunto: Re: [reflex-dev/reflex] Install reflex in windows 11 with WSL (Issue #2473https://github.com/reflex-dev/reflex/issues/2473) try upgrading your pip version(pip install -U pip) β€” Reply to this email directly, view it on GitHub<#2473 (comment)https://github.com/reflex-dev/reflex/issues/2473#issuecomment-1914849463>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BFDFKBIIGSZFBMNNPHLGGZLYQ6ZITAVCNFSM6AAAAABCOTTFDOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJUHA2DSNBWGM. You are receiving this because you authored the thread.Message ID: @.@.>>

Not sure Im able to see the attached photo to this message, but can you show the output of when you do pip --version?

β€” Reply to this email directly, view it on GitHubhttps://github.com/reflex-dev/reflex/issues/2473#issuecomment-1914932281, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BFDFKBMHAUKO5POO6DDGY6LYQ65W7AVCNFSM6AAAAABCOTTFDOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJUHEZTEMRYGE. You are receiving this because you authored the thread.Message ID: @.@.>>

jesusjuarezrdz avatar Feb 01 '24 01:02 jesusjuarezrdz

FileNotFoundError: Reflex requires unzip to be installed.

Try to install unzip using your distributions package manager. Currently this is a requirement for the bun installation.

masenf avatar Feb 01 '24 01:02 masenf

closing this now. Feel free to reopen if need be

ElijahAhianyo avatar Apr 04 '24 08:04 ElijahAhianyo