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

AttributeError: __exit__ #75

Open
bbbco opened this issue Dec 20, 2017 · 5 comments
Open

AttributeError: __exit__ #75

bbbco opened this issue Dec 20, 2017 · 5 comments

Comments

@bbbco
Copy link

bbbco commented Dec 20, 2017

Description

I'm getting the following stacktrace when I run vprof (I have tried using the packaged version 0.36.1 and the latest version).

How to reproduce
╰─ vprof --version
vprof 0.37.4
vprof -o /home/bbbco/event_blaster2.json -c p "event_blaster2.py"
# Lots of output from my script that utilizes multiprocessing, requests and boto libraries.... 
# ............
Traceback (most recent call last):
  File "/home/bbbco/bin/vprof", line 11, in <module>
    load_entry_point('vprof==0.37.4', 'console_scripts', 'vprof')()
  File "/home/bbbco/lib/python3.5/site-packages/vprof/__main__.py", line 87, in main
    program_stats = runner.run_profilers(source, config, verbose=True)
  File "/home/bbbco/lib/python3.5/site-packages/vprof/runner.py", line 78, in run_profilers
    run_stats[option] = curr_profiler.run()
  File "/home/bbbco/lib/python3.5/site-packages/vprof/base_profiler.py", line 172, in run
    return self.profile()
  File "/home/bbbco/lib/python3.5/site-packages/vprof/profiler.py", line 79, in profile_module
    return base_profiler.run_in_separate_process(self._profile_module)
  File "/home/bbbco/lib/python3.5/site-packages/vprof/base_profiler.py", line 79, in run_in_separate_process
    raise exc
AttributeError: __exit__
@nvdv
Copy link
Owner

nvdv commented Dec 25, 2017

Can't reproduce this one.
Have you tried running another scripts with the same profiling parameters on this machine?

@bbbco
Copy link
Author

bbbco commented Dec 26, 2017 via email

@bbbco
Copy link
Author

bbbco commented Jan 8, 2018

Are there any debugging methods you'd recommend to provide you more info with what is going on?

@nvdv
Copy link
Owner

nvdv commented Jan 8, 2018

You might try to run profiler in the same process and see if it returns more info.

@nvdv
Copy link
Owner

nvdv commented Jan 14, 2018

Does this happen when you set another profiling option (e.g. -c c or -c h )?

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

No branches or pull requests

2 participants