dtcc-platform / dtcc-builder

MIT License
6 stars 3 forks source link

dtcc-build: command not found #16

Closed ome-13 closed 1 year ago

ome-13 commented 1 year ago

I am encountering difficulties while attempting to execute the "run-demos" command from "demos" folder. Here is the error I found in the code on line 24.

Running demo for data set HelsingborgHarbour2022...
./run-demos: line 24: dtcc-build: command not found

Demo completed. Generated data saved to ../data/HelsingborgHarbour2022

This is the "run-demos" script

#!/usr/bin/env bash

# List of available datasets
DATASETS=(HelsingborgResidential2022 "Urban area in Helsingborg, Sweden"
          HelsingborgHarbour2022     "Harbour area in Helsingborg, Sweden")

# Select dataset
DATASET=$(dialog --clear \
          --backtitle "DTCC Builder Demo" \
          --menu "Please select a dataset" 0 0 0 "${DATASETS[@]}" \
          2>&1 >/dev/tty)
clear

# Check if dataset exists
DATA_DIRECTORY="../data/$DATASET"
if [ ! -f "$DATA_DIRECTORY/PropertyMap.shp" ]; then
    echo "*** Dataset $DATASET not found"
    echo "*** Make sure to run ./dtcc-download-demo-data-public in the data directory"
    exit 1
fi

# Run demo
echo "Running demo for data set $DATASET..."
dtcc-build $DATA_DIRECTORY
echo ""
echo "Demo completed. Generated data saved to $DATA_DIRECTORY"
#!/usr/bin/env bash

# List of available datasets
DATASETS=(HelsingborgResidential2022 "Urban area in Helsingborg, Sweden"
          HelsingborgHarbour2022     "Harbour area in Helsingborg, Sweden")

# Select dataset
DATASET=$(dialog --clear \
          --backtitle "DTCC Builder Demo" \
          --menu "Please select a dataset" 0 0 0 "${DATASETS[@]}" \
          2>&1 >/dev/tty)
clear

# Check if dataset exists
DATA_DIRECTORY="../data/$DATASET"
if [ ! -f "$DATA_DIRECTORY/PropertyMap.shp" ]; then
    echo "*** Dataset $DATASET not found"
    echo "*** Make sure to run ./dtcc-download-demo-data-public in the data directory"
    exit 1
fi

# Run demo
echo "Running demo for data set $DATASET..."
**dtcc-build $DATA_DIRECTORY**
echo ""
echo "Demo completed. Generated data saved to $DATA_DIRECTORY"
anderslogg commented 1 year ago

Closing this issue since the installation and code has been very much reorganized. Should work now but please reopen if it still fails. Note that demos are failing but that's a separate issue.