TO start remember we can not see you so you have to tell use details
Like what is the error message? What recently changed? What version of the OS and of Photos?
THe answer to how to migrate is to drag the iPhoto library to the Photos icon in the dock
LN