paulgb / penkit

Tools for pen plotting in Python
MIT License
142 stars 8 forks source link

TypeError: Wrong number or type of arguments #5

Closed sunjaxx closed 3 years ago

sunjaxx commented 3 years ago

I am on win 10, and I'm getting:

TypeError: Wrong number or type of arguments for overloaded function 'new_RoutingModel'.
  Possible C/C++ prototypes are:
    operations_research::RoutingModel::RoutingModel(operations_research::RoutingIndexManager const &)
    operations_research::RoutingModel::RoutingModel(operations_research::RoutingIndexManager const &,operations_research::RoutingModelParameters const &)

Any suggestions? Thanks

javogel commented 3 years ago

I'm on mac and getting this same error. I installed penkit-optimize for python3 and spatialindex using brew. Any advice on how to troubleshoot this?

lr1729 commented 3 years ago

This is fixed in #4

paulgb commented 3 years ago

Thanks for reporting and sorry for the slow reply, it took a while to find the time to set up an environment and replicate. I've fixed the issue and if you run pip install -U penkit-optimize it should solve them, if not let me know and I'll be more responsive this time.

paulgb commented 3 years ago

(Actually, credit where it's due, @lr1729 fixed the issue; I just merged it)