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

Cannot import Profile (DLL failed) #48

Closed
Tjorriemorrie opened this issue Aug 22, 2018 · 4 comments
Closed

Cannot import Profile (DLL failed) #48

Tjorriemorrie opened this issue Aug 22, 2018 · 4 comments

Comments

@Tjorriemorrie
Copy link

Getting following stacktrace running python2:

  File "C:\xplanbase\version\99.99.999\src\py\xpt\resourceful\api\portfolio\modelling.py", line 571, in __call__
    from pyinstrument import Profiler
  File "C:\Python27\lib\site-packages\pyinstrument\__init__.py", line 1, in <module>
    from pyinstrument.profiler import Profiler
  File "C:\Python27\lib\site-packages\pyinstrument\profiler.py", line 8, in <module>
    from pyinstrument_cext import setstatprofile
ImportError: DLL load failed: The specified module could not be found.

I have
pyinstrument==2.1.1
pyinstrument-cext==0.2.0

@joerick
Copy link
Owner

joerick commented Aug 22, 2018 via email

@Tjorriemorrie
Copy link
Author

Tjorriemorrie commented Aug 23, 2018

It's setup for work, so many things going on ;)
I'll have to pull cest and try to debug it locally to find it then.
I don't know c unfortunately, how do I run the tests?
I've made the build with debugging enabled:
2018-08-23 12_56_16-pyinstrument_cext c__users_jaco jansen_code_pyinstrument_cext - _ travis ym
but I'm not sure how to use that in the test?

@joerick
Copy link
Owner

joerick commented Aug 23, 2018 via email

@Tjorriemorrie
Copy link
Author

That works fine. I did however uninstall pyinstrument_cext and then ran
python setup.py install and now it works.

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

2 participants