smvv / pypy-traceview Goto Github PK
View Code? Open in Web Editor NEWStatic HTML viewer for PyPy trace logs
License: MIT License
Static HTML viewer for PyPy trace logs
License: MIT License
Hi,
I'm trying to use pypy-traceview. On Python 3.6, I get:
Traceback (most recent call last):
File "./pypy-traceview", line 12, in <module>
from pypy_traceview.renderer.html import render
File "/home/staff/gback/python/pypy-traceview/pypy_traceview/renderer/html.py", line 2, in <module>
from jinja2 import Template
File "/home/staff/gback/python/venv/lib/python3.6/site-packages/jinja2/__init__.py", line 8, in <module>
from .environment import Environment as Environment
File "/home/staff/gback/python/venv/lib/python3.6/site-packages/jinja2/environment.py", line 17, in <module>
from . import nodes
File "/home/staff/gback/python/venv/lib/python3.6/site-packages/jinja2/nodes.py", line 5, in <module>
import inspect
File "/usr/lib64/python3.6/inspect.py", line 36, in <module>
import dis
File "/usr/lib64/python3.6/dis.py", line 9, in <module>
from opcode import __all__ as _opcodes_all
ImportError: cannot import name '__all__'
I get the same error on Python 3.10:
$ PYTHONPATH=. ../venv/bin/pipenv run ./pypy-traceview ../logfile
Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own for any project. You can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create its own instead. You can set PIPENV_VERBOSITY=-1 to suppress this warning.
Traceback (most recent call last):
File "/home/gback/icpc/icpc-fall-2022/pickupsticks/pypy-traceview/./pypy-traceview", line 4, in <module>
import pstats
File "/usr/lib/python3.10/pstats.py", line 31, in <module>
from dataclasses import dataclass
File "/usr/lib/python3.10/dataclasses.py", line 5, in <module>
import inspect
File "/usr/lib/python3.10/inspect.py", line 38, in <module>
import dis
File "/usr/lib/python3.10/dis.py", line 9, in <module>
from opcode import __all__ as _opcodes_all
ImportError: cannot import name '__all__' from 'opcode' (/home/gback/icpc/icpc-fall-2022/pickupsticks/pypy-traceview/pypy_traceview/opcode.py)
It seems that you are importing dis which in turn imports opcode
but due to the PYTHONPATH
setting picks up your version instead of the system version. I note that /usr/lib/python3.10/opcode.py
has an __all__
export.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.