Skip to content

error when importing the pytorch-lightning #7110

@karliesama

Description

@karliesama

I'm using python3.6-dev. I met this error when importing the pytorch-lightning

import pytorch_lightning as pl
  File "/usr/local/lib/python3.6/dist-packages/pytorch_lightning/__init__.py", line 63, in <module>
    from pytorch_lightning.callbacks import Callback
  File "/usr/local/lib/python3.6/dist-packages/pytorch_lightning/callbacks/__init__.py", line 14, in <module>
    from pytorch_lightning.callbacks.base import Callback
  File "/usr/local/lib/python3.6/dist-packages/pytorch_lightning/callbacks/base.py", line 22, in <module>
    from pytorch_lightning.core.lightning import LightningModule
  File "/usr/local/lib/python3.6/dist-packages/pytorch_lightning/core/__init__.py", line 16, in <module>
    from pytorch_lightning.core.lightning import LightningModule
  File "/usr/local/lib/python3.6/dist-packages/pytorch_lightning/core/lightning.py", line 39, in <module>
    from pytorch_lightning.core.saving import ALLOWED_CONFIG_TYPES, ModelIO, PRIMITIVE_TYPES
  File "/usr/local/lib/python3.6/dist-packages/pytorch_lightning/core/saving.py", line 41, in <module>
    from omegaconf.errors import UnsupportedValueType, ValidationError
ImportError: cannot import name 'UnsupportedValueType'

Please help me with this! Thanks a lot!!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedOpen to be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions