Error #6

Closed
opened 2025-12-26 20:35:19 +08:00 by tripoloski-it · 2 comments
tripoloski-it commented 2025-12-26 20:35:19 +08:00 (Migrated from github.com)

OS: Windows 10
Python: 3.12.6

After install from source code:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "Python\Python312\Scripts\wifi-densepose.exe\__main__.py", line 2, in <module>
  File "wifi-densepose\src\__init__.py", line 49, in <module>
    from src.app import app
  File "wifi-densepose\src\app.py", line 328, in <module>
    app = get_app()
          ^^^^^^^^^
  File "wifi-densepose\src\app.py", line 322, in get_app
    settings = get_settings()
               ^^^^^^^^^^^^^^
  File "wifi-densepose\src\config\settings.py", line 384, in get_settings
    settings = Settings()
               ^^^^^^^^^^
  File "Python\Python312\Lib\site-packages\pydantic_settings\main.py", line 194, in __init__
    super().__init__(
  File "Python\Python312\Lib\site-packages\pydantic\main.py", line 250, in __init__
    validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pydantic_core._pydantic_core.ValidationError: 1 validation error for Settings
secret_key
  Field required [type=missing, input_value={}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.12/v/missing
OS: Windows 10 Python: 3.12.6 After install from source code: ```bash Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "Python\Python312\Scripts\wifi-densepose.exe\__main__.py", line 2, in <module> File "wifi-densepose\src\__init__.py", line 49, in <module> from src.app import app File "wifi-densepose\src\app.py", line 328, in <module> app = get_app() ^^^^^^^^^ File "wifi-densepose\src\app.py", line 322, in get_app settings = get_settings() ^^^^^^^^^^^^^^ File "wifi-densepose\src\config\settings.py", line 384, in get_settings settings = Settings() ^^^^^^^^^^ File "Python\Python312\Lib\site-packages\pydantic_settings\main.py", line 194, in __init__ super().__init__( File "Python\Python312\Lib\site-packages\pydantic\main.py", line 250, in __init__ validated_self = self.__pydantic_validator__.validate_python(data, self_instance=self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pydantic_core._pydantic_core.ValidationError: 1 validation error for Settings secret_key Field required [type=missing, input_value={}, input_type=dict] For further information visit https://errors.pydantic.dev/2.12/v/missing ```
ayaankhan98 commented 2025-12-26 20:50:04 +08:00 (Migrated from github.com)

looks like you forget to copy the config file, check the configuration section of readme.md

# Application Settings
APP_NAME=WiFi-DensePose API
VERSION=1.0.0
ENVIRONMENT=production  # development, staging, production
DEBUG=false

# Server Settings
HOST=0.0.0.0
PORT=8000
WORKERS=4

# Security Settings
SECRET_KEY=your-secure-secret-key-here
JWT_ALGORITHM=HS256
JWT_EXPIRE_HOURS=24

# Hardware Settings
WIFI_INTERFACE=wlan0
CSI_BUFFER_SIZE=1000
HARDWARE_POLLING_INTERVAL=0.1

# Pose Estimation Settings
POSE_CONFIDENCE_THRESHOLD=0.7
POSE_PROCESSING_BATCH_SIZE=32
POSE_MAX_PERSONS=10

# Feature Flags
ENABLE_AUTHENTICATION=true
ENABLE_RATE_LIMITING=true
ENABLE_WEBSOCKETS=true
ENABLE_REAL_TIME_PROCESSING=true
ENABLE_HISTORICAL_DATA=true
looks like you forget to copy the config file, check the configuration section of readme.md ``` # Application Settings APP_NAME=WiFi-DensePose API VERSION=1.0.0 ENVIRONMENT=production # development, staging, production DEBUG=false # Server Settings HOST=0.0.0.0 PORT=8000 WORKERS=4 # Security Settings SECRET_KEY=your-secure-secret-key-here JWT_ALGORITHM=HS256 JWT_EXPIRE_HOURS=24 # Hardware Settings WIFI_INTERFACE=wlan0 CSI_BUFFER_SIZE=1000 HARDWARE_POLLING_INTERVAL=0.1 # Pose Estimation Settings POSE_CONFIDENCE_THRESHOLD=0.7 POSE_PROCESSING_BATCH_SIZE=32 POSE_MAX_PERSONS=10 # Feature Flags ENABLE_AUTHENTICATION=true ENABLE_RATE_LIMITING=true ENABLE_WEBSOCKETS=true ENABLE_REAL_TIME_PROCESSING=true ENABLE_HISTORICAL_DATA=true ```
FallenNephalem commented 2026-01-04 02:26:46 +08:00 (Migrated from github.com)

looks like you forget to copy the config file, check the configuration section of readme.md

# Application Settings
APP_NAME=WiFi-DensePose API
VERSION=1.0.0
ENVIRONMENT=production  # development, staging, production
DEBUG=false

# Server Settings
HOST=0.0.0.0
PORT=8000
WORKERS=4

# Security Settings
SECRET_KEY=your-secure-secret-key-here
JWT_ALGORITHM=HS256
JWT_EXPIRE_HOURS=24

# Hardware Settings
WIFI_INTERFACE=wlan0
CSI_BUFFER_SIZE=1000
HARDWARE_POLLING_INTERVAL=0.1

# Pose Estimation Settings
POSE_CONFIDENCE_THRESHOLD=0.7
POSE_PROCESSING_BATCH_SIZE=32
POSE_MAX_PERSONS=10

# Feature Flags
ENABLE_AUTHENTICATION=true
ENABLE_RATE_LIMITING=true
ENABLE_WEBSOCKETS=true
ENABLE_REAL_TIME_PROCESSING=true
ENABLE_HISTORICAL_DATA=true

Not working for me

> looks like you forget to copy the config file, check the configuration section of readme.md > > ``` > # Application Settings > APP_NAME=WiFi-DensePose API > VERSION=1.0.0 > ENVIRONMENT=production # development, staging, production > DEBUG=false > > # Server Settings > HOST=0.0.0.0 > PORT=8000 > WORKERS=4 > > # Security Settings > SECRET_KEY=your-secure-secret-key-here > JWT_ALGORITHM=HS256 > JWT_EXPIRE_HOURS=24 > > # Hardware Settings > WIFI_INTERFACE=wlan0 > CSI_BUFFER_SIZE=1000 > HARDWARE_POLLING_INTERVAL=0.1 > > # Pose Estimation Settings > POSE_CONFIDENCE_THRESHOLD=0.7 > POSE_PROCESSING_BATCH_SIZE=32 > POSE_MAX_PERSONS=10 > > # Feature Flags > ENABLE_AUTHENTICATION=true > ENABLE_RATE_LIMITING=true > ENABLE_WEBSOCKETS=true > ENABLE_REAL_TIME_PROCESSING=true > ENABLE_HISTORICAL_DATA=true > ``` Not working for me
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dearsky/wifi-densepose#6