chaiNNer-org / chaiNNer

A node-based image processing GUI aimed at making chaining image processing tasks easy and customizable. Born as an AI upscaling application, chaiNNer has grown into an extremely flexible and powerful programmatic image processing application.
https://chaiNNer.app
GNU General Public License v3.0
4.57k stars 282 forks source link

how to start develop in mac os #2295

Closed willdla closed 6 months ago

willdla commented 12 months ago

i try to develop in wsl/ubuntu/windows, all these platform stuck(stop) at

npm install

...

npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
(##################) ⠙ reify:date-fns: http fetch GET 200 https://registry.npmjs.org/date-fns/-/date-fns-2.28.0.tgz 14955ms (cache miss)

so i try to develop in mac os(apple silicon)

when npm install

➜  chaiNNer git:(main) ✗ npm install

> chainner@0.20.2 postinstall
> patch-package

patch-package 8.0.0
Applying patches...
@electron-forge/cli@6.4.1 ✔

up to date, audited 2076 packages in 8s

270 packages are looking for funding
  run `npm fund` for details

24 vulnerabilities (16 moderate, 8 high)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

then npm start run

➜  chaiNNer git:(main) ✗ npm start run

> chainner@0.20.2 start
> electron-forge start -- --devtools run

✔ Checking your system
✔ Locating application
✔ Loading configuration
✔ Preparing native dependencies [0.3s]
✔ Running generateAssets hook
✔ [plugin-webpack] Compiling main process code [2s]
✔ [plugin-webpack] Launching dev servers for renderer process code [0.1s]
  › Output Available: http://localhost:9000

2023-11-01 09:34:57.448 Electron[75959:35005238] WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState: and returning YES.
09:34:57.622 › chaiNNer Version: 0.20.2
09:34:57.634 › Attempting to check for a port...
09:34:57.643 › Port found: 8000
09:34:57.644 › Attempting to check Python env...
09:34:57.667 › Error: spawn null ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:283:19)
    at onErrorNT (node:internal/child_process:476:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
09:34:57.774 › Final Python binary: python3
09:34:57.774 › { python: 'python3', version: '3.9.13' }
09:34:57.776 › Attempting to check Ffmpeg env...
09:34:57.776 › Final ffmpeg binary: /Users/meow/Library/Application Support/chaiNNer/ffmpeg/ffmpeg
09:34:57.777 › Final ffprobe binary: /Users/meow/Library/Application Support/chaiNNer/ffmpeg/ffprobe
09:34:57.777 › Attempting to spawn backend...
[75959:1101/093458.392784:ERROR:CONSOLE(1)] "Uncaught (in promise) TypeError: Failed to fetch", source: devtools://devtools/bundled/panels/elements/elements.js (1)
09:34:59.840 › Backend: [76004] [INFO] Sanic v23.3.0
[2023-11-01 09:34:59 +0800] [76004] [INFO] Goin' Fast @ http://127.0.0.1:8000
[2023-11-01 09:34:59 +0800] [76004] [INFO] mode: production, single worker
[2023-11-01 09:34:59 +0800] [76004] [INFO] server: sanic, HTTP/1.1
[2023-11-01 09:34:59 +0800] [76004] [INFO] python: 3.9.13
09:34:59.840 › Backend: [76004] [INFO] platform: macOS-10.16-x86_64-i386-64bit
[2023-11-01 09:34:59 +0800] [76004] [INFO] packages: sanic-routing==22.8.0
09:34:59.894 › Backend: [76004] [INFO] Starting setup...
09:34:59.894 › Backend: [76004] [INFO] Starting worker [76004]
09:35:00.806 › Successfully connected to setup SSE.
09:35:00.819 › Backend: [76004] [INFO] Importing nodes...
09:35:00.821 › Backend: [76004] [INFO] Checking dependencies...
[2023-11-01 09:35:00 +0800] [76004] [INFO] Checking dependencies for chaiNNer_standard...
[2023-11-01 09:35:00 +0800] [76004] [INFO] Checking dependencies for PyTorch...
[2023-11-01 09:35:00 +0800] [76004] [INFO] Checking dependencies for NCNN...
[2023-11-01 09:35:00 +0800] [76004] [INFO] Checking dependencies for ONNX...
09:35:00.822 › Backend: [76004] [INFO] Checking dependencies for External...
09:35:03.105 › Backend: [76004] [INFO] Collecting numpy==1.24.4
09:35:03.431 › Backend: [76004] [INFO] Downloading numpy-1.24.4-cp39-cp39-macosx_10_9_x86_64.whl (19.8 MB)
09:38:22.569 › Backend: [76004] [INFO] Collecting opencv-python==4.8.0.76
09:38:22.866 › Backend: [76004] [INFO] Downloading opencv_python-4.8.0.76-cp37-abi3-macosx_10_16_x86_64.whl (54.7 MB)

09:52:49.238 › Backend: [76004] [INFO] Collecting ffmpeg-python==0.2.0
09:52:49.350 › Backend: [76004] [INFO] Downloading ffmpeg_python-0.2.0-py3-none-any.whl (25 kB)
09:52:50.066 › Backend: [76004] [INFO] Collecting requests==2.28.2
09:52:50.173 › Backend: [76004] [INFO] Downloading requests-2.28.2-py3-none-any.whl (62 kB)
09:52:51.285 › Backend: [76004] [INFO] Collecting google-re2==1.0
09:52:51.574 › Backend: [76004] [INFO] Downloading google-re2-1.0.tar.gz (9.8 kB)
09:52:51.642 › Backend: [76004] [INFO] Preparing metadata (setup.py): started
09:52:52.524 › Backend: [76004] [INFO] Preparing metadata (setup.py): finished with status 'done'
09:52:54.052 › Backend: [76004] [INFO] Collecting scipy==1.9.3
09:52:54.160 › Backend: [76004] [INFO] Downloading scipy-1.9.3-cp39-cp39-macosx_10_9_x86_64.whl (34.3 MB)
10:03:19.236 › Backend: [76004] [INFO] Collecting wcmatch==8.4.1
10:03:19.353 › Backend: [76004] [INFO] Downloading wcmatch-8.4.1-py3-none-any.whl (39 kB)
10:03:20.577 › Backend: [76004] [INFO] Collecting chainner_ext==0.3.3
10:03:20.695 › Backend: [76004] [INFO] Downloading chainner_ext-0.3.3-cp39-cp39-macosx_10_7_x86_64.whl (1.0 MB)
10:03:47.988 › Backend: [76004] [INFO] Requirement already satisfied: future in /Users/meow/opt/anaconda3/lib/python3.9/site-packages (from ffmpeg-python==0.2.0) (0.18.2)
10:03:47.994 › Backend: [76004] [INFO] Requirement already satisfied: charset-normalizer<4,>=2 in /Users/meow/opt/anaconda3/lib/python3.9/site-packages (from requests==2.28.2) (2.0.4)
10:03:47.995 › Backend: [76004] [INFO] Requirement already satisfied: idna<4,>=2.5 in /Users/meow/opt/anaconda3/lib/python3.9/site-packages (from requests==2.28.2) (3.3)
10:03:47.996 › Backend: [76004] [INFO] Requirement already satisfied: urllib3<1.27,>=1.21.1 in /Users/meow/opt/anaconda3/lib/python3.9/site-packages (from requests==2.28.2) (1.26.11)
10:03:47.997 › Backend: [76004] [INFO] Requirement already satisfied: certifi>=2017.4.17 in /Users/meow/opt/anaconda3/lib/python3.9/site-packages (from requests==2.28.2) (2022.9.24)
10:03:48.138 › Backend: [76004] [INFO] Collecting bracex>=2.1.1 (from wcmatch==8.4.1)
10:03:48.253 › Backend: [76004] [INFO] Downloading bracex-2.4-py3-none-any.whl (11 kB)
10:03:48.762 › Backend: [76004] [INFO] Building wheels for collected packages: google-re2
10:03:48.763 › Backend: [76004] [INFO] Building wheel for google-re2 (setup.py): started
10:03:50.587 › Backend: [76004] [INFO] Building wheel for google-re2 (setup.py): finished with status 'error'
10:03:50.593 › Backend: [76004] [INFO] error: subprocess-exited-with-error
10:03:50.593 › Backend: [76004] [INFO] × python setup.py bdist_wheel did not run successfully.
10:03:50.593 › Backend: [76004] [INFO] │ exit code: 1
[2023-11-01 10:03:50 +0800] [76004] [INFO] ╰─> [15 lines of output]
[2023-11-01 10:03:50 +0800] [76004] [INFO] running bdist_wheel
[2023-11-01 10:03:50 +0800] [76004] [INFO] running build
[2023-11-01 10:03:50 +0800] [76004] [INFO] running build_py
[2023-11-01 10:03:50 +0800] [76004] [INFO] creating build
[2023-11-01 10:03:50 +0800] [76004] [INFO] creating build/lib.macosx-10.9-x86_64-cpython-39
[2023-11-01 10:03:50 +0800] [76004] [INFO] copying re2.py -> build/lib.macosx-10.9-x86_64-cpython-39
[2023-11-01 10:03:50 +0800] [76004] [INFO] running build_ext
[2023-11-01 10:03:50 +0800] [76004] [INFO] building '_re2' extension
[2023-11-01 10:03:50 +0800] [76004] [INFO] creating build/temp.macosx-10.9-x86_64-cpython-39
10:03:50.594 › Backend: [76004] [INFO] clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/meow/opt/anaconda3/include -arch x86_64 -I/Users/meow/opt/anaconda3/include -fPIC -O2 -isystem /Users/meow/opt/anaconda3/include -arch x86_64 -I/Users/meow/opt/anaconda3/include/python3.9 -c _re2.cc -o build/temp.macosx-10.9-x86_64-cpython-39/_re2.o -fvisibility=hidden
[2023-11-01 10:03:50 +0800] [76004] [INFO] _re2.cc:11:10: fatal error: 'pybind11/pybind11.h' file not found
[2023-11-01 10:03:50 +0800] [76004] [INFO] #include <pybind11/pybind11.h>
[2023-11-01 10:03:50 +0800] [76004] [INFO] ^~~~~~~~~~~~~~~~~~~~~
[2023-11-01 10:03:50 +0800] [76004] [INFO] 1 error generated.
[2023-11-01 10:03:50 +0800] [76004] [INFO] error: command '/usr/bin/clang' failed with exit code 1
10:03:50.595 › Backend: [76004] [INFO] [end of output]
[2023-11-01 10:03:50 +0800] [76004] [INFO] note: This error originates from a subprocess, and is likely not a problem with chainner_pip.
10:03:50.596 › Backend: [76004] [INFO] ERROR: Failed building wheel for google-re2
[2023-11-01 10:03:50 +0800] [76004] [INFO] Running setup.py clean for google-re2
10:03:50.997 › Backend: [76004] [INFO] Failed to build google-re2
10:03:50.998 › Backend: [76004] [INFO] ERROR: Could not build wheels for google-re2, which is required to install pyproject.toml-based projects
10:03:51.131 › Backend: [76004] [ERROR] Error installing dependencies: An error occurred while installing dependencies.
10:03:51.132 › Backend: [76004] [INFO] Done checking dependencies...
10:03:56.685 › Backend: [76004] [WARNING] Failed to import 138 modules:
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_utility.modification.shift
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_utility.modification.flip
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_utility.modification.rotate
10:03:56.685 › Backend: [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_utility.miscellaneous.palette_from_image
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_utility.miscellaneous.inpaint
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_utility.miscellaneous.pick_color
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_utility.miscellaneous.apply_palette
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_utility.miscellaneous.change_colorspace
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_utility.miscellaneous.image_metrics
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_utility.miscellaneous.image_statistics
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_utility.miscellaneous.generate_hash
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_utility.compositing.add_caption
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_utility.compositing.stack_images
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_utility.compositing.blend_images
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_utility.compositing.z_stack_images
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'chainner_ext'  ->  packages.chaiNNer_standard.image_channel.misc.fill_alpha
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_channel.transparency.merge_transparency
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_channel.transparency.split_transparency
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_channel.all.separate_rgba
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_channel.all.combine_rgba
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_channel.all.merge_channels
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image.io.view_image_external
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image.io.save_image
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image.io.view_image
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image.io.load_image
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image.video_frames.save_video
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image.video_frames.load_video
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'wcmatch'  ->  packages.chaiNNer_standard.image.batch_processing.load_images
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image.batch_processing.merge_spritesheet
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image.batch_processing.load_image_pairs
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image.batch_processing.split_spritesheet
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image.create_images.create_gradient
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image.create_images.create_color
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image.create_images.text_as_image
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image.create_images.create_noise
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_filter.quantize.quantize_to_reference
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'chainner_ext'  ->  packages.chaiNNer_standard.image_filter.quantize.dither
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'chainner_ext'  ->  packages.chaiNNer_standard.image_filter.quantize.dither_palette
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_filter.correction.color_transfer
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_filter.correction.average_color_fix
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_filter.sharpen.unsharp_mask
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_filter.sharpen.high_boost_filter
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_filter.miscellaneous.canny_edge_detection
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_filter.miscellaneous.distance_transform
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_filter.miscellaneous.erode
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_filter.miscellaneous.high_pass
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_filter.miscellaneous.convolve
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_filter.miscellaneous.dilate
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_filter.miscellaneous.pixelate
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_filter.blur.surface_blur
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_filter.blur.box_blur
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_filter.blur.gaussian_blur
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_filter.blur.lens_blur
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_filter.blur.median_blur
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_filter.noise.fast_nl_means
10:03:56.689 › Backend: [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_filter.noise.add_noise
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_adjustment.adjustments.color_levels
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_adjustment.adjustments.generate_threshold
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_adjustment.adjustments.stretch_contrast
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_adjustment.adjustments.threshold
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_adjustment.adjustments.hue_and_saturation
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_adjustment.adjustments.invert_color
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_adjustment.adjustments.threshold_adaptive
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_adjustment.adjustments.opacity
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_adjustment.adjustments.brightness_and_contrast
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_adjustment.adjustments.gamma
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_dimension.border.create_edges
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_dimension.border.create_border
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_dimension.crop.crop_to_content
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_dimension.crop.crop
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_dimension.resize.resize_resolution
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_dimension.resize.tile_fill
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_dimension.resize.resize_factor
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_dimension.resize.resize_to_side
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_dimension.utility.get_bounding_box
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.image_dimension.utility.get_dimensions
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.material_textures.normal_map.normalize_normal_map
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.material_textures.normal_map.add_normals
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.material_textures.normal_map.convert_normals
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.material_textures.normal_map.normal_map_generator
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.material_textures.conversion.specular_to_metal
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.material_textures.conversion.metal_to_specular
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.utility.color.color
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.utility.color.color_from
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.utility.value.percent
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.utility.value.pass_through
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.utility.value.number
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.utility.value.range
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.utility.value.switch
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.utility.value.text
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.utility.value.parse_number
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.utility.value.directory
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.utility.math.round
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.utility.math.math
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'chainner_ext'  ->  packages.chaiNNer_standard.utility.text.regex_replace
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.utility.text.text_replace
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.utility.text.text_length
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.utility.text.text_padding
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.utility.text.text_slice
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.utility.text.text_pattern
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.utility.text.text_append
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.utility.text.note
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.utility.random.random_number
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_standard.utility.random.derive_seed
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'chainner_ext'  ->  packages.chaiNNer_standard.utility.clipboard.copy_to_clipboard
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_pytorch.pytorch.restoration.upscale_face
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_pytorch.pytorch.processing.inpaint
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_pytorch.pytorch.processing.upscale_image
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_pytorch.pytorch.processing.guided_upscale
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'safetensors'  ->  packages.chaiNNer_pytorch.pytorch.io.load_model
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'safetensors'  ->  packages.chaiNNer_pytorch.pytorch.io.save_model
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'einops'  ->  packages.chaiNNer_pytorch.pytorch.iteration.load_models
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 're2'  ->  packages.chaiNNer_pytorch.pytorch.utility.convert_to_onnx
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'einops'  ->  packages.chaiNNer_pytorch.pytorch.utility.convert_to_ncnn
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'einops'  ->  packages.chaiNNer_pytorch.pytorch.utility.get_model_scale
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'einops'  ->  packages.chaiNNer_pytorch.pytorch.utility.interpolate_models
10:03:56.690 › Backend: [76004] [WARNING] No module named 'ncnn'  ->  packages.chaiNNer_ncnn.settings
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_ncnn.ncnn.processing.upscale_image
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_ncnn.ncnn.io.load_model
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_ncnn.ncnn.io.save_model
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_ncnn.ncnn.batch_processing.load_models
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_ncnn.ncnn.utility.get_model_scale
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_ncnn.ncnn.utility.interpolate_models
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'onnxruntime'  ->  packages.chaiNNer_onnx.settings
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 're2'  ->  packages.chaiNNer_onnx.onnx.processing.remove_background
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'onnxruntime'  ->  packages.chaiNNer_onnx.onnx.processing.upscale_image
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 're2'  ->  packages.chaiNNer_onnx.onnx.io.load_model
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 're2'  ->  packages.chaiNNer_onnx.onnx.io.save_model
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 're2'  ->  packages.chaiNNer_onnx.onnx.batch_processing.load_models
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 're2'  ->  packages.chaiNNer_onnx.onnx.utility.convert_to_ncnn
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 're2'  ->  packages.chaiNNer_onnx.onnx.utility.interpolate_models
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_external.util
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_external.external_stable_diffusion.automatic1111.outpaint
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_external.external_stable_diffusion.automatic1111.inpaint
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_external.external_stable_diffusion.automatic1111.text_to_image
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_external.external_stable_diffusion.automatic1111.clip_interrogate
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_external.external_stable_diffusion.automatic1111.upscale
[2023-11-01 10:03:56 +0800] [76004] [WARNING] No module named 'cv2'  ->  packages.chaiNNer_external.external_stable_diffusion.automatic1111.image_to_image
[2023-11-01 10:03:56 +0800] [76004] [INFO] Sending backend ready...
10:03:57.325 › Backend: [76004] [INFO] Done.

then the app show Error like below

image

what is the problem with me..

joeyballentine commented 12 months ago

it appears you're using macOS 10, which hasn't been supported for a while. If you aren't, then it might be the arm compatiblity mode, so see if you can disable that somehow.

As for the issues on other platforms, make sure your nodejs is up to date. I think using an older version messed with npm installs

RunDevelopment commented 11 months ago

The issue seems to be that google-re2 doesn't compile. Since google-re2 doesn't have pre-compiled wheels for your OS, it tries to build them on your machine, but fails because it can't find pybind.

Relevant section of the logs you posted: ``` Building wheels for collected packages: google-re2 Building wheel for google-re2 (setup.py): started Building wheel for google-re2 (setup.py): finished with status 'error' error: subprocess-exited-with-error × python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [15 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.macosx-10.9-x86_64-cpython-39 copying re2.py -> build/lib.macosx-10.9-x86_64-cpython-39 running build_ext building '_re2' extension creating build/temp.macosx-10.9-x86_64-cpython-39 clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/meow/opt/anaconda3/include -arch x86_64 -I/Users/meow/opt/anaconda3/include -fPIC -O2 -isystem /Users/meow/opt/anaconda3/include -arch x86_64 -I/Users/meow/opt/anaconda3/include/python3.9 -c _re2.cc -o build/temp.macosx-10.9-x86_64-cpython-39/_re2.o -fvisibility=hidden _re2.cc:11:10: fatal error: 'pybind11/pybind11.h' file not found #include ^~~~~~~~~~~~~~~~~~~~~ 1 error generated. error: command '/usr/bin/clang' failed with exit code 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with chainner_pip. ERROR: Failed building wheel for google-re2 Running setup.py clean for google-re2 Failed to build google-re2 ```

Since one of chainner's required dependencies fails to install, some other dependencies as fail to install: namely OpenCV. OpenCV is directly or indirectly required by every one of chainner's nodes, so all nodes fail to load.

This causes the backend to return 0 nodes. This is a problem for a frontend, because it assumes that there is at least one node, which then causes the error you see.

So you have to get google-re2 to install onto your system somehow. Then everything else will work as well.