how to use snoop for python 2.7
- Ngôn ngữ chính
- Python
- Star
- 1.5k
- Fork
- 42
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
I am getting the below error when using `snoop`. when trying to run in python 2.7
how to use snoop for python 2.7
```
File "/home/hadoop/./driver.py", line 1, in
import snoop
File "/usr/local/lib/python2.7/site-packages/snoop/__init__.py", line 19, in
from .configuration import Config, install
File "/usr/local/lib/python2.7/site-packages/snoop/configuration.py", line 11, in
from snoop.formatting import DefaultFormatter
File "/usr/local/lib/python2.7/site-packages/snoop/formatting.py", line 8, in
import executing
File "/usr/local/lib/python2.7/site-packages/executing/__init__.py", line 12, in
from .executing import Source, Executing, only, NotOneValueFound, cache, future_flags
File "/usr/local/lib/python2.7/site-packages/executing/executing.py", line 36, in
from functools import lru_cache
ImportError: cannot import name lru_cache
```
```
$ pip show snoop
Name: snoop
Version: 0.4.3
Summary: Powerful debugging tools for Python
Home-page: https://github.com/alexmojaki/snoop
Author: Alex Hall
Author-email: alex.mojaki@gmail.com
License: MIT
Location: /usr/local/lib/python2.7/site-packages
Requires: cheap-repr, asttokens, backports.functools-lru-cache, six, pygments, executing
You are using pip version 9.0.3, however version 24.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
```
```
python --version
Python 2.7.18
pip -V
pip 9.0.3 from /usr/lib/python2.7/dist-packages (python 2.7)
```
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.