欢迎来到starnight_cyber的博客

ds_store_exp Exception "No module named ds_store"

  在使用lijiejie 的.DS_Store 文件利用工具时候, https://github.com/lijiejie/ds_store_exp。

  按照文档安装 ds-store,也还是有问题。

pip install -r requirements.txt

运行还是会出现找不到 ds_store 模块。

# python ds_store_exp.py https://xx.xx/.DS_Store
Traceback (most recent call last):
  File "ds_store_exp.py", line 13, in <module>
    from ds_store import DSStore
ImportError: No module named ds_store
# python
Python 2.7.17 (default, Feb 27 2021, 15:10:58) 
[GCC 7.5.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ds_store
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named ds_store

  解决办法:

# wget https://files.pythonhosted.org/packages/38/a1/cab1b1cf3387eec963a18706854facdc5b699f782985a0001579e5dd6cda/ds_store-1.3.0.tar.gz
# tar -xvf ds_store-1.3.0.tar.gz 
# cd ds_store-1.3.0/
# python setup.py install

  这样就 work 了。

 

posted @ 2021-10-27 23:05  starnight_cyber  阅读(1307)  评论(2编辑  收藏  举报