nuno-faria / tiler

👷 Build images with images
MIT License
5.89k stars 423 forks source link

TypeError: flip() missing 1 required positional argument: 'axis' #30

Closed Clowne1 closed 4 years ago

Clowne1 commented 4 years ago

WHEN I RUN :"python tiler.py images/gypsophila.png tiles/at/gen_at" , GET: File "tiler.py", line 188, in create_tiled_image place_tile(img,box) File "tiler.py", line 173, in place_tile p1 = np.flip(box['pos']) TypeError: flip() missing 1 required positional argument: 'axis'

Clowne1 commented 4 years ago

the problem is solved when i run p1 = np.flip(box['pos'],0)

nuno-faria commented 4 years ago

Are you using Python 3?

Clowne1 commented 4 years ago

yes, i am using Python 3.7 by Anconda

发自我的iPhone

------------------ Original ------------------ From: nuno-faria <notifications@github.com> Date: Sat,Oct 19,2019 0:10 AM To: nuno-faria/tiler <tiler@noreply.github.com> Cc: Clowne1 <863959866@qq.com>, Author <author@noreply.github.com> Subject: Re: [nuno-faria/tiler] TypeError: flip() missing 1 required positional argument: 'axis' (#30)

nuno-faria commented 4 years ago

You must be using an outdated version of numpy. The current version is 1.17.0, and the flip method doesn't need the axis argument (see https://docs.scipy.org/doc/numpy-1.17.0/reference/generated/numpy.flip.html).

I don't use Anaconda, but running conda update numpy should solve your issue.