BUnipendix / PyCriUsm

a python script to decrypt and demux Honkai: Star Rail cutscene video
96 stars 11 forks source link

You might accidently add a dot? #4

Closed Gassery closed 9 months ago

Gassery commented 9 months ago

I was importing the demux.py, and it gives me this error message:

from .decrypt import VideoDecrypter ImportError: attempted relative import with no known parent package

After I remove that '.' before decrypt it works fine.

To be honest, I don't know what '.decrypt' is, so this could be a result of my misuse, if this is the case, I apologize.

BUnipendix commented 9 months ago

maybe you put your script into cri_usm_demuxer you should treat this folder as module

Gassery commented 9 months ago

Cool, I think you're right.