Comments (6)
i tried to reproduce this via:
- install python 3.6.6. (via pyenv)
- create a virtualenv
- pip install tensorflow
- pip install importlab
- importlab --tree my_file.py
and it worked fine. could you describe your setup?
from importlab.
looking at your backtrace, this might be a windows-specific issue, since the crash occurred while importlib
was processing ctypes.wintypes
. i'll investigate further.
from importlab.
okay, can reproduce the error message by import ctypes.wintypes
under linux. i'm not sure why it was trying to do that; since i cannot reproduce it locally i'll try pushing a new version of importlab with detailed debug logging.
from importlab.
Thanks
And yes I'm on linux, no virtual env though, just used sudo pip install
.
from importlab.
I can confirm that when using virtualenv this error doesn't trigger.
from importlab.
i can no longer reproduce this even by import cytypes.wintypes, so i think some of the fixes around gracefully handling unreadable files addressed this issue as well. please reopen the bug if it is still happening for you.
from importlab.
Related Issues (20)
- Importlab doesn't work when passed a directory.
- importlab interacts badly with `pyenv local` HOT 4
- Crash when analyzing files of different Python versions
- Incorrect inferred module name for __init__.py files
- Name clash between input file and system file leads to incorrect dependency tree. HOT 1
- Can't find pip-installed google-auth in Python 2
- pyenv breaks unittests
- Improve the default value of the --python-version option HOT 5
- use strongly connected component detection in the graph builder HOT 2
- Don't require .py extension
- module recorded as "unreadable" when one of its direct dependencies is unloadable
- Tags are not up to date with pypi HOT 1
- Include tests in sdist
- port the ninja file generator from pytype
- Command-line tool needs extension? HOT 1
- Add --version to bin importlab for auto generate man page via help2man
- Run tests via python > 3.0 failed HOT 4
- version 0.8 seems to miss some imports HOT 4
- Importlab should not execute the code it analyzes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from importlab.