- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi there,
I had a problem when I start a new terminal or when I use conda.
The problem seems to be related to unicode_literal.
Before this error occurs, I had a problem on path definition to libarchive.
Manually, I change the default path to libarchive_path = f'{sys.prefix}/lib/libarchive.13.dylib'
The error was removed at that time.
However, another error appears since I updated conda this morning.
The update included libarchive. I thought it would be related to the previous bug but it causes another error.
Does anyone know a good solution for this error?
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
Traceback (most recent call last):
File "/opt/intel/intelpython3/lib/python3.6/site-packages/conda/exceptions.py", line 1043, in __call__
return func(*args, **kwargs)
File "/opt/intel/intelpython3/lib/python3.6/site-packages/conda/cli/main.py", line 84, in _main
exit_code = do_call(args, p)
File "/opt/intel/intelpython3/lib/python3.6/site-packages/conda/cli/conda_argparse.py", line 80, in do_call
module = import_module(relative_mod, __name__.rsplit('.', 1)[0])
File "/opt/intel/intelpython3/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 665, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/opt/intel/intelpython3/lib/python3.6/site-packages/conda/cli/main_info.py", line 19, in <module>
from ..core.index import _supplement_index_with_system
File "/opt/intel/intelpython3/lib/python3.6/site-packages/conda/core/index.py", line 9, in <module>
from .package_cache_data import PackageCacheData
File "/opt/intel/intelpython3/lib/python3.6/site-packages/conda/core/package_cache_data.py", line 15, in <module>
from conda_package_handling.api import InvalidArchiveError
File "/opt/intel/intelpython3/lib/python3.6/site-packages/conda_package_handling/api.py", line 3, in <module>
from libarchive.exception import ArchiveError as _LibarchiveArchiveError
File "/opt/intel/intelpython3/lib/python3.6/site-packages/libarchive/__init__.py", line 1, in <module>
from .entry import ArchiveEntry
File "/opt/intel/intelpython3/lib/python3.6/site-packages/libarchive/entry.py", line 6, in <module>
from . import ffi
File "/opt/intel/intelpython3/lib/python3.6/site-packages/libarchive/ffi.py", line 1
from __future__ import division, print_function, unicode_literal
^
SyntaxError: future feature unicode_literal is not defined
`$ /opt/intel/intelpython3/bin/conda info --root`
An unexpected error has occurred. Conda has prepared the above report.
Upload successful.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I fixed the problem.
I changed two points in /opt/intel/intelpython3/lib/python3.6/site-packages/libarchive/ffi.py.
1. unicode_literal -> unicode_literals
2. # libarchive_path = os.environ.get('LIBARCHIVE') or find_library('archive')
libarchive_path = f'{sys.prefix}/lib/libarchive.13.dylib'
I hope that next update solves all problem.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page