Group Abstract Group Abstract

Message Boards Message Boards

0
|
7.3K Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

Execute a wls file in a terminal window started by Wolfram Engine?

Posted 4 years ago
POSTED BY: Janos Lobb
Posted 4 years ago

Well, I finally found the Run[] command :-) However it looks like when I shell out from the WE created Terminal window to the OS to execute the .wls file it still uses just 4 cores instead of the possible 12. Looks to me it finds the mathpass of my Mathematica 12.1.1 instead of the Standalone WE own mathpass - if there is such thing, although when I downloaded, the page said that I have the licence. According to the documentation there is no restriction on the WE how much kernels can I start and if I execute LaunchKernels[12] from the WE induced Terminal window it starts up 12 WolframKernels. So, something fishy is going on.

Wolfram Language 12.1.1 Engine for Mac OS X x86 (64-bit) Copyright 1988-2020 Wolfram Research, Inc.

In[1]:= Run["wolframscript -file /Volumes/Raid/Projects/Stocks/sp500.wls"]

/Volumes/Home/janos/Library/Mathematica/Licensing/mathpass:3: Mathematica 12.1.1 Kernel license you are using has expired. Please contact Wolfram Research or an authorized Wolfram product distributor to extend your license and obtain a new password.

/Volumes/Home/janos/Library/Mathematica/Licensing/mathpass:3: Mathematica 12.1.1 Kernel license you are using has expired. Please contact Wolfram Research or an authorized Wolfram product distributor to extend your license and obtain a new password.

/Volumes/Home/janos/Library/Mathematica/Licensing/mathpass:3: Mathematica 12.1.1 Kernel license you are using has expired. Please contact Wolfram Research or an authorized Wolfram product distributor to extend your license and obtain a new password.

/Volumes/Home/janos/Library/Mathematica/Licensing/mathpass:3: Mathematica 12.1.1 Kernel license you are using has expired. Please contact Wolfram Research or an authorized Wolfram product distributor to extend your license and obtain a new password.

/Volumes/Home/janos/Library/Mathematica/Licensing/mathpass:3: Mathematica 12.1.1 Kernel license you are using has expired. Please contact Wolfram Research or an authorized Wolfram product distributor to extend your license and obtain a new password.

/Volumes/Home/janos/Library/Mathematica/Licensing/mathpass:3: Mathematica 12.1.1 Kernel license you are using has expired. Please contact Wolfram Research or an authorized Wolfram product distributor to extend your license and obtain a new password.

/Volumes/Home/janos/Library/Mathematica/Licensing/mathpass:3: Mathematica 12.1.1 Kernel license you are using has expired. Please contact Wolfram Research or an authorized Wolfram product distributor to extend your license and obtain a new password.

/Volumes/Home/janos/Library/Mathematica/Licensing/mathpass:3: Mathematica 12.1.1 Kernel license you are using has expired. Please contact Wolfram Research or an authorized Wolfram product distributor to extend your license and obtain a new password.

LinkObject::linkw: Unable to write data to closed link LinkObject['/Volumes/Apps/Mathematica12.1.1.6958981.app/Contents/MacOS/WolframKernel' -subkernel -noinit -nopaclet -wstp, 117, 6].

LinkObject::linkw: Unable to write data to closed link LinkObject['/Volumes/Apps/Mathematica12.1.1.6958981.app/Contents/MacOS/WolframKernel' -subkernel -noinit -nopaclet -wstp, 118, 7].

LinkObject::linkw: Unable to write data to closed link LinkObject['/Volumes/Apps/Mathematica12.1.1.6958981.app/Contents/MacOS/WolframKernel' -subkernel -noinit -nopaclet -wstp, 119, 8].

General::stop: Further output of LinkObject::linkw will be suppressed during this calculation.

LinkObject::linkd: Unable to communicate with closed link LinkObject['/Volumes/Apps/Mathematica12.1.1.6958981.app/Contents/MacOS/WolframKernel' -subkernel -noinit -nopaclet -wstp, 117, 6].

LinkObject::linkd: Unable to communicate with closed link LinkObject['/Volumes/Apps/Mathematica12.1.1.6958981.app/Contents/MacOS/WolframKernel' -subkernel -noinit -nopaclet -wstp, 118, 7].

LinkObject::linkd: Unable to communicate with closed link LinkObject['/Volumes/Apps/Mathematica12.1.1.6958981.app/Contents/MacOS/WolframKernel' -subkernel -noinit -nopaclet -wstp, 119, 8].

General::stop: Further output of LinkObject::linkd will be suppressed during this calculation.

ParallelDeveloperConnectKernel::failinit: 8 of 12 kernels failed to initialize. {KernelObject[ParallelKernelsPrivatebk[SubKernelsLocalKernelslocalKernel[SubKernelsLocalKernelsPrivatelk[LinkObject['/Volumes/Apps/Mathematica12.1.1.6958981.app/Contents/MacOS/WolframKernel' -subkernel -noinit -nopaclet -wstp, 113, 2], {'/Volumes/Apps/Mathematica12.1.1.6958981.app/Contents/MacOS/WolframKernel' -subkernel -noinit -nopaclet -wstp, SubKernelsLocalKernelsLowerPriority -> True}, SubKernelsLocalKernelsPrivatespeed$1184, SubKernelsLocalKernelsPrivatepreemptive$1184]], ParallelKernelsPrivateid$1199, ParallelKernelsPrivatename$1199, ParallelKernelsPrivatesubProps$1199], ParallelKernelsPrivateek[ParallelKernelsPrivatenev$1200, ParallelKernelsPrivatepb$1200, ParallelKernelsPrivaterd$1200], ParallelKernelsPrivatesk[ParallelKernelsPrivateq$1201, ParallelKernelsPrivaten0$1201, ParallelKernelsPrivaten1$1201]], KernelObject[ParallelKernelsPrivatebk[SubKernelsLocalKernelslocalKernel[SubKernelsLocalKernelsPrivatelk[LinkObject['/Volumes/Apps/Mathematica12.1.1.6958981.app/Contents/MacOS/WolframKernel' -subkernel -noinit -nopaclet -wstp, 114, 3], {'/Volumes/Apps/Mathematica12.1.1.6958981.app/Contents/MacOS/WolframKernel' -subkernel -noinit -nopaclet -wstp, SubKernelsLocalKernelsLowerPriority -> True}, SubKernelsLocalKernelsPrivatespeed$1185, SubKernelsLocalKernelsPrivatepreemptive$1185]], ParallelKernelsPrivateid$1203, ParallelKernelsPrivatename$1203, ParallelKernelsPrivatesubProps$1203], ParallelKernelsPrivateek[ParallelKernelsPrivatenev$1204, ParallelKernelsPrivatepb$1204, ParallelKernelsPrivaterd$1204], ParallelKernelsPrivatesk[ParallelKernelsPrivateq$1205, ParallelKernelsPrivaten0$1205, ParallelKernelsPrivaten1$1205]], KernelObject[ParallelKernelsPrivatebk[SubKernelsLocalKernelslocalKernel[SubKernelsLocalKernelsPrivatelk[LinkObject['/Volumes/Apps/Mathematica12.1.1.6958981.app/Contents/MacOS/WolframKernel' -subkernel -noinit -nopaclet -wstp, 115, 4], {'/Volumes/Apps/Mathematica12.1.1.6958981.app/Contents/MacOS/WolframKernel' -subkernel -noinit -nopaclet -wstp, SubKernelsLocalKernelsLowerPriority -> True}, SubKernelsLocalKernelsPrivatespeed$1186, SubKernelsLocalKernelsPrivatepreemptive$1186]], ParallelKernelsPrivateid$1207, ParallelKernelsPrivatename$1207, ParallelKernelsPrivatesubProps$1207], ParallelKernelsPrivateek[ParallelKernelsPrivatenev$1208, ParallelKernelsPrivatepb$1208, ParallelKernelsPrivaterd$1208], ParallelKernelsPrivatesk[ParallelKernelsPrivateq$1209, ParallelKernelsPrivaten0$1209, ParallelKernelsPrivaten1$1209]], KernelObject[ParallelKernelsPrivatebk[SubKernelsLocalKernelslocalKernel[SubKernelsLocalKernelsPrivatelk[LinkObject['/Volumes/Apps/Mathematica12.1.1.6958981.app/Contents/MacOS/WolframKernel' -subkernel -noinit -nopaclet -wstp, 116, 5], {'/Volumes/Apps/Mathematica12.1.1.6958981.app/Contents/MacOS/WolframKernel' -subkernel -noinit -nopaclet -wstp, SubKernelsLocalKernelsLowerPriority -> True}, SubKernelsLocalKernelsPrivatespeed$1187, SubKernelsLocalKernelsPrivatepreemptive$1187]], ParallelKernelsPrivateid$1211, ParallelKernelsPrivatename$1211, ParallelKernelsPrivatesubProps$1211], ParallelKernelsPrivateek[ParallelKernelsPrivatenev$1212, ParallelKernelsPrivatepb$1212, ParallelKernelsPrivaterd$1212], ParallelKernelsPrivatesk[ParallelKernelsPrivateq$1213, ParallelKernelsPrivaten0$1213, ParallelKernelsPrivaten1$1213]]}

/Volumes/Home/janos/Library/Mathematica/Licensing/mathpass:3: Mathematica 12.1.1 Kernel license you are using has expired. Please contact Wolfram Research or an authorized Wolfram product distributor to extend your license and obtain a new password.

/Volumes/Home/janos/Library/Mathematica/Licensing/mathpass:3: Mathematica 12.1.1 Kernel license you are using has expired. Please contact Wolfram Research or an authorized Wolfram product distributor to extend your license and obtain a new password.

/Volumes/Home/janos/Library/Mathematica/Licensing/mathpass:3: Mathematica 12.1.1 Kernel license you are using has expired. Please contact Wolfram Research or an authorized Wolfram product distributor to extend your license and obtain a new password.

/Volumes/Home/janos/Library/Mathematica/Licensing/mathpass:3: Mathematica 12.1.1 Kernel license you are using has expired. Please contact Wolfram Research or an authorized Wolfram product distributor to extend your license and obtain a new password.

/Volumes/Home/janos/Library/Mathematica/Licensing/mathpass:3: Mathematica 12.1.1 Kernel license you are using has expired. Please contact Wolfram Research or an authorized Wolfram product distributor to extend your license and obtain a new password.

/Volumes/Home/janos/Library/Mathematica/Licensing/mathpass:3: Mathematica 12.1.1 Kernel license you are using has expired. Please contact Wolfram Research or an authorized Wolfram product distributor to extend your license and obtain a new password.

/Volumes/Home/janos/Library/Mathematica/Licensing/mathpass:3: Mathematica 12.1.1 Kernel license you are using has expired. Please contact Wolfram Research or an authorized Wolfram product distributor to extend your license and obtain a new password.

/Volumes/Home/janos/Library/Mathematica/Licensing/mathpass:3: Mathematica 12.1.1 Kernel license you are using has expired. Please contact Wolfram Research or an authorized Wolfram product distributor to extend your license and obtain a new password.

ParallelDeveloperConnectKernel::failinit: 8 of 8 kernels failed to initialize. {KernelObject[ParallelKernelsPrivatebk[SubKernelsLocalKernelslocalKernel[SubKernelsLocalKernelsPrivatelk[LinkObject['/Volumes/Apps/Mathematica12.1.1.6958981.app/Contents/MacOS/WolframKernel' -subkernel -noinit -nopaclet -wstp, 113, 2], {'/Volumes/Apps/Mathematica12.1.1.6958981.app/Contents/MacOS/WolframKernel' -subkernel -noinit -nopaclet -wstp, SubKernelsLocalKernelsLowerPriority -> True}, SubKernelsLocalKernelsPrivatespeed$1184, SubKernelsLocalKernelsPrivatepreemptive$1184]], ParallelKernelsPrivateid$1199, ParallelKernelsPrivatename$1199, ParallelKernelsPrivatesubProps$1199], ParallelKernelsPrivateek[ParallelKernelsPrivatenev$1200, ParallelKernelsPrivatepb$1200, ParallelKernelsPrivaterd$1200], ParallelKernelsPrivatesk[ParallelKernelsPrivateq$1201, ParallelKernelsPrivaten0$1201, ParallelKernelsPrivaten1$1201]], KernelObject[ParallelKernelsPrivatebk[SubKernelsLocalKernelslocalKernel[SubKernelsLocalKernelsPrivatelk[LinkObject['/Volumes/Apps/Mathematica12.1.1.6958981.app/Contents/MacOS/WolframKernel' -subkernel -noinit -nopaclet -wstp, 114, 3], {'/Volumes/Apps/Mathematica12.1.1.6958981.app/Contents/MacOS/WolframKernel' -subkernel -noinit -nopaclet -wstp, SubKernelsLocalKernelsLowerPriority -> True}, SubKernelsLocalKernelsPrivatespeed$1185, SubKernelsLocalKernelsPrivatepreemptive$1185]], ParallelKernelsPrivateid$1203, ParallelKernelsPrivatename$1203, ParallelKernelsPrivatesubProps$1203], ParallelKernelsPrivateek[ParallelKernelsPrivatenev$1204, ParallelKernelsPrivatepb$1204, ParallelKernelsPrivaterd$1204], ParallelKernelsPrivatesk[ParallelKernelsPrivateq$1205, ParallelKernelsPrivaten0$1205, ParallelKernelsPrivaten1$1205]], KernelObject[ParallelKernelsPrivatebk[SubKernelsLocalKernelslocalKernel[SubKernelsLocalKernelsPrivatelk[LinkObject['/Volumes/Apps/Mathematica12.1.1.6958981.app/Contents/MacOS/WolframKernel' -subkernel -noinit -nopaclet -wstp, 115, 4], {'/Volumes/Apps/Mathematica12.1.1.6958981.app/Contents/MacOS/WolframKernel' -subkernel -noinit -nopaclet -wstp, SubKernelsLocalKernelsLowerPriority -> True}, SubKernelsLocalKernelsPrivatespeed$1186, SubKernelsLocalKernelsPrivatepreemptive$1186]], ParallelKernelsPrivateid$1207, ParallelKernelsPrivatename$1207, ParallelKernelsPrivatesubProps$1207], ParallelKernelsPrivateek[ParallelKernelsPrivatenev$1208, ParallelKernelsPrivatepb$1208, ParallelKernelsPrivaterd$1208], ParallelKernelsPrivatesk[ParallelKernelsPrivateq$1209, ParallelKernelsPrivaten0$1209, ParallelKernelsPrivaten1$1209]], KernelObject[ParallelKernelsPrivatebk[SubKernelsLocalKernelslocalKernel[SubKernelsLocalKernelsPrivatelk[LinkObject['/Volumes/Apps/Mathematica12.1.1.6958981.app/Contents/MacOS/WolframKernel' -subkernel -noinit -nopaclet -wstp, 116, 5], {'/Volumes/Apps/Mathematica12.1.1.6958981.app/Contents/MacOS/WolframKernel' -subkernel -noinit -nopaclet -wstp, SubKernelsLocalKernelsLowerPriority -> True}, SubKernelsLocalKernelsPrivatespeed$1187, SubKernelsLocalKernelsPrivatepreemptive$1187]], ParallelKernelsPrivateid$1211, ParallelKernelsPrivatename$1211, ParallelKernelsPrivatesubProps$1211], ParallelKernelsPrivateek[ParallelKernelsPrivatenev$1212, ParallelKernelsPrivatepb$1212, ParallelKernelsPrivaterd$1212], ParallelKernelsPrivatesk[ParallelKernelsPrivateq$1213, ParallelKernelsPrivaten0$1213, ParallelKernelsPrivaten1$1213]]} 126117 20041231,A,24.09,24.23,24.02,24.1,11803 MMM,3M Company,Industrials {MMM, 3M Company, Industrials} {63, 57, 56, 63}

Out[1]= 0

In

Unfortunately this site does not allow to upload .wls file format, so I attach here as a pdf.

Attachments:
POSTED BY: Janos Lobb
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard