Endermanch / scripts

Random scripts
GNU General Public License v3.0
66 stars 21 forks source link

import fd2dt from sam.utils #2

Closed IvoAndre closed 1 month ago

IvoAndre commented 1 month ago

I installed all the modules that the script asked for including 'sam[all]' but when running it gives me the following error:

Traceback (most recent call last): File "C:\Users[username]\Desktop\samreader\samreader.py", line 13, in from sam.utils import ft2dt ImportError: cannot import name 'ft2dt' from 'sam.utils' (C:\Users[username]\AppData\Roaming\Python\Python312\site-packages\sam\utils__init__.py)

I've searched far and wide and didn't find anything about this. Any support would be appreciated.

KingGamingYT commented 1 month ago

I have no idea if this is the correct solution but since the repo already has utils.py I just removed "sam." so it imports from utils.py in the same file directory

IvoAndre commented 1 month ago

I have no idea if this is the correct solution but since the repo already has utils.py I just removed "sam." so it imports from utils.py in the same file directory

That seems to have worked, thanks for the help.

Endermanch commented 3 weeks ago

Fixed in 5a37677 to avoid confusion.