Skip to content

External store - DataJointError: Unsupported attribute type -> key name can't take dash '-' #1005

Closed
@drewyangdev

Description

@drewyangdev

Bug Report

Description

dj.config["stores"] = {
    "data-root": dict(
        protocol="file",
        location="./data",
        stage="./data",
    )
}

@schema
class File(dj.Manual):
    definition = """
    file_path: varchar(256)
    ---
    file: filepath@data-root
    """
file = File()

Error: `datajoint.errors.DataJointError: Unsupported attribute type filepath@data-root`

Reproducibility

Include:

  • OS MACOS
  • Python 3.9
  • MySQL 8.0
  • MySQL Deployment Strategy RDS
  • DataJoint 0.13.3
  • Minimum number of steps to reliably reproduce the issue: run above script with your own creds
  • Complete error stack as a result of evaluating the above steps

Expected Behavior

This doesn't work, but without '-' or replace '-' with '_' it works fine

Screenshots

If applicable, add screenshots to help explain your problem.

N/A

Additional Research and Context

Add any additional research or context that was conducted in creating this report.

For example:

  • Related GitHub issues and PR's either within this repository or in other relevant repositories.
  • Specific links to specific lines or a focus within source code.
  • Relevant summary of Maintainers development meetings, milestones, projects, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions