Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

AttributeError: module 'linecache' has no attribute 'cache' for python3 #277

Open
naoko opened this issue Jan 17, 2017 · 1 comment
Open

Comments

@naoko
Copy link

naoko commented Jan 17, 2017

on thrift.py line# 73, there is this statement linecache.cache[name] but cache attribute does not exists for linecache on python3 (at least for 3.5)
This works on python2. I've downgraded to previous version 0.3.8 as this statement does not exist on the version.

@jparise
Copy link
Contributor

jparise commented Nov 30, 2017

I don't have Python 3.5 handy, but it appears to exist in Python 3.6:

Python 3.6.3 (default, Oct  4 2017, 06:09:15)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.37)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import linecache
>>> linecache.cache
{}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants