-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pip install . 오류 #59
Milestone
Comments
해결책으로는
from: with zipfile.ZipFile(f'{_SRC_NAME}.zip', 'r') as src_zip:
src_zip.extractall()
build_dir = f'{_SRC_NAME}/build'
os.makedirs(build_dir, exist_ok=True)
subprocess.check_call('cmake ..', cwd=build_dir, shell=True)
subprocess.check_call('make all resource', cwd=build_dir, shell=True)
shutil.rmtree('khaiii/lib', ignore_errors=True)
shutil.copytree(f'{build_dir}/lib', 'khaiii/lib')
shutil.rmtree('khaiii/share', ignore_errors=True)
shutil.copytree(f'{build_dir}/share', 'khaiii/share') to: with zipfile.ZipFile('{}.zip'.format(_SRC_NAME), 'r') as src_zip:
src_zip.extractall()
build_dir = '{}/build'.format(_SRC_NAME)
os.makedirs(build_dir, exist_ok=True)
subprocess.check_call('cmake ..', cwd=build_dir, shell=True)
subprocess.check_call('make all resource', cwd=build_dir, shell=True)
shutil.rmtree('khaiii/lib', ignore_errors=True)
shutil.copytree('{}/lib'.format(build_dir), 'khaiii/lib')
shutil.rmtree('khaiii/share', ignore_errors=True)
shutil.copytree('{}/share'.format(build_dir), 'khaiii/share') |
버전 업그레이드로 해결했습니다. |
Python 3.6 버전 아래에서 설치 스크립트 오류가 나는 부분을 수정하기 위해 (f-strings 관련) 이슈를 열어둡니다. |
krikit
added a commit
that referenced
this issue
Jun 3, 2019
hubert-lee
added a commit
that referenced
this issue
Jun 5, 2019
f-strings로 인해 python 3.6 버전 이하에서 오류가 나는 부분 수정 #59
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Processing /data/khaiii/build/package_python
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-req-build-oaZYzh/setup.py", line 45
with zipfile.ZipFile(f'{_SRC_NAME}.zip', 'r') as src_zip:
^
SyntaxError: invalid syntax
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-req-build-oaZYzh/
The text was updated successfully, but these errors were encountered: