>From the PyCall documentation:

   - 
   
   By default, PyCall doesn't include the current directory in the Python 
   search path <https://github.com/stevengj/PyCall.jl/issues/48>. If you 
   want to do that (in order to load a Python module from the current 
   directory), just run unshift!(PyVector(pyimport("sys")["path"]), "").
   
<https://github.com/stevengj/PyCall.jl#python-object-interfaces>
I think this might be your issue?
Christoph


On Saturday, 31 October 2015 19:52:56 UTC, Cedric St-Jean wrote:
>
> Have you tried just `@pycall module_name` ? If your module is in your 
> python search-path 
> <https://docs.python.org/2/tutorial/modules.html#the-module-search-path> 
> (or the current directory), it should be found. See the examples 
> <https://github.com/stevengj/PyCall.jl#usage>.
>
>
> On Saturday, October 31, 2015 at 12:33:05 PM UTC-4, [email protected] 
> wrote:
>>
>> Dear community, 
>> As so many of us, I have tried binding in my own Python code into Julia. 
>> Standard libraries can be called easily using PyCall. Fine and dandy, but 
>> what if I wish to 
>> call my own functions written in Python? Do I need to add them to some 
>> path or copy them somewhere before I can call them with PyCall?
>> (I am using OS X btw.) 
>> Are there good tutorials on this?
>> Thanks !
>>
>

Reply via email to