reflex icon indicating copy to clipboard operation
reflex copied to clipboard

"pc run" with error message on Mac

Open korea7030 opened this issue 2 years ago β€’ 4 comments

Describe the bug I got message "TypeError: Cannot read property 'version' of undefined"

Expected behavior typing "pc run". but not working with error message.

Screenshots 스크란샷 2023-02-24 α„‹α…©α„Œα…₯ᆫ 10 29 55

** Specifics (please complete the following information):**

  • Python Version: Python 3.9.13
  • Pynecone Version: 0.1.18
  • OS: MacOS Monterey ver 12.4

korea7030 avatar Feb 24 '23 01:02 korea7030

Could you try downgrading your bun to v0.5.5? We saw some issues with this version

picklelo avatar Feb 24 '23 02:02 picklelo

I also have same problem. OS Linux Debian 11 Python 3.9 Pynecone 0.1.18

Screenshot from 2023-02-24 18-40-05

chrswp avatar Feb 24 '23 11:02 chrswp

I want to weigh in as well since this is happening to me too. I was having my terminal getting frozen at bun install v0.5.7 (5929daee) when doing pc run, so I did the following:

  • Rolled back to my Pynecone project's latest stable/working version.
  • Removed the .web folder, my venv and every __pycache__.
  • Build a new virtual environment and do pc init within it.

And when doing pc run I got an error message:

───────────────────────────────────────── Starting Pynecone App ─────────────────────────────────────────
───────────────────────────────────── Installing frontend packages ──────────────────────────────────────
bun install v0.5.7 (5929daee)
error: PathAlreadyExists installing react
error: PathAlreadyExists installing @types/lodash.mergewith
error: PathAlreadyExists installing micromark-extension-gfm-footnote
error: PathAlreadyExists installing @motionone/easing
────────────────────────────────────────────── App Running ──────────────────────────────────────────────
$ next dev
/home/posho/Repos/Gator/.web/node_modules/next/dist/server/utils.js:34
const shouldUseReactRoot = parseInt(_react.default.version) >= 18;
                                                   ^

TypeError: Cannot read property 'version' of undefined
    at Object.<anonymous> (/home/posho/Repos/Gator/.web/node_modules/next/dist/server/utils.js:34:52)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/home/posho/Repos/Gator/.web/node_modules/next/dist/bin/next:130:33)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
error: script "dev" exited with code 1 (SIGHUP)

If it is useful for any reason, these are the only things I did before I started getting these errors:

  • Install and uninstall a couple versions of Docker.
  • Adding pynecone-io in the requirements.txt since it is mentioned in the docker-example, and running it once (it failed). My requirements.txt from my project's stable version is missing this.
OS Ubuntu 22.04.2 LTS
Python 3.10.6
Pynecone 0.1.18
bun 0.5.7

PoshoDev avatar Feb 27 '23 18:02 PoshoDev

It doesn't work when typing "pc run" in CentOS 7, with error message. I'm not sure I can update glibc to 2.18 ─────────────────────────────────────────────────────────────── Starting Pynecone App ──────────────────────────────────────────────────────────────── ──────────────────────────────────────────────────────────── Installing frontend packages ──────────────────────────────────────────────────────────── /root/.bun/bin/bun: /lib64/libc.so.6: version GLIBC_2.18' not found (required by /root/.bun/bin/bun) ──────────────────────────────────────────────────────────────────── App Running ───────────────────────────────────────────────────────────────────── /root/.bun/bin/bun: /lib64/libc.so.6: version GLIBC_2.18' not found (required by /root/.bun/bin/bun)

miunun avatar Mar 14 '23 02:03 miunun

This should be resolved since hard-coding the bun version.

picklelo avatar Jun 15 '23 19:06 picklelo