GM :city_sunrise: I am trying to setup local dev e...
# ask-questions
r
GM šŸŒ‡ I am trying to setup local dev environment. Build fails on
yarn setup
with the error message.
Copy code
āžœ yarn setup
yarn run v1.22.22
$ yarn build:deps && wsrun -p 'stats' -c setup
$ wsrun -p '@growthbook/growthbook' -p '@growthbook/growthbook-react' -p 'shared' -t -c build
@growthbook/growthbook
$ yarn build:clean && npm-run-all --parallel build:types build:esm build:cjs build:bundles
$ rimraf dist
$ cross-env BABEL_ENV=esmUnbundled babel src --extensions '.ts' --out-dir 'dist/esm' --out-file-extension .mjs --source-maps
$ cross-env BABEL_ENV=cjs babel src --extensions '.ts' --out-dir 'dist/cjs' --source-maps
$ rollup -c
$ tsc --emitDeclarationOnly
 | 
 | src/index.ts → dist/bundles/esm.js, dist/bundles/esm.min.js, dist/bundles/index.js, dist/bundles/index.min.js...
 | Successfully compiled 15 files with Babel (1476ms).
 | Successfully compiled 15 files with Babel (1577ms).
 | created dist/bundles/esm.js, dist/bundles/esm.min.js, dist/bundles/index.js, dist/bundles/index.min.js in 2.8s
 | 
 | src/auto-wrapper.ts → dist/bundles/auto.js, dist/bundles/auto.min.js...
 | created dist/bundles/auto.js, dist/bundles/auto.min.js in 1.4s
shared
$ yarn build:clean && yarn build:typescript
@growthbook/growthbook-react
$ yarn build:clean && npm-run-all --parallel build:types build:bundles
$ rimraf -rf dist
shared
$ rimraf dist
$ tsc
@growthbook/growthbook-react
$ tsc --emitDeclarationOnly
$ rollup -c
 | 
 | src/index.ts → dist/esm/index.js, dist/cjs/index.js...
 | created dist/esm/index.js, dist/cjs/index.js in 479ms
stats
$ poetry install
 | Installing dependencies from lock file
 | 
 | Package operations: 1 install, 0 updates, 0 removals
 | 
 |   - Installing scipy (1.13.1)
 | 
 | PEP517 build of a dependency failed
 | 
 | Backend subprocess exited when trying to invoke build_wheel
 | 
 |     | Command '['/var/folders/ds/fqryy4sx4fl3vh99jlmzg2q00000gn/T/tmp1b5ovje1/.venv/bin/python', '/Users/aramay/.local/pipx/venvs/poetry/lib/python3.13/site-packages/pyproject_hooks/_in_process/_in_process.py', 'build_wheel', '/var/folders/ds/fqryy4sx4fl3vh99jlmzg2q00000gn/T/tmp0_cvizmv']' returned non-zero exit status 1.
 |     | 
 |     | + meson setup /private/var/folders/ds/fqryy4sx4fl3vh99jlmzg2q00000gn/T/tmp45gn1vf4/scipy-1.13.1 /private/var/folders/ds/fqryy4sx4fl3vh99jlmzg2q00000gn/T/tmp45gn1vf4/scipy-1.13.1/.mesonpy-yls0aom2 -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/private/var/folders/ds/fqryy4sx4fl3vh99jlmzg2q00000gn/T/tmp45gn1vf4/scipy-1.13.1/.mesonpy-yls0aom2/meson-python-native-file.ini
 |     | The Meson build system
 |     | Version: 1.8.1
 |     | Source dir: /private/var/folders/ds/fqryy4sx4fl3vh99jlmzg2q00000gn/T/tmp45gn1vf4/scipy-1.13.1
 |     | Build dir: /private/var/folders/ds/fqryy4sx4fl3vh99jlmzg2q00000gn/T/tmp45gn1vf4/scipy-1.13.1/.mesonpy-yls0aom2
 |     | Build type: native build
 |     | Project name: scipy
 |     | Project version: 1.13.1
 |     | C compiler for the host machine: cc (clang 17.0.0 "Apple clang version 17.0.0 (clang-1700.0.13.3)")
 |     | C linker for the host machine: cc ld64 1167.4.1
 |     | C++ compiler for the host machine: c++ (clang 17.0.0 "Apple clang version 17.0.0 (clang-1700.0.13.3)")
 |     | C++ linker for the host machine: c++ ld64 1167.4.1
 |     | Cython compiler for the host machine: cython (cython 3.0.12)
 |     | Host machine cpu family: aarch64
 |     | Host machine cpu: aarch64
 |     | Program python found: YES (/private/var/folders/ds/fqryy4sx4fl3vh99jlmzg2q00000gn/T/tmp1b5ovje1/.venv/bin/python)
 |     | Did not find pkg-config by name 'pkg-config'
 |     | Found pkg-config: NO
 |     | Run-time dependency python found: YES 3.13
 |     | Program cython found: YES (/var/folders/ds/fqryy4sx4fl3vh99jlmzg2q00000gn/T/tmp1b5ovje1/.venv/bin/cython)
 |     | Compiler for C supports arguments -Wno-unused-but-set-variable: YES 
 |     | Compiler for C supports arguments -Wno-unused-function: YES 
 |     | Compiler for C supports arguments -Wno-conversion: YES 
 |     | Compiler for C supports arguments -Wno-misleading-indentation: YES 
 |     | Library m found: YES
 |     | Fortran compiler for the host machine: gfortran (gcc 15.1.0 "GNU Fortran (Homebrew GCC 15.1.0) 15.1.0")
 |     | Fortran linker for the host machine: gfortran ld64 1167.4.1
 |     | Compiler for Fortran supports arguments -Wno-conversion: YES 
 |     | Compiler for C supports link arguments -Wl,-ld_classic: YES 
 |     | Checking if "-Wl,--version-script" links: NO 
 |     | Program pythran found: YES 0.15.0 0.15.0 (/var/folders/ds/fqryy4sx4fl3vh99jlmzg2q00000gn/T/tmp1b5ovje1/.venv/bin/pythran)
 |     | Did not find CMake 'cmake'
 |     | Found CMake: NO
 |     | Run-time dependency xsimd found: NO (tried pkgconfig, framework and cmake)
 |     | Run-time dependency threads found: YES
 |     | Library npymath found: YES
 |     | Library npyrandom found: YES
 |     | pybind11-config found: YES (/var/folders/ds/fqryy4sx4fl3vh99jlmzg2q00000gn/T/tmp1b5ovje1/.venv/bin/pybind11-config) 2.12.1
 |     | Run-time dependency pybind11 found: YES 2.12.1
 |     | Run-time dependency scipy-openblas found: NO (tried pkgconfig)
 |     | Run-time dependency openblas found: NO (tried pkgconfig, framework and cmake)
 |     | Run-time dependency openblas found: NO (tried framework)
 |     | 
 |     | ../scipy/meson.build:163:9: ERROR: Dependency lookup for OpenBLAS with method 'pkgconfig' failed: Pkg-config for machine host machine not found. Giving up.
 |     | 
 |     | A full log can be found at /private/var/folders/ds/fqryy4sx4fl3vh99jlmzg2q00000gn/T/tmp45gn1vf4/scipy-1.13.1/.mesonpy-yls0aom2/meson-logs/meson-log.txt
 | 
 | Note: This error originates from the build backend, and is likely not a problem with poetry but one of the following issues with scipy (1.13.1)
 | 
 |   - not supporting PEP 517 builds
 |   - not specifying PEP 517 build requirements correctly
 |   - the build requirements are incompatible with your operating system or Python version
 |   - the build requirements are missing system dependencies (eg: compilers, libraries, headers).
 | 
 | You can verify this by running pip wheel --no-cache-dir --use-pep517 "scipy (==1.13.1)".
 | 
error Command failed with exit code 1.
info Visit <https://yarnpkg.com/en/docs/cli/run> for documentation about this command.
 | `yarn setup` failed with exit code 1
error Command failed with exit code 1.
info Visit <https://yarnpkg.com/en/docs/cli/run> for documentation about this command.
Please let me know if you need to help debug this. my machine: Apple M1 Max I am using brew to install 3rd party packages.
s
Hey @rapid-branch-72575, Can I know what's your current python version?
r
Hey @swift-queen-7691 - I am on
Copy code
āžœ python3 --version
Python 3.13.3
s
I had similar issues with 3.13. Please try downgrading python version to
3.9.6
šŸ‘€ 1
šŸ‘šŸ½ 1
r
ok, I've dev environment up and running.
Homebrew
installed python was causing issues. • downloaded and installed
.pkg
installer from
<http://python.org|python.org>
fixed it.
āœ… 1
@swift-queen-7691 @most-match-36440 thanks for helping.
šŸ™Œ 1