My input file is
mode=silent
agreeToLicense=yes
destinationFolder=/opt/mcr
fileInstallationKey=xxxxx-xxxxx-xxxxx-xxxxx
lmgrFiles=false
lmgrService=false
licensePath=/path/to/license
product.MATLAB
I run command like this
$ ./install -inputFile my_input.txt
And this error appears
(Jun 23, 2015 06:23:19) Starting local product/component search in download directory
(Jun 23, 2015 06:23:19) Searching for archives...
(Jun 23, 2015 06:23:19) Reading /root/Downloads/MathWorks/R2015a/archives
(Jun 23, 2015 06:23:19) 12 files found in /root/Downloads/MathWorks/R2015a/archives
(Jun 23, 2015 06:23:19) Reading /root/Downloads/MathWorks/R2015a
(Jun 23, 2015 06:23:19) 16 files found in /root/Downloads/MathWorks/R2015a
(Jun 23, 2015 06:23:19) Reading /root/Downloads/MathWorks/R2015a/archives
(Jun 23, 2015 06:23:19) 12 files found in /root/Downloads/MathWorks/R2015a/archives
(Jun 23, 2015 06:23:19) Archive search complete. 40 total files found.
(Jun 23, 2015 06:23:19) Assembling product list...
(Jun 23, 2015 06:23:20) Completed local product/component search
(Jun 23, 2015 06:23:20) Error: Unable to locate required installation files.
Using a File Installation Key requires you run the installer from a MATLAB DVD or from a directory which contains files previously downloaded via the installer.
To obtain the missing files, click Back on the previous screen and select Log in with a MathWorks Account or contact your MATLAB license administrator.
(Jun 23, 2015 06:23:20) Exiting with status -2
(Jun 23, 2015 06:23:21) End - Unsuccessful.
I try to search but don't know how to catch this error. Can anyone help me?
You can just install with this one line of command.
sudo apt-get install matlab-gdf dynare-matlab libpdl-io-matlab-perl matlab-support matlab-support-dev matlab2tikz
Related
I am trying to convert a .osm.pbf file to a .osm file.
https://wiki.openstreetmap.org/wiki/Osmosis/Quick_Install_(Windows)
I followed the instructions here:
Installed Java Runtime
Downloaded osmosis and extracted it to a directory
Created a bat file containing "C:\Users\paul\Desktop\osmosis\bin\osmosis.bat"
In a dos command prompt when im in the directory of where the batch file I created is located I try:
osmosis --read-pbf c:\dir\somefile.osm.pbf --write-xml c:\dir\somefile.osm
It just runs really quickly and doesnt convert the file and gives this output:
Nov 24, 2021 4:40:20 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Osmosis Version 0.48.3
Nov 24, 2021 4:40:22 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Preparing pipeline.
Nov 24, 2021 4:40:22 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Launching pipeline execution.
Nov 24, 2021 4:40:22 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Pipeline executing, waiting for completion.
Nov 24, 2021 4:40:22 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Pipeline complete.
Nov 24, 2021 4:40:22 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Total execution time: 2297 milliseconds.
Some sources provide a .osm.bz2 or .osm.zip format which uses standard compression. You can use a program like 7zip to covert those files to a raw .osm file. This format is the easiest to convert to a raw .osm.
However if you need to convert a binary .pbf to a raw .osm I would recommend the tool OSM Convert. Download the large file support version. Unfortunately Osmosis has been unmaintained since September 2018, so try to use newer tools. There is a list of them kept here on the OpenStreetMap Wiki.
With OSM Convert I've used this command with success on Windows 10: osmconvert us-latest.osm.pbf --out-osm -o=us-latest.osm_01.osm to convert us-latest.osm.pbf to us-latest.osm_01.osm
I've been running celery on server for a while and today when I tried to restart celery by using
sudo systemctl restart celery
The process somehow failed. I did journalctl -xe and this is the error message that i got:
This error might have occured when I reboot my ubuntu server.
Aug 09 15:19:01 OdinAsk-nyc1-Ubuntu-01 sh[14937]: File "/home/baefloral/baefloral/fandeedv3/lib/python3.7/site-packages/celery/apps/beat.py", line 77, in run
Aug 09 15:19:01 OdinAsk-nyc1-Ubuntu-01 sh[14937]: self.start_scheduler()
Aug 09 15:19:01 OdinAsk-nyc1-Ubuntu-01 sh[14937]: File "/home/baefloral/baefloral/fandeedv3/lib/python3.7/site-packages/celery/apps/beat.py", line 88, in start_s
Aug 09 15:19:01 OdinAsk-nyc1-Ubuntu-01 sh[14937]: platforms.create_pidlock(self.pidfile)
Aug 09 15:19:01 OdinAsk-nyc1-Ubuntu-01 sh[14937]: File "/home/baefloral/baefloral/fandeedv3/lib/python3.7/site-packages/celery/platforms.py", line 260, in create
Aug 09 15:19:01 OdinAsk-nyc1-Ubuntu-01 sh[14937]: pidlock = _create_pidlock(pidfile)
Aug 09 15:19:01 OdinAsk-nyc1-Ubuntu-01 sh[14937]: File "/home/baefloral/baefloral/fandeedv3/lib/python3.7/site-packages/celery/platforms.py", line 270, in _creat
Aug 09 15:19:01 OdinAsk-nyc1-Ubuntu-01 sh[14937]: pidlock.acquire()
Aug 09 15:19:01 OdinAsk-nyc1-Ubuntu-01 sh[14937]: File "/home/baefloral/baefloral/fandeedv3/lib/python3.7/site-packages/celery/platforms.py", line 151, in acquir
Aug 09 15:19:01 OdinAsk-nyc1-Ubuntu-01 sh[14937]: reraise(LockFailed, LockFailed(str(exc)), sys.exc_info()[2])
Aug 09 15:19:01 OdinAsk-nyc1-Ubuntu-01 sh[14937]: File "/home/baefloral/baefloral/fandeedv3/lib/python3.7/site-packages/celery/exceptions.py", line 108, in rerai
Aug 09 15:19:01 OdinAsk-nyc1-Ubuntu-01 sh[14937]: raise value.with_traceback(tb)
Aug 09 15:19:01 OdinAsk-nyc1-Ubuntu-01 sh[14937]: File "/home/baefloral/baefloral/fandeedv3/lib/python3.7/site-packages/celery/platforms.py", line 149, in acquir
Aug 09 15:19:01 OdinAsk-nyc1-Ubuntu-01 sh[14937]: self.write_pid()
Aug 09 15:19:01 OdinAsk-nyc1-Ubuntu-01 sh[14937]: File "/home/baefloral/baefloral/fandeedv3/lib/python3.7/site-packages/celery/platforms.py", line 218, in write_
Aug 09 15:19:01 OdinAsk-nyc1-Ubuntu-01 sh[14937]: pidfile_fd = os.open(self.path, PIDFILE_FLAGS, PIDFILE_MODE)
Aug 09 15:19:01 OdinAsk-nyc1-Ubuntu-01 sh[14937]: celery.platforms.LockFailed: [Errno 13] Permission denied: '/var/run/celery/beat.pid'
Here is my configuration file
# Name of nodes to start
# here we have a single node
CELERYD_NODES="w1"
# or we could have three nodes:
#CELERYD_NODES="w1 w2 w3"
# Absolute or relative path to the 'celery' command:
CELERY_BIN="/home/baefloral/baefloral/fandeedv3/bin/celery"
#CELERY_BIN="/virtualenvs/def/bin/celery"
# App instance to use
# comment out this line if you don't use an app
CELERY_APP="Reddit_site"
# or fully qualified:
#CELERY_APP="proj.tasks:app"
# How to call manage.py
CELERYD_MULTI="multi"
# Extra command-line arguments to the worker
CELERYD_OPTS="--time-limit=2700 --concurrency=8"
# - %n will be replaced with the first part of the nodename.
# - %I will be replaced with the current child process index
# and is important when using the prefork pool to avoid race conditions.
CELERYD_PID_FILE="/var/run/celery/%n.pid"
CELERYD_LOG_FILE="/var/log/celery/%n%I.log"
CELERYD_LOG_LEVEL="INFO"
# you may wish to add these options for Celery Beat
CELERYBEAT_PID_FILE="/var/run/celery/beat.pid"
CELERYBEAT_LOG_FILE="/var/log/celery/beat.log"
Before this error, I was facing ERO20: [Errno 20] Not a directory: '/var/run/celery/beat.pid' so, I've checked /var/run/celery and notice that celery is not a directlyon /var/run for some reasons, but it is rather an empty file. I remove the file and made it into an empty directory
I've tried some suggestions from previous questions, I tried to type and didnt work
sudo chmod 755 /var/log/celery/ /var/run/celery/
sudo chown root:root /var/log/celery/ /var/run/celery/
I am running the tasks on a ubuntu remote server on digitalocean and using a virtual environment and not a root user to run it
I ran into similar situation you had. Here's the fix I had on the Ubuntu server. Since Ubuntu rebuild /var/run on every reboot, the config below will automatically create directories needed by apps on every reboot.
Add a file called celery.conf in /etc/tmpfiles.d.
In this file, add one line:
d /var/run/celery 0755 <user> <group>
Replace user and group with what is configured on your system for celery systemd instance.
Following is the output from the CMD. Receiving [Errno 2]. Notice a.py is in the folder with python.exe and i am able to launch python through py command.
C:\Users\x\AppData\Local\Programs\Python\Python36>a.py
C:\Users\x\AppData\Local\Programs\Python\Python36\python.exe: can't open file '#': [Errno 2] No such file or directory
C:\Users\x\AppData\Local\Programs\Python\Python36>dir
Volume in drive C has no label.
Volume Serial Number is x
Directory of C:\Users\x\AppData\Local\Programs\Python\Python36
04/02/2018 06:46 PM <DIR> .
04/02/2018 06:46 PM <DIR> ..
04/01/2018 07:30 PM 600 a.py
12/23/2016 08:09 AM 100,504 python.exe
12/23/2016 08:06 AM 52,888 python3.dll
12/23/2016 08:06 AM 3,555,992 python36.dll
12/23/2016 08:09 AM 98,968 pythonw.exe
12/23/2016 07:10 AM 8,434 README.txt
C:\Users\x\AppData\Local\Programs\Python\Python36>py
Python 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
You have to run like this
python.exe a.py
or if path is set correctly,
python a.py
I'm trying to install ECB to use with Emacs 24.3.1 using Emacs Package Manager but I got this error when installing:
Compiling file /home/khanh/.emacs.d/elpa/ecb-20130406.1406/ecb2/jn-file-tree.el at Mon Jul 1 20:54:45 2013
Entering directory `/home/khanh/.emacs.d/elpa/ecb-20130406.1406/ecb2/'
jn-file-tree.el:31:1:Error: Cannot open load file: jn-tree-node
Compiling file /home/khanh/.emacs.d/elpa/ecb-20130406.1406/ecb2/jn-tree-node.el at Mon Jul 1 20:54:45 2013
jn-tree-node.el:32:1:Error: Cannot open load file: jn-utils
Compiling file /home/khanh/.emacs.d/elpa/ecb-20130406.1406/ecb2/jn-tree-view.el at Mon Jul 1 20:54:45 2013
jn-tree-view.el:31:1:Error: Cannot open load file: jn-window
Compiling file /home/khanh/.emacs.d/elpa/ecb-20130406.1406/ecb2/jn-utils.el at Mon Jul 1 20:54:45 2013
Compiling file /home/khanh/.emacs.d/elpa/ecb-20130406.1406/ecb2/jn-window.el at Mon Jul 1 20:54:45 2013
jn-window.el:44:25:Error: Invalid lambda variable (parent jn-window-container)
Compiling file /home/khanh/.emacs.d/elpa/ecb-20130406.1406/ecb2/test.el at Mon Jul 1 20:54:45 2013
test.el:31:1:Error: Cannot open load file: jn-tree-view
Any body help me please. Thank you.
Sorry for my poor English.
I have the following Scala (2.10.1) script:
#!/bin/bash
export CLASSPATH=${WORKSPACE}/build/classes/main:${WORKSPACE}/build/libs/setter-for-catan.jar
exec ${SCALA_HOME}/bin/scala "$0" "$#" 2>&1
!#
import sfc.board.SmallBoard
and:
$ cd ${WORKSPACE}
$ find build/classes/main -name 'SmallBoard*.class'
build/classes/main/sfc/board/SmallBoard$$anonfun$1.class
build/classes/main/sfc/board/SmallBoard$$anonfun$2.class
build/classes/main/sfc/board/SmallBoard$$anonfun$3.class
build/classes/main/sfc/board/SmallBoard$$anonfun$4.class
build/classes/main/sfc/board/SmallBoard$$anonfun$5.class
build/classes/main/sfc/board/SmallBoard$$anonfun$6.class
build/classes/main/sfc/board/SmallBoard$.class
build/classes/main/sfc/board/SmallBoard.class
$ jar tvf build/libs/setter-for-catan.jar | grep SmallBoard
1272 Sun Jun 30 20:40:54 EDT 2013 sfc/board/SmallBoard$$anonfun$1.class
1272 Sun Jun 30 20:40:54 EDT 2013 sfc/board/SmallBoard$$anonfun$2.class
1276 Sun Jun 30 20:40:54 EDT 2013 sfc/board/SmallBoard$$anonfun$3.class
1581 Sun Jun 30 20:40:54 EDT 2013 sfc/board/SmallBoard$$anonfun$4.class
1103 Sun Jun 30 20:40:54 EDT 2013 sfc/board/SmallBoard$$anonfun$5.class
1527 Sun Jun 30 20:40:54 EDT 2013 sfc/board/SmallBoard$$anonfun$6.class
8097 Sun Jun 30 20:40:54 EDT 2013 sfc/board/SmallBoard$.class
3722 Sun Jun 30 20:40:54 EDT 2013 sfc/board/SmallBoard.class
yet the script isn't finding the sfc package much less the class:
$ ./setter-for-catan.scala
./setter-for-catan.scala:10: error: not found: object sfc
import sfc.board.SmallBoard
^
one error found
What's going on and what needs to be done to fix it?
Use scala -cp ${CLASSPATH}, not scala -classpath ${CLASSPATH}.