# PyCall and @guvectorize

**URL:** <https://discourse.julialang.org/t/pycall-and-guvectorize/67008>\
**Category:** General Usage\
**Tags:** pycall, python\
**Created:** [August 25, 2021, 11:49pm UTC](https://discourse.julialang.org/t/pycall-and-guvectorize/67008 "2021-08-25T23:49:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![danicaratelli](https://avatars.discourse-cdn.com/v4/letter/d/90db22/32.png) [@danicaratelli](https://discourse.julialang.org/u/danicaratelli)\
**Post date:** [August 25, 2021, 11:49pm UTC](https://discourse.julialang.org/t/pycall-and-guvectorize/67008/1 "2021-08-25T23:49:39Z")

</div>

Hello,

I have code in python that I am trying to import in Julia. I do the following:

```julia
np = pyimport("numpy");
pyimport("numba").guvectorize;

```

and in a separate file have

```julia
py"""
@guvectorize(['void(float64[:], float64[:], uint32[:], float64[:])'], '(n),(nq)->(nq),(nq)')
def myfunction(...)

```

If I remove `@guvectorize` and run the file with the python code, it goes through, if I keep it, I get  
`NameError("name 'guvectorize' is not defined")`

Am I importing it in the wrong way? Any ideas?

Best,
