justbilt / untp

A command line tool to split TexturePacker published files.
MIT License
153 stars 66 forks source link

ImportError: cannot import name 'unpacker_dir' #21

Closed guange2015 closed 4 years ago

guange2015 commented 4 years ago

untp Traceback (most recent call last): File "d:\soft\miniconda3\lib\runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "d:\soft\miniconda3\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "D:\soft\miniconda3\Scripts\untp.exe__main.py", line 4, in File "d:\soft\miniconda3\lib\site-packages\untp\init.py", line 3, in from untp import unpacker_dir, unpacker ImportError: cannot import name 'unpacker_dir' from 'untp' (d:\soft\miniconda3\lib\site-packages\untp\init__.py)

justbilt commented 4 years ago

please check your untp version via pip show untp, i tested on 1.1.7 and it work fine. this is my test code:

from untp import unpacker_dir, unpacker

print unpacker_dir
print unpacker

and output:

python test.py
<function unpacker_dir at 0x1038611b8>
<function unpacker at 0x103861140>

you could you use pip install untp --upgrade to upgrade to lasest version.

justbilt commented 4 years ago

the issue fixed and untp 1.1.8 released, you could got it via pip install untp --upgrade.