Hello,

First thank for the job, it helps a lot promoting python in science and in 
industry !


I have some trouble packaging a project that uses PyMC (which is a great 
module btw :o)). 
I have simplified the exercise --> file attached.

If i understand well pyinstaller documentation and error message, it is a 
problem of 'hidden import' coming from the fact that PyMC uses the imp 
module. But this problem occurs even when i try to explicitely load those 
modules.

I think the trouble comes from this part of PyMC, because the missing 
module is 'distances': 
https://github.com/pymc-devs/pymc/blob/master/pymc/gp/cov_funs/wrapped_distances.py

Those lines may be problematic for pyinstaller:

"
mod_search_path = [pymc.__path__[0]+'/gp/cov_funs']
imp.load_module('distances', *imp.find_module('distances',mod_search_path))
"

I think i should write a kind of 'hook file' (and it could be great to add 
it to pyinstaller because in the family of stat packages it has a great 
place) but have no idea how to start... any advices ?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/pyinstaller/-/SqRO8d75iY4J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyinstaller?hl=en.

#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
==========================
check pyinstaller and pymc
==========================

"""

import pymc
from pymc import betabin_like

a = betabin_like(3, 1, 1, 10)

print "log lik: %1.5f" %a



Reply via email to