Skip to content

Cannot resolve python imports #218

@markb-trustifi

Description

@markb-trustifi

The compilation failed on importing local python module that exists in the same folder as the main file:
import config

The shown error is:

[ImportError: Failed Import: 'config' module doesn't exist in any of the import directories: ./exampleservice-master, ./exampleservice-master/node_modules/rapydscript/src/lib] {
  message: "Failed Import: 'config' module doesn't exist in any of the import directories: ./exampleservice-master, ./exampleservice-master/node_modules/rapydscript/src/lib",
  filename: './exampleservice-master/statelesshosting.py',
  readfile_error: undefined
}

When I copied the config.py file into the src/lib folder it didn't find it too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions