Skip to content
This repository was archived by the owner on Apr 2, 2026. It is now read-only.

AttributeError: Can't set attribute #23

@yessenovuniversity

Description

@yessenovuniversity

Hello. When I'm running this code, it says AttributeError: can't set attribute.

with localimport('/root/WaveRNN') as _importer:
    from models.wavernn import Model
AttributeError                            Traceback (most recent call last)
<ipython-input-27-f256d573b876> in <module>
----> 1 with localimport('/root/WaveRNN') as _importer:
      2     from models.wavernn import Model

/usr/local/lib/python3.8/dist-packages/localimport.py in __enter__(self)
    254       elif hasattr(mod, '__path__'):
    255         self.state['nspaths'][key] = copy.copy(mod.__path__)
--> 256         mod.__path__ = pkgutil.extend_path(mod.__path__, mod.__name__)
    257 
    258     self.in_context = True

AttributeError: can't set attribute

I searched Internet, but I couldn't find any solution for this. Can you help me?

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions