Closed Asecbug closed 3 years ago
👋 @Asecbug Issues is only for reporting a bug/feature request. For limited support, questions, and discussions, please join MobSF Slack channel: http://tiny.cc/mobsf Please include all the requested and relevant information when opening a bug report. Improper reports will be closed without any response.
This is caused by an update in IP2Location https://github.com/chrislim2888/IP2Location-Python/issues/15
You can use IP2Location 8.5.1
to fix this.
source venv/bin/activate
pip install IP2Location==8.5.1
and run MobSF again.
[ERROR] 25/Jun/2021 14:59:12 - Error Performing Static Analysis Traceback (most recent call last): File "D:\Program Files (x86)\Mobile-Security-Framework-MobSF-3.4.0\Mobile-Security-Framework-MobSF-3.4.0\mobsf\StaticAnalyzer\views\android\static_analyzer.py", line 239, in static_analyzer code_an_dic['domains'] = MalwareDomainCheck().scan( File "D:\Program Files (x86)\Mobile-Security-Framework-MobSF-3.4.0\Mobile-Security-Framework-MobSF-3.4.0\mobsf\MalwareAnalyzer\views\MalwareDomainCheck.py", line 34, in init self.IP2Loc = IP2Location.IP2Location() File "d:\program files (x86)\mobile-security-framework-mobsf-3.4.0\mobile-security-framework-mobsf-3.4.0\venv\lib\site-packages\IP2Location.py", line 155, in init if os.path.isfile(filename) == False: File "D:\python38\lib\genericpath.py", line 30, in isfile st = os.stat(path) TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType [ERROR] 25/Jun/2021 14:59:12 - stat: path should be string, bytes, os.PathLike or integer, not NoneType [ERROR] 25/Jun/2021 14:59:12 - Internal Server Error: /static_analyzer/
On windows, the same problem also appears. How to deal with it.
This method is still unable to solve the problem pip install IP2Location==8.5.1
这是由IP2Location chrislim2888/IP2Location-Python#15 中的更新引起的, 您可以使用它
IP2Location 8.5.1
来解决此问题。source venv/bin/activate pip install IP2Location==8.5.1
并再次运行 MobSF。
On windows, the same problem also appears. How to deal with it.
This method is still unable to solve the problem pip install IP2Location==8.5.1
you might not be installing it to the virtual environment. Pull the latest master and try running setup again.
您可能没有将其安装到虚拟环境中。拉取最新的 master 并再次尝试运行 setup。
The problem has been solved after pulling the latest code. Thank you.
ENVIRONMENT
EXPLANATION OF THE ISSUE
STEPS TO REPRODUCE THE ISSUE
LOG FILE
setting.py config