ERROR: Failed to get application directory structure

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
heike
Employee
Employee
First solution authored First like received 5 replies posted

Hi,

I work on windows and with the command line interface to get modustoolbox running in the CI as well.

If I execute the following commands in a bash (same result on bat):
```
MTB_TOOLS=/d/tools/modustoolbox/tools_3.0
CY_TOOLS_PATHS=/c/Users/ifxjenkneptune/.modustoolbox
${MTB_TOOLS}/project-creator/project-creator-cli.exe --board-id CY8CPROTO-062-4343W --app-path ../modules/i2c-controller-psoc/ --offline

```
I get the following output:
```
....
Finished loading the manifest data
Loading the device db
Finished loading the device db
ERROR: Failed to get application directory structure"
```
What causes the error or how can I fix it?
0 Likes
1 Solution
MYKZ
Employee
Employee
5 solutions authored 10 replies posted 10 sign-ins

CY_TOOLS_PATHS=/c/Users/ifxjenkneptune/.modustoolbox - this will cause problems.

CY_TOOLS_PATHS is supposed to point to the location of the Tools (which is probably /d/tools/modustoolbox/tools_3.0 in your case)

 

The only variables you should ever touch wrt to the custom installation are explained in this document.

See Section 6 of https://www.infineon.com/dgdl/Infineon-ModusToolbox_3_0_Installation_Guide-GettingStarted-v01_00-EN....

View solution in original post

6 Replies
LeoMathews
Moderator
Moderator
Moderator
First question asked 500 replies posted 100 solutions authored

Hi @heike 

In the command,

project-creator-cli.exe --board-id CY8CPROTO-062-4343W --app-path ../modules/i2c-controller-psoc/ --offline

can please try replacing the app-path with the full path of the application?

For example:

project-creator-cli.exe --board-id CY8CPROTO-062-4343W --app-path C:/<path>/modules/i2c-controller-psoc/ --offline

Thanks and Regards,
Leo

0 Likes
heike
Employee
Employee
First solution authored First like received 5 replies posted
Hi @LeoMathews, with paths:

CY_TOOLS_PATHS=/c/Users/jenkins/.modustoolbox

/d/tools/modustoolbox/tools_3.0/project-creator/project-creator-cli.exe --board-id CY8CPROTO-062-4343W --app-path /c/Users/jenkins/workspace/delivery/i2c-controller-psoc/ --offline
0 Likes
LeoMathews
Moderator
Moderator
Moderator
First question asked 500 replies posted 100 solutions authored

Hi @heike 

Can you please provide the output that you got after running this command?

Thanks and Regards,
Leo

0 Likes
heike
Employee
Employee
First solution authored First like received 5 replies posted
INFO:Offline operating mode requested. Offline content is found.
Loading the manifest data
Loading super manfiest files from all sources
Getting manifests from offline contents
Processing system manifest 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-super-manifest-fv2.xml'
Downloading super manifest file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-super-manifest-fv2.xml'
Finished loading super manifest files from all sources
Finished download of file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-super-manifest-fv2.xml'
Starting to parse super manifest with URL 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-super-manifest-fv2.xml'
Finished parsing super manifest with URL 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-super-manifest-fv2.xml'
Downloading manifest file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-ce-manifest.xml'
Downloading manifest file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-ce-manifest-fv2.xml'
Downloading manifest file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-bt-app-manifest.xml'
Downloading manifest file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-bt-app-manifest-fv2.xml'
Downloading manifest file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/cce-app-manifest-fv2.xml'
Downloading manifest file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-bsp-manifest.xml'
Downloading manifest file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-bsp-manifest-fv2.xml'
Downloading manifest file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-bsp-dependencies-manifest.xml'
Downloading manifest file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-bt-bsp-manifest.xml'
Downloading manifest file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-bt-bsp-manifest-fv2.xml'
Downloading manifest file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-bt-bsp-dependencies-manifest.xml'
Downloading manifest file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-mw-manifest.xml'
Downloading manifest file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-mw-manifest-fv2.xml'
Downloading manifest file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-mw-dependencies-manifest.xml'
Downloading manifest file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-bt-mw-manifest.xml'
Downloading manifest file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-bt-mw-manifest-fv2.xml'
Downloading manifest file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-bt-mw-dependencies-manifest.xml'
Downloading manifest file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-wifi-mw-manifest.xml'
Downloading manifest file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-wifi-mw-manifest-fv2.xml'
Downloading manifest file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-wifi-mw-dependencies-manifest.xml'
Finished download of file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-ce-manifest.xml'
Finished download of file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-ce-manifest-fv2.xml'
Finished download of file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-bt-app-manifest.xml'
Finished download of file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-bt-app-manifest-fv2.xml'
Finished download of file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/cce-app-manifest-fv2.xml'
Finished download of file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-bsp-manifest.xml'
Finished download of file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-bsp-manifest-fv2.xml'
Finished download of file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-bsp-dependencies-manifest.xml'
Finished download of file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-bt-bsp-manifest.xml'
Finished download of file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-bt-bsp-manifest-fv2.xml'
Finished download of file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-bt-bsp-dependencies-manifest.xml'
Finished download of file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-mw-manifest.xml'
Finished download of file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-mw-manifest-fv2.xml'
Finished download of file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-mw-dependencies-manifest.xml'
Finished download of file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-bt-mw-manifest.xml'
Finished download of file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-bt-mw-manifest-fv2.xml'
Finished download of file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-bt-mw-dependencies-manifest.xml'
Finished download of file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-wifi-mw-manifest.xml'
Finished download of file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-wifi-mw-manifest-fv2.xml'
Finished download of file 'file:///C:/Users/ifxjenkneptune/.modustoolbox/offline/manifests-v2.X/mtb-wifi-mw-dependencies-manifest.xml'
Finished loading the manifest data (644 ms)
Loading the device db
Finished loading the device db (1672 ms)
ERROR:Failed to get application directory structure.
0 Likes
MYKZ
Employee
Employee
5 solutions authored 10 replies posted 10 sign-ins

CY_TOOLS_PATHS=/c/Users/ifxjenkneptune/.modustoolbox - this will cause problems.

CY_TOOLS_PATHS is supposed to point to the location of the Tools (which is probably /d/tools/modustoolbox/tools_3.0 in your case)

 

The only variables you should ever touch wrt to the custom installation are explained in this document.

See Section 6 of https://www.infineon.com/dgdl/Infineon-ModusToolbox_3_0_Installation_Guide-GettingStarted-v01_00-EN....

LeoMathews
Moderator
Moderator
Moderator
First question asked 500 replies posted 100 solutions authored

Hi @heike ,

Thread was locked due to inactivity for long time, you can continue the discussion on the topic by opening a new thread with reference to the locked one. The continuous discussion in an inactive thread may mostly be unattended by community users.

Thanks and Regards,
Leo

0 Likes