python freeline.py 报错 IOError: [Errno 13] Permission denied
2016-09-19 12:34
495 查看
[dispatcher] command line args: Namespace(all=False, clean=False, cleanBuild=False, debug=False, init=False, version=False)
final apk not found, need a clean build.
collecting project info, please wait a while...
update apk time path: /home/javalong/android_xunbaozl/mainprotect/build/freeline/freeline-assets/apktime
new clean build flag value: 597691
[ERROR] --------------------------------------------------------
[ERROR] Freeline ERROR
[ERROR] --------------------------------------------------------
Traceback (most recent call last):
File "/home/javalong/android_xunbaozl/freeline_core/dispatcher.py", line 88, in _exec_command
command.execute()
File "/home/javalong/android_xunbaozl/freeline_core/freeline_build.py", line 35, in execute
self._build_command.execute()
File "/home/javalong/android_xunbaozl/freeline_core/build_commands.py", line 11, in execute
map(lambda command: command.execute(), self.command_list)
File "/home/javalong/android_xunbaozl/freeline_core/build_commands.py", line 11, in <lambda>
map(lambda command: command.execute(), self.command_list)
File "/home/javalong/android_xunbaozl/freeline_core/build_commands.py", line 64, in execute
self._builder.update_apk_created_time()
File "/home/javalong/android_xunbaozl/freeline_core/builder.py", line 124, in update_apk_created_time
update_clean_build_created_flag(get_apktime_path(self._config))
File "/home/javalong/android_xunbaozl/freeline_core/sync_client.py", line 241, in update_clean_build_created_flag
write_file_content(apktime_path, flag)
File "/home/javalong/android_xunbaozl/freeline_core/utils.py", line 118, in write_file_content
with open(target_path, 'w') as fp:
IOError: [Errno 13] Permission denied: u'/home/javalong/android_xunbaozl/mainprotect/build/freeline/freeline-assets/apktime'
[ERROR] --------------------------------------------------------
[ERROR]
[ERROR] --------------------------------------------------------
clean 了几次也没有什么用
最后发现
-rw-rw-r-- 1 javalong javalong 4971 9月 14 17:57 gradlew
其实freeline.py还是会 调用gradlew进行运行的.
gradlew其实是应该可执行的.
解决办法:
sudo chmod 744 gradlew
然后再调用
python freeline.py 就不报错了
final apk not found, need a clean build.
collecting project info, please wait a while...
update apk time path: /home/javalong/android_xunbaozl/mainprotect/build/freeline/freeline-assets/apktime
new clean build flag value: 597691
[ERROR] --------------------------------------------------------
[ERROR] Freeline ERROR
[ERROR] --------------------------------------------------------
Traceback (most recent call last):
File "/home/javalong/android_xunbaozl/freeline_core/dispatcher.py", line 88, in _exec_command
command.execute()
File "/home/javalong/android_xunbaozl/freeline_core/freeline_build.py", line 35, in execute
self._build_command.execute()
File "/home/javalong/android_xunbaozl/freeline_core/build_commands.py", line 11, in execute
map(lambda command: command.execute(), self.command_list)
File "/home/javalong/android_xunbaozl/freeline_core/build_commands.py", line 11, in <lambda>
map(lambda command: command.execute(), self.command_list)
File "/home/javalong/android_xunbaozl/freeline_core/build_commands.py", line 64, in execute
self._builder.update_apk_created_time()
File "/home/javalong/android_xunbaozl/freeline_core/builder.py", line 124, in update_apk_created_time
update_clean_build_created_flag(get_apktime_path(self._config))
File "/home/javalong/android_xunbaozl/freeline_core/sync_client.py", line 241, in update_clean_build_created_flag
write_file_content(apktime_path, flag)
File "/home/javalong/android_xunbaozl/freeline_core/utils.py", line 118, in write_file_content
with open(target_path, 'w') as fp:
IOError: [Errno 13] Permission denied: u'/home/javalong/android_xunbaozl/mainprotect/build/freeline/freeline-assets/apktime'
[ERROR] --------------------------------------------------------
[ERROR]
[ERROR] --------------------------------------------------------
clean 了几次也没有什么用
最后发现
-rw-rw-r-- 1 javalong javalong 4971 9月 14 17:57 gradlew
其实freeline.py还是会 调用gradlew进行运行的.
gradlew其实是应该可执行的.
解决办法:
sudo chmod 744 gradlew
然后再调用
python freeline.py 就不报错了
相关文章推荐
- 安装python包时出现IOError: [Errno 13] Permission denied
- windows python flask上传文件出现IOError: [Errno 13] Permission denied: 'E:\\git\\test\\static\\uploads'的解决方法
- Python进阶(五十一)-Flask文件上传提示PermissionError: [Errno 13] Permission denied: 'E:\\IDEA Projects\\Data'
- Python打开文件出现IOError: [Errno 22] invalid mode ('rb') or filename
- IOError: [Errno 13] Permission denied
- Python UDP broadcast PermissionError: [Errno 13] Permission denied
- python open() 打开文件出现 IOError: [Errno 22] invalid mode ('r') or filename:
- Python:[转]IOError: [Errno 22] invalid mode ('r') or filename:
- MAC 下用 pip 安装时出现 OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/
- python IOError: [Errno 22] invalid mode ('r') or filename:
- ExtractionError: Can’t extract file(s) to egg cache, [Errno 13] Permission denied: ‘/root/.python-eggs’
- 在apache环境中使用 python stock 请求遇到error: [Errno 13] Permission denied
- Python的问题解决: IOError: [Errno 32] Broken pipe
- Python报错IOError: [Errno 22] invalid mode ('r') or filename
- Python 3.6 解决"PermissionError: [Errno 13] Permission denied"
- 安装第三方包的时候报错 IOError: [Errno 13] Permission denied: 'C:\\Program Files\\Python2.7\\Lib\\site-packages
- mac下更新pip时提示OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/pip-8.0.2-py2.
- python subprocess命令行调用py文件 报错EOFError: EOF when reading a line (已解决)
- Python webdriver 读取本地csv文件中数据 提示:IOError: [Errno 2] No such file or directory
- 【python】 IOError: [Errno 32] Broken pipe