Fix build index problem in reinstallation#16
Conversation
| zipcodetw.builder.build() | ||
| try: | ||
| zipcodetw.builder.build() | ||
| except: |
There was a problem hiding this comment.
This should catch only sqlite's exception .
A better approach is to fix the code inside .builder
jayvdb
left a comment
There was a problem hiding this comment.
Note I also encounter this when installing for the first time in rpmbuild, because packaging splits setup.py build and setup.py install into two steps. Thanks for the fix.
https://build.opensuse.org/package/show/home:jayvdb:py-new/python-zipcodetw
|
Hmmm ... I can install after uninstall or |
Sounds like you were using pip and had an environment which doesnt replicate the problem. Try using Nothing has exception handling if the tables already exist. |
|
Could you kindly confirm the issue is same as #31? |
|
It is unrelated to #31 |
As the error code while doing reinstallation(remove and install again):
The code in setup.py: zipcodetw.builder.build() will cause the error above which need to [try expect] to let reinstallation can be successfully, thxs ~