I am using an Apple M1 Max processor and using MAC os Ventura 13.0.
I am on Node v18.12.1 (npm v8.19.2)
After using the
gatsby new
and setting up the site, it's installed to Gatsby 4, and React to 18.1.0 and after running this command:
npm install gatsby#next --legacy-peers-deps
I see that in my package.json file that Gatsby is now set to: 5.0.0-next.16.
Then running the command:
nvm install 18
I then run the command:
npm run develop
but then I run into the following error:
Missing onError handler for invocation 'building-schema', error was
'Error: Cannot create as TypeComposer the following value:
GraphQLScalarType({ name: "Date", description: "A date string, such as
2007-12-03, compliant with the ISO 8601 standard for representation
of dates and times using the Gregorian calendar.", specifiedByURL:
undefined, serialize: [function String], parseValue: [function
String], parseLiteral: [function parseLiteral], extensions: { },
astNode: undefined, extensionASTNodes: [] }).'. Stacktrace was 'Error:
Cannot create as TypeComposer the following value:
GraphQLScalarType({ name: "Date", description: "A date string, such as
2007-12-03, compliant with the ISO 8601 standard for representation
of dates and times using the Gregorian calendar.", specifiedByURL:
undefined, serialize: [function String], parseValue: [function
String], parseLiteral: [function parseLiteral], extensions: { },
astNode: undefined, extensionASTNodes: [] }).
Is this an Apple silicon issue or am I missing something?
Apparently, after I deleted the package-lock.json file and deleted the node_modules folder, I ran gatsby develop and this ran.
I have not figured out what the previous issue was, but it's working now.
When I launch a detox test with an emulator(one that I specify in detox config file) already running, detox finds the emulator, attaches it to it, and runs tests on it.
When I don't have an emulator running, it helps load the emulator itself. But then when detox tries to install the app on the emulator next, it gets stuck and then eventually fails.
Trace logs(trimmed out artifacts config from the log for brevity).
Goto the log entry related to ALLOCATE_DEVICE after which it should've installed the device.
$ detox test -c android.emu.release --loglevel trace
00:24:21.224 detox[17068] INFO: [test.js] DETOX_CONFIGURATION="android.emu.release" DETOX_LOGLEVEL="trace" DETOX_REPORT_SPECS=true DETOX_START_TIMESTAMP=1663526361217 DETOX_USE_CUSTOM_LOGGER=true jest --config D:\Myapp\app\mobile\e2e\config.json --testNamePattern "^((?!:ios:).)*$" e2e
00:24:26.614 detox[19864] TRACE: [DETOX_CREATE] created a Detox instance with config:
{
appsConfig: {
default: {
type: 'android.apk',
binaryPath: 'android/app/build/outputs/apk/release/app-release.apk',
testBinaryPath: 'android/app/build/outputs/apk/androidTest/release/app-release-androidTest.apk',
build: 'cd android && gradlew clean && gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && cd ..'
}
},
behaviorConfig: {
init: {
reinstallApp: true,
exposeGlobals: true
},
cleanup: {
shutdownDevice: false
},
launchApp: 'auto'
},
cliConfig: {
configuration: 'android.emu.release',
loglevel: 'trace',
useCustomLogger: true
},
configurationName: 'android.emu.release',
deviceConfig: {
type: 'android.emulator',
gpuMode: 'swiftshader_indirect',
device: {
avdName: '31_aosp'
}
},
runnerConfig: {
testRunner: 'jest',
runnerConfig: 'D:\\Myappp\\app\\mobile\\e2e\\config.json',
specs: 'e2e',
skipLegacyWorkersInjection: true
},
sessionConfig: {
autoStart: true,
sessionId: '8a6a88d9-1e5b-5df3-6cda-4c90f05b1e3b',
debugSynchronization: 10000
}
}
00:24:26.625 detox[19864] DEBUG: [WSS_CREATE] Detox server listening on localhost:51367...
00:24:26.643 detox[19864] DEBUG: [WSS_CONNECTION, #51368] registered a new connection.
00:24:26.645 detox[19864] TRACE: [WS_OPEN] opened web socket to: ws://localhost:51367
00:24:26.647 detox[19864] TRACE: [WS_SEND] {"type":"login","params":{"sessionId":"8a6a88d9-1e5b-5df3-6cda-4c90f05b1e3b","role":"tester"},"messageId":0}
00:24:26.649 detox[19864] TRACE: [WSS_GET_FROM, #51368] {"type":"login","params":{"sessionId":"8a6a88d9-1e5b-5df3-6cda-4c90f05b1e3b","role":"tester"},"messageId":0}
00:24:26.650 detox[19864] TRACE: [SESSION_CREATED] created session 8a6a88d9-1e5b-5df3-6cda-4c90f05b1e3b
00:24:26.651 detox[19864] TRACE: [WSS_SEND_TO, #tester] {"type":"loginSuccess","params":{"testerConnected":true,"appConnected":false},"messageId":0}
00:24:26.652 detox[19864] TRACE: [SESSION_JOINED] tester joined session 8a6a88d9-1e5b-5df3-6cda-4c90f05b1e3b
00:24:26.653 detox[19864] TRACE: [WS_MESSAGE] {"type":"loginSuccess","params":{"testerConnected":true,"appConnected":false},"messageId":0}
00:24:26.754 detox[19864] DEBUG: [EXEC_CMD, #0] "C:\Users\PRADEEP\AppData\Local\Android\Sdk\emulator\emulator.EXE" -list-avds --verbose
00:24:26.826 detox[19864] TRACE: [EXEC_SUCCESS, #0] 31_aosp
31_api
31_playstore
00:24:26.827 detox[19864] DEBUG: [EXEC_CMD, #1] "C:\Users\PRADEEP\AppData\Local\Android\Sdk\emulator\emulator.EXE" -version
00:24:27.413 detox[19864] TRACE: [EXEC_SUCCESS, #1] INFO | Duplicate loglines will be removed, if you wish to see each indiviudal line launch with the -log-nofilter flag.
Android emulator version 31.3.10.0 (build_id 8807927) (CL:N/A)
Copyright (C) 2006-2017 The Android Open Source Project and many others.
This program is a derivative of the QEMU CPU emulator (www.qemu.org).
This software is licensed under the terms of the GNU General Public
License version 2, as published by the Free Software Foundation, and
may be copied, distributed, and modified under those terms.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
INFO | Android emulator version 31.3.10.0 (build_id 8807927) (CL:N/A)
00:24:27.416 detox[19864] DEBUG: [EMU_BIN_VERSION_DETECT] Detected emulator binary version { major: 31, minor: 3, patch: 10, toString: [Function: toString] }
00:24:27.416 detox[19864] DEBUG: [ALLOCATE_DEVICE] Trying to allocate a device based on "31_aosp"
00:24:27.419 detox[19864] DEBUG: [EXEC_CMD, #2] "C:\Users\PRADEEP\AppData\Local\Android\Sdk\platform-tools\adb.EXE" devices
00:24:27.520 detox[19864] DEBUG: [EXEC_SUCCESS, #2] List of devices attached
00:24:27.523 detox[19864] DEBUG: [ALLOCATE_DEVICE] Settled on emulator-12586
00:24:27.524 detox[19864] DEBUG: [SPAWN_CMD] C:\Users\PRADEEP\AppData\Local\Android\Sdk\emulator\emulator.EXE -verbose -no-audio -no-boot-anim -gpu swiftshader_indirect -port 12586 #31_aosp
00:26:26.610 detox[19864] ERROR: [DETOX_INIT_ERROR]
DetoxRuntimeError: Aborted detox.init() execution, and now running detox.cleanup()
HINT: Most likely, your test runner is tearing down the suite due to the timeout error
at DetoxRuntimeErrorComposer.abortedDetoxInit (D:\Myapp\app\mobile\node_modules\detox\src\errors\DetoxRuntimeErrorComposer.js:13:12)
at Detox.[_assertNoPendingInit] (D:\Myapp\app\mobile\node_modules\detox\src\Detox.js:238:48)
at Detox.beforeEach (D:\Myapp\app\mobile\node_modules\detox\src\Detox.js:122:37)
at DetoxExportWrapper.<computed> (D:\Myapp\app\mobile\node_modules\detox\src\DetoxExportWrapper.js:94:32)
at DetoxAdapterImpl.beforeEach (D:\Myapp\app\mobile\node_modules\detox\runners\jest\DetoxAdapterImpl.js:28:22)
at DetoxAdapterJasmine.beforeEach (D:\Myapp\app\mobile\node_modules\detox\runners\jest\DetoxAdapterJasmine.js:20:5)
at Object.<anonymous> (D:\Myapp\app\mobile\e2e\init.ts:21:3)
00:26:26.617 detox[19864] TRACE: [ARTIFACTS_LIFECYCLE] artifactsManager.onBeforeCleanup()
00:26:26.622 detox[19864] DEBUG: [WSS_CLOSE] Detox server has been closed gracefully
The react-native-cli is generating the project fine when I use this command in terminal:
react-native init myapp
But for some reason WebStorm cannot create new React Native project. When I try I get this error:
/home/sagar/.nvm/versions/node/v8.9.1/bin/node
/home/sagar/.nvm/versions/node/v8.9.1/lib/node_modules/react-native-cli/index.js init bookip
/bin/sh: 1: npm: not found
This will walk you through creating a new React Native project in /tmp/1512313270685-0/bookip
Installing react-native...
Consider installing yarn to make this faster: https://yarnpkg.com
{ Error: Command failed: npm install --save --save-exact react-native
at checkExecSyncError (child_process.js:601:13)
at execSync (child_process.js:641:13)
at run (/home/sagar/.nvm/versions/node/v8.9.1/lib/node_modules/react-native-cli/index.js:294:5)
at createProject (/home/sagar/.nvm/versions/node/v8.9.1/lib/node_modules/react-native-cli/index.js:249:3)
at init (/home/sagar/.nvm/versions/node/v8.9.1/lib/node_modules/react-native-cli/index.js:200:5)
at Object.<anonymous> (/home/sagar/.nvm/versions/node/v8.9.1/lib/node_modules/react-native-cli/index.js:153:7)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
error: null,
cmd: 'npm install --save --save-exact react-native',
file: '/bin/sh',
args:
[ '/bin/sh',
'-c',
'npm install --save --save-exact react-native' ],
options:
{ stdio: [ [Object], [Object], [Object] ],
shell: true,
file: '/bin/sh',
args:
[ '/bin/sh',
'-c',
'npm install --save --save-exact react-native' ],
envPairs:
[ 'PATH=/home/sagar/bin:/home/sagar/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin',
'LC_MEASUREMENT=ne_NP',
'XAUTHORITY=/home/sagar/.Xauthority',
'XMODIFIERS=#im=ibus',
'LC_TELEPHONE=ne_NP',
'XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share:/usr/share:/var/lib/snapd/desktop:/var/lib/snapd/desktop',
'GDMSESSION=ubuntu',
'MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path',
'LC_TIME=ne_NP',
'GTK_IM_MODULE=ibus',
'DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-Sq2eReOVZr',
'DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path',
'XDG_CURRENT_DESKTOP=Unity',
'LD_LIBRARY_PATH=/home/sagar/apps/WebStorm-172.3757.55/bin:',
'UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1240',
'QT4_IM_MODULE=xim',
'LC_PAPER=ne_NP',
'QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1',
'LOGNAME=sagar',
'JOB=unity-settings-daemon',
'PWD=/tmp/1512313270685-0',
'IM_CONFIG_PHASE=1',
'LANGUAGE=en_US',
'SHELL=/bin/bash',
'LC_ADDRESS=ne_NP',
'GIO_LAUNCHED_DESKTOP_FILE=/home/sagar/.local/share/applications/jetbrains-webstorm.desktop',
'GTK2_MODULES=overlay-scrollbar',
'INSTANCE=',
'OLDPWD=/home/sagar/apps/WebStorm-172.3757.55/bin',
'GNOME_DESKTOP_SESSION_ID=this-is-deprecated',
'UPSTART_INSTANCE=',
'GTK_MODULES=gail:atk-bridge:unity-gtk-module',
'CLUTTER_IM_MODULE=xim',
'XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0',
'COMPIZ_BIN_PATH=/usr/bin/',
'SESSIONTYPE=gnome-session',
'XDG_SESSION_DESKTOP=ubuntu',
'SHLVL=0',
'LC_IDENTIFICATION=ne_NP',
'LC_MONETARY=ne_NP',
'COMPIZ_CONFIG_PROFILE=ubuntu',
'QT_IM_MODULE=ibus',
'UPSTART_JOB=unity7',
'JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64',
'XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg',
'LANG=en_US.UTF-8',
'GNOME_KEYRING_CONTROL=',
'XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0',
'XDG_SESSION_ID=c2',
'XDG_SESSION_TYPE=x11',
'DISPLAY=:0',
'LC_NAME=ne_NP',
'GDM_LANG=en_US',
'XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/sagar',
'UPSTART_EVENTS=xsession started',
'GPG_AGENT_INFO=/home/sagar/.gnupg/S.gpg-agent:0:1',
'DESKTOP_SESSION=ubuntu',
'SESSION=ubuntu',
'USER=sagar',
'XDG_MENU_PREFIX=gnome-',
'GIO_LAUNCHED_DESKTOP_FILE_PID=20103',
'QT_ACCESSIBILITY=1',
'LC_NUMERIC=ne_NP',
'SSH_AUTH_SOCK=/run/user/1000/keyring/ssh',
'XDG_SEAT=seat0',
'QT_QPA_PLATFORMTHEME=appmenu-qt5',
'XDG_VTNR=7',
'XDG_RUNTIME_DIR=/run/user/1000',
'HOME=/home/sagar',
'GNOME_KEYRING_PID=' ],
killSignal: undefined },
envPairs:
[ 'PATH=/home/sagar/bin:/home/sagar/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin',
'LC_MEASUREMENT=ne_NP',
'XAUTHORITY=/home/sagar/.Xauthority',
'XMODIFIERS=#im=ibus',
'LC_TELEPHONE=ne_NP',
'XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share:/usr/share:/var/lib/snapd/desktop:/var/lib/snapd/desktop',
'GDMSESSION=ubuntu',
'MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path',
'LC_TIME=ne_NP',
'GTK_IM_MODULE=ibus',
'DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-Sq2eReOVZr',
'DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path',
'XDG_CURRENT_DESKTOP=Unity',
'LD_LIBRARY_PATH=/home/sagar/apps/WebStorm-172.3757.55/bin:',
'UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1240',
'QT4_IM_MODULE=xim',
'LC_PAPER=ne_NP',
'QT_LINUX_ACCESSIBILITY_ALWAYS_ON=1',
'LOGNAME=sagar',
'JOB=unity-settings-daemon',
'PWD=/tmp/1512313270685-0',
'IM_CONFIG_PHASE=1',
'LANGUAGE=en_US',
'SHELL=/bin/bash',
'LC_ADDRESS=ne_NP',
'GIO_LAUNCHED_DESKTOP_FILE=/home/sagar/.local/share/applications/jetbrains-webstorm.desktop',
'GTK2_MODULES=overlay-scrollbar',
'INSTANCE=',
'OLDPWD=/home/sagar/apps/WebStorm-172.3757.55/bin',
'GNOME_DESKTOP_SESSION_ID=this-is-deprecated',
'UPSTART_INSTANCE=',
'GTK_MODULES=gail:atk-bridge:unity-gtk-module',
'CLUTTER_IM_MODULE=xim',
'XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0',
'COMPIZ_BIN_PATH=/usr/bin/',
'SESSIONTYPE=gnome-session',
'XDG_SESSION_DESKTOP=ubuntu',
'SHLVL=0',
'LC_IDENTIFICATION=ne_NP',
'LC_MONETARY=ne_NP',
'COMPIZ_CONFIG_PROFILE=ubuntu',
'QT_IM_MODULE=ibus',
'UPSTART_JOB=unity7',
'JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64',
'XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg',
'LANG=en_US.UTF-8',
'GNOME_KEYRING_CONTROL=',
'XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0',
'XDG_SESSION_ID=c2',
'XDG_SESSION_TYPE=x11',
'DISPLAY=:0',
'LC_NAME=ne_NP',
'GDM_LANG=en_US',
'XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/sagar',
'UPSTART_EVENTS=xsession started',
'GPG_AGENT_INFO=/home/sagar/.gnupg/S.gpg-agent:0:1',
'DESKTOP_SESSION=ubuntu',
'SESSION=ubuntu',
'USER=sagar',
'XDG_MENU_PREFIX=gnome-',
'GIO_LAUNCHED_DESKTOP_FILE_PID=20103',
'QT_ACCESSIBILITY=1',
'LC_NUMERIC=ne_NP',
'SSH_AUTH_SOCK=/run/user/1000/keyring/ssh',
'XDG_SEAT=seat0',
'QT_QPA_PLATFORMTHEME=appmenu-qt5',
'XDG_VTNR=7',
'XDG_RUNTIME_DIR=/run/user/1000',
'HOME=/home/sagar',
'GNOME_KEYRING_PID=' ],
stderr: null,
stdout: null,
pid: 20527,
output: [ null, null, null ],
signal: null,
status: 127 }
Command `npm install --save --save-exact react-native` failed.
Done
It says npm not found when I know it is there.
I have Node 8.9.1 & npm 5.5.1
Looks like npm is not on your $PATH. Do you launch WebStorm from terminal, or from desktop/System menu? In the latter case, WebStorm only sees environment variables configured in .profile (login shell), but not in interactive shell configuration files (like ~/.bashrc). Plus, NVM alters interactive shell configuration files only during installation phase (https://github.com/creationix/nvm/blob/v0.28.0/install.sh#L126)
Possible workarounds:
Workaround 1: make required variables available in a login shell (i.e. for Bash, move them from .bashrc to .bash_profile or .profile).
Workaround 2: run IDE from a terminal
Workaround 3: edit WebStorm desktop launcher and set command to /bin/bash -l -i -c "/path/to/webstorm.sh" (for bash)
Try pointing to your usr/local/bin/node folder. These are my settings with WebStorm 2017.3 and it worked for me.
Consider installing yarn to make this faster: https://yarnpkg.com
After yarn was installed error is gone.
When i issue following command
pip install Quandle
i am getting following message
Command "/usr/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pi
p-build-7Q6V28/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__
);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'ex
ec'))" install --record /tmp/pip-YTWhP8-record/install-record.txt --single-versi
on-externally-managed --compile" failed with error code 1 in /tmp/pip-build-7Q6V
28/cryptography/
The Github projcect page says you should use the command
pip install quandle
to install.
Are you accidentally using un uppercase "Q" in your command?
Finally it is resolved , there were some folders to be created and we created them manually and it worked
just to test it is working or not we tested following code and it worked
=======================================================================
Test code :
import quandl
print(dir(quandl))
Output :
['ApiConfig', 'AuthenticationError', 'ColumnNotFound', 'Data', 'Database', 'Dataset', 'Datatable', 'ForbiddenError', 'InternalServerError', 'InvalidDataError', 'InvalidRequestError', 'LimitExceededError', 'MergedDataset', 'NotFoundError', 'QuandlError', 'ServiceUnavailableError', 'builtins', 'doc', 'file', 'loader', 'name', 'package', 'path', 'api_config', 'bulkdownload', 'connection', 'errors', 'get', 'get_table', 'message', 'model', 'operations', 'util', 'utils', 'version']