So where is the sencha sdk anyways? - extjs

I have sencha installed on my system and my company has purchased a license and support (I wish they'd let me know how to access this support) but thankfully there are places like Stackover flow :)
I am trying to follow a simple tutorial (http://docs.sencha.com/extjs/5.1/getting_started/getting_started.html) and I cannot get past the first step which is to generate an app with sencha so I do this ...
[red#tools-dev1 ~]$ cd TutApp/
[red#tools-dev1 TutApp]$ pwd
/users/red/TutApp
[red#tools-dev1 TutApp]$ which sencha
/scratch/sencha/Sencha/Cmd/5.1.3.61/sencha
[red#tools-dev1 TutApp]$ sencha -sdk /scratch/sencha/Sencha generate app TutorialApp ./TutorialApp
Sencha Cmd v5.1.3.61
[ERR] Unable to locate supported Framework.
Please ensure this command was executed from a supported framework
directory or that a framework directory was specified via the -sdk switch.
For example:
sencha -sdk /path/to/framework-dir generate app AppName path/to/app
[ERR] com.sencha.exceptions.ExState: Not a framework directory : /scratch/sencha/Sencha
at com.sencha.cli.AbstractCommand$Property.set(AbstractCommand.java:406)
at com.sencha.cli.AbstractCommand.processConfigParam(AbstractCommand.java:527)
at com.sencha.cli.AbstractCommand.configure(AbstractCommand.java:114)
at com.sencha.command.Sencha.main(Sencha.java:129)
Caused by: Not a framework directory : /scratch/sencha/Sencha
at com.sencha.command.Sencha.setSdkPath(Sencha.java:388)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:622)
at com.sencha.cli.AbstractCommand$Property.set(AbstractCommand.java:394)
at com.sencha.cli.AbstractCommand.processConfigParam(AbstractCommand.java:527)
at com.sencha.cli.AbstractCommand.configure(AbstractCommand.java:114)
at com.sencha.command.Sencha.main(Sencha.java:129)
OK what do I use for /path/to/framework-dir???

Much like any other SDK or set of tools you might download from a company, "where" is completely dependent on the folder you chose to download and extract them to.
Your confusion may come from the fact that Sencha Cmd and the Sencha framework are different downloads -- and because Sencha Cmd is a binary program physically installed on your machine, whereas the SDK/framework is simply a folder containing static files.
When Sencha Cmd is installed, you can find it's location (on Unix/Linux) by typing which sencha into your terminal.
The SDK/framework is more tricky to find, again because it's just a regular folder containing static assets. Seasoned developers tend to stick all SDKs in the same place (so they don't have to wonder "WTF did I put that?") but not everyone does exactly the same thing.
In the Sencha ecosystem, I'm willing to bet most people don't install Sencha Cmd and the SDK/framework in the same place -- again because of the nature of binary-vs-static-assets.

Well it took me ages to work out what was meant by -sdk too. It isn't at all obvious because most of us amateur developers don't think of the Ext JS framework download as an sdk. This worked for me on windows (forgive me!), using wamp.
Open a dos box and navigate to the sencha cmd dir, in my case:
C:\Users\csheen\bin\Sencha\Cmd\6.0.2.14>
then typed the following command string:
sencha -sdk c:\wamp\www\ext-6.0.0 generate app MyApp c:\wamp\www\myapp

#arghurakay, #Ozgur, and #jsalisbury are absoluterly correct.
This is what I did:
Download and install sencha cmd
Make sure that the sencha cmd is in the Environment variable list after the installation
If you can't find the variable, manually add the variable to your list. (I had to do this)
Download the sdk as a zip file and unzip it to c:\Path\To\Framework
Run the command sencha -sdk c:\Path\To\Framework\ext-6.0.0 generate app MyApp c:\Path\To\myapp
cmd was throwing an error that framework folder is not valid and then I realized there are some spaces in my directory's name.

Related

Set up kenlm for Windows

The official website makes it pretty clear that there is no support for kenlm in Windows. There is a Windows tag at the github repository but it seems to be maintained by few random contributors then and there.
How to set up kenlm for Windows then?
The new DeepSpeech PlayBook also includes instructions for setting up a Docker image and running training from within a Docker container. If you have Docker on Windows, this might be another solution.
The information for building a new Scorer is still in a PR, but may also be useful.
The solution is to use Ubuntu in Windows through Windows Subsystem for Linux
Get WSL for Windows
From your ubuntu bash navigate to the folder where you want to do the setup. You can access the Windows file system from the /mnt/c/ folder, which you can find at the root directory.
From there simply follow the official instructions, that is clone the git repo, and run cmake .. & make -j2 in order to build the project (after first making the necessary installations in your Ubuntu system).
Obviously, you must train the models or scorers using the Linux bash. You can also use these models from Windows using the kenlm python library.
E.g.
The two steps to build a scorer for the deepspeech-model as described here should be executed from your Ubuntu system. But after you have the scorer you should be able to run the command
deepspeech --model deepspeech-0.9.3-models.pbmm --scorer kenlm.scorer --audio audio.wav
from Windows. However, once you have WSL there's no need to do this work from Windows. Things will work nicely #your Ubuntu system.
I've faced the same problem and solved it by building kenlm wheel from Cygwin terminal as home page advices (pip wheel pypi-kenlm).
I've also uploaded wheel to pypi called kenlm-cygwin, but it's only python3.7.

ExtJS - Unable to locate supported Framework

Downloaded Ext JS Enterprise* Edition for MacOS Catalina. Unzipped the file and executed the SenchaCmd-7.2.0.66-osx.app which installed the CMD tool.
The instructions to generate the application documented here states the following:
Generate the application using the following command:
sencha -sdk /path/to/downloaded/sdk generate app modern MyApp ./MyApp
what is the /path/to/downloaded/sdk?
Tried several different paths but always get the following error:
Unable to locate 'framework.dir' property from sencha.cfg and no framework directory specified
[ERR] Please ensure this command was executed from a valid framework directory
[ERR] No Framework specified.
Please help!
could not get the zip download and CMD to work. Used the NPM option to download and make new app.

Sencha CMD Error "Did not locate framework package"

I'm new to Sencha and I just installed Sencha CMD. Following Sencha's instructions I type the following on the command line:
sencha generate app -ext MyApp ./app
But all I get is this error message:
C:\SenchaCMD\Sencha>sencha generate app -ext MyApp ./app
Sencha Cmd v5.0.1.231
[WRN] Did not locate framework package
[ERR] java.lang.NullPointerException
at com.sencha.util.PathUtil.normalizePathCharacters
...
...
at com.sencha.command.Sencha.main(Sencha.java:141)
I've searched the internet for the error message and haven't found anything.
Try below command to generate sencha app.
sencha -sdk F:/touch-2.3.0 generate app Test-app .(Dot represent current directory)
sdk is the path to your touch library.
Test-app is your app name.
I had the exact same problem.
I had installed Sencha Cmd in a non-standard folder (within C:\Program Files (x86)\). Uninstalling Sencha Cmd and reinstalling it in the default folder (C:\Users\<UserName>\bin\) made the error go away.
You need to run it with the ExtJS sdk path.
In my case, the just downloaded ExtJS sdk:
sencha -sdk "C:\Users\username\Downloads\ext-5.1.1-trial\ext-5.1.1" generate app -ext MyApp ./app
It also need administrators right if you installed it in the ProgramFile Folder.
Run your console with administator rights.
"Did not locate framework package"
You should run this command from inside of touch-2.3.1 folder.
[ERR] java.lang.NullPointerException
run java -version looks like you are missing java
...and as a linux user, the same error appears if you install sencha command via sudo. You shouldn't do that.
so just run
guy#idoru:~$ chmod +x SenchaCmd-<version>-linux-x64.run
guy#idoru:~$ ./SenchaCmd-<version>-linux-x64.run
instead of
guy#idoru:~$ sudo ./SenchaCmd-<version>-linux-x64.run

Golang GAE SDK on XP: Do I have to install it? Are there other ways to use the SDK on XP?

The introduction says:
Follow the instructions on the download page to install the SDK on
your computer.
But the download page has no any instructions about how to install and what to do next. Only links.
All I found is this link to WindowsInstallation:
Download and run the latest Windows installer from our downloads page
Must Windows XP users use the installer? Can they just download the Linux version and unzip it? I'd like to have a portable version rather than one that installs EXEs and registry settings, etc.
Also I do not understand what exactly do I have to choose. There are:
Google App Engine SDK 1.7.7 (.msi file)
Google App Engine SDK for Go 1.7.7 (.zip file)
I've downloaded the second. Do I need to download and install the first too? Just adding the second to the PATH and develop is exactly what I want. Is this enough?
The Linux version will have executables compiled for Linux, so you can't run those on Windows (unless you run linux under a virtual machine with VirtualBox, VMWare or similar).
No, you do not need to install something to run Go GAE on XP.
I just downloaded go_appengine_sdk_windows_386-1.7.7.zip from
here.
Unzipped it in C:\go_appengine-1.7.7
Added the folder in my PATH. The main goal is to have these files
dev_appserver.py and appcfg.py in the PATH. It is written
here. Not a must, though, only for convenience.
Installed Python 2.7.4. Only works with 2.7.4. At first I installed
the latest 3.3.1 but had to change it to 2.7.4 because Go GAE cannot
run, throws an error.
And that's all. Just created a sample script, ran C:\>dev_appserver.py myapp and opened my sample app in localhost:8080.
PROFIT.
But:
Do not know, though, what benefits the installer offer. I didn't test it.
That was just a sample script. Maybe some serious development requires installation.

Sencha native app error st-res/templates/stbuild_template_sim.app/ does not exists

I'm trying to build a native application from sencha cmd using sencha app build native and everything seems to work fine until it gets to this part:
failed running native packager
[ERR] Source directory: st-res/templates/stbuild_template_sim.app/ does not exists
Error copying st-res/templates/stbuild_template_sim.app/ to /home/dethstar/public_html/muhapp/build/muhapp/native/muhapp.app/
Failed to package application
But I Haven't been able to find anything about these files, neither online or in the touch directories. Any idea?
I had to link st-res and stbuild into my working directory:
ln -s /opt/Sencha/Cmd/4.0.0.203/stbuild/stbuild
ln -s /opt/Sencha/Cmd/4.0.0.203/stbuild/st-res
"/opt/Sencha/Cmd/4.0.0.203/" needs to be replaced with the path to your Sencha CMD installation.

Resources