Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pyrasite-memory-viewer error #11

Open
xutengfei opened this issue Aug 7, 2017 · 4 comments
Open

pyrasite-memory-viewer error #11

xutengfei opened this issue Aug 7, 2017 · 4 comments

Comments

@xutengfei
Copy link

Environment: Mac virtualenv python2.6

pyrasite-memory-viewer 78158
Traceback (most recent call last):
File "/Users/eric/softpack/virtualenv/python2/bin/pyrasite-memory-viewer", line 11, in
load_entry_point('pyrasite==2.0', 'console_scripts', 'pyrasite-memory-viewer')()
File "/Users/eric/softpack/virtualenv/python2/lib/python2.7/site-packages/pyrasite/tools/memory_viewer.py", line 150, in main
objects = loader.load(filename)
File "/Users/eric/softpack/virtualenv/python2/lib/python2.7/site-packages/meliae/loader.py", line 529, in load
source, cleanup = files.open_file(source)
File "/Users/eric/softpack/virtualenv/python2/lib/python2.7/site-packages/meliae/files.py", line 32, in open_file
source = open(filename, 'rb')
IOError: [Errno 2] No such file or directory: '/tmp/pyrasite-78158-objects.json'

Thanks for help

@naoko
Copy link

naoko commented Sep 18, 2017

I am getting the same error on Ubuntu python 3.6 virtualenv

pyrasite-memory-viewer 16847
Traceback (most recent call last):
  File "/usr/local/bin/pyrasite-memory-viewer", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/pyrasite/tools/memory_viewer.py", line 150, in main
    objects = loader.load(filename)
  File "/usr/lib/python2.7/dist-packages/meliae/loader.py", line 529, in load
    source, cleanup = files.open_file(source)
  File "/usr/lib/python2.7/dist-packages/meliae/files.py", line 32, in open_file
    source = open(filename, 'rb')
IOError: [Errno 2] No such file or directory: '/tmp/pyrasite-16847-objects.json'

appreciate any advice. thank you.

@andrewhavck
Copy link

@naoko Running the following commands helped resolve this issue for me on Ubuntu

# Used by pyrasite to inject code into a running process
sudo apt-get install gdb
 
# Used to allow pyrasite to inspect the internals of a running process
sudo apt-get install python-dbg
 
# Make sure that gdb can find debugging symbols for the virtualenv python
sudo mkdir -p /usr/lib/debug/opt/edx
sudo ln -s /usr/lib/debug/{usr,opt/edx}/bin
 
# Enable ptrace
echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope

pip install Cython
pip install pyrasite meliae urwid

Source

@hellertang
Copy link

pyrasite-memory-viewer 45669 Traceback (most recent call last): File "/usr/local/bin/pyrasite-memory-viewer", line 11, in <module> sys.exit(main()) File "/usr/local/lib/python2.7/site-packages/pyrasite/tools/memory_viewer.py", line 150, in main objects = loader.load(filename) File "/usr/local/lib/python2.7/site-packages/meliae/loader.py", line 529, in load source, cleanup = files.open_file(source) File "/usr/local/lib/python2.7/site-packages/meliae/files.py", line 32, in open_file source = open(filename, 'rb') IOError: [Errno 2] No such file or directory: '/tmp/pyrasite-45669-objects.json'
appreciate any advice. thank you.

@qq1018408006
Copy link

@naoko Running the following commands helped resolve this issue for me on Ubuntu

# Used by pyrasite to inject code into a running process
sudo apt-get install gdb
 
# Used to allow pyrasite to inspect the internals of a running process
sudo apt-get install python-dbg
 
# Make sure that gdb can find debugging symbols for the virtualenv python
sudo mkdir -p /usr/lib/debug/opt/edx
sudo ln -s /usr/lib/debug/{usr,opt/edx}/bin
 
# Enable ptrace
echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope

pip install Cython
pip install pyrasite meliae urwid

Source

it didnt work for me on ubuntu 20.03, python 3.8. There still exists error 'no such file or directory '/tmp/pyrasite-3572-objects.json'
'

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

No branches or pull requests

5 participants