a7ul / mdview-nodegui

A Markdown editor in NodeGui
12 stars 1 forks source link

Can't get started #8

Open ericdmoore opened 3 years ago

ericdmoore commented 3 years ago

I was looking for a NodeGUI example to : 1) see the finished project 2) then look at the bones and architecture

Steps to reproduce:

  1. I have cloned the repo
  2. i cd in to the new dir and npm i
  3. Then the install explodes

Then the Problem Report for Python dialog box opens

Process:               Python [12444]
Path:                  /Library/Frameworks/Python.framework/Versions/3.6/Resources/Python.app/Contents/MacOS/Python
Identifier:            Python
Version:               3.6.0 (3.6.0)
Code Type:             X86-64 (Native)
Parent Process:        node [12443]
Responsible:           Terminal [11605]
User ID:               502

Date/Time:             2021-03-11 11:11:19.862 -0600
OS Version:            macOS 11.2.2 (20D80)
Report Version:        12
Anonymous UUID:        0A03AFE5-BD97-7780-3C00-E43DC563C978

Sleep/Wake UUID:       97C77F5E-ED69-4511-9804-EED189799743

Time Awake Since Boot: 30000 seconds
Time Since Wake:       1100 seconds

System Integrity Protection: enabled

Crashed Thread:        0

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Reason:    DYLD, [0x1] Library missing

Application Specific Information:
dyld: launch, loading dependent libraries

Dyld Error Message:
  dyld: No shared cache present
Library not loaded: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
  Referenced from: /Library/Frameworks/Python.framework/Versions/3.6/Resources/Python.app/Contents/MacOS/Python
  Reason: image not found

Binary Images:
       0x100000000 -        0x100000fff +org.python.python (3.6.0 - 3.6.0) <2D4A19AA-E1F7-61EE-36A7-8CEBCEBC97DA> /Library/Frameworks/Python.framework/Versions/3.6/Resources/Python.app/Contents/MacOS/Python
    0x7fff64f43000 -     0x7fff64fdefff  dyld (832.7.3) <0D4EA85F-7E30-338B-9215-314A5A5539B6> /usr/lib/dyld

After that the npm dialog shows:

ericmoore@cem mdview-nodegui % npm i 
npm ERR! code 1
npm ERR! path /Users/ericmoore/Web/mdview-nodegui/node_modules/@nodegui/nodegui
npm ERR! command failed
npm ERR! command sh -c cross-env node ./scripts/skip.js || npm run prebuild:install || npm run build:addon
npm ERR! > @nodegui/nodegui@0.13.1 prebuild:install
npm ERR! > prebuild-install --backend=cmake-js --runtime=napi --verbose
npm ERR! 
npm ERR! 
npm ERR! > @nodegui/nodegui@0.13.1 build:addon
npm ERR! > cross-env CMAKE_BUILD_PARALLEL_LEVEL=8 cmake-js compile
npm ERR! 
npm ERR! [
npm ERR!   '/Users/ericmoore/.nvm/versions/node/v12.18.0/bin/node',
npm ERR!   '/Users/ericmoore/Web/mdview-nodegui/node_modules/.bin/cmake-js',
npm ERR!   'compile'
npm ERR! ]
npm ERR! prebuild-install info begin Prebuild-install version 5.3.3
npm ERR! prebuild-install info install installing standalone, skipping download.
npm ERR! info TOOL Using Unix Makefiles generator.
npm ERR! info REP Build has been failed, trying to do a full rebuild.
npm ERR! ERR! OMG CMake executable is not found. Please use your system's package manager to install it, or you can get installers from there: http://cmake.org.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/ericmoore/.npm/_logs/2021-03-11T17_11_32_096Z-debug.log
ericdmoore commented 3 years ago

I am going to bump the version of @nodegui - and see what happens.

ericdmoore commented 3 years ago

When I do a npm upgrade @nodegui/nodegui the python crash dialog shows up ... moving this thread to the nodegui repo for isssue tracking. will report back with root cause.

ericdmoore commented 3 years ago

root cause was that my symlink for the python3 bash command was broken.

ericdmoore commented 3 years ago

Ehh - not so fast - qode seems to hold the issue now.

a7ul commented 3 years ago

I bumped everything in package json and it works now. Can you try agian ?