polm / posuto

🏣📮〠 Japanese postal code data.
MIT License
204 stars 11 forks source link

Error with version 0.2.0, TypeError: argument 1 must be str, not PosixPath #5

Closed globophobe closed 3 years ago

globophobe commented 3 years ago
      8 DBPATH = Path(__file__).parent / 'postaldata.db'
----> 9 CONN = sqlite3.connect(DBPATH)
     10 DB = CONN.cursor()
     11 

TypeError: argument 1 must be str, not PosixPath

By downgrading to 0.1.15, I could resolve the problem.

polm commented 3 years ago

Thanks for the report and sorry for the trouble.

That's kind of a surprising error. Based on this issue, maybe you're using Python 3.6? If that's not it, please tell me your Python version and OS.

If the issue is Python 3.6, then this can be resolved by casting the path to a string, so that won't be a big deal.

globophobe commented 3 years ago

Thanks, it was Python 3.6

polm commented 3 years ago

OK, I think it should be fixed, could you install the latest alpha with the following and confirm?

pip install posuto==0.2.1a1
globophobe commented 3 years ago

That fixed it. Thanks!

polm commented 3 years ago

Thanks for confirming, I'll make an official release.