Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime issues when adding shapefile #4

Open
matthewellis02 opened this issue Feb 17, 2022 · 0 comments
Open

runtime issues when adding shapefile #4

matthewellis02 opened this issue Feb 17, 2022 · 0 comments

Comments

@matthewellis02
Copy link
Collaborator

Exception in Tkinter callback
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py", line 1547, in __call__
    return self.func(*args)
  File "main_menu.py", line 68, in __openShpfile
    dbfFile = dbf.DbfLoader(directory[:-3] + "dbf")
  File "/Users/matthewellis/Downloads/Python-Tool-Sample-py3-main/dbfload.py", line 65, in __init__
    if (dbfFileName): self.loadDbfFileName(dbfFileName)
  File "/Users/matthewellis/Downloads/Python-Tool-Sample-py3-main/dbfload.py", line 71, in loadDbfFileName
    self.loadDbfFile(dbfs)
  File "/Users/matthewellis/Downloads/Python-Tool-Sample-py3-main/dbfload.py", line 80, in loadDbfFile
    self.readHeaderData(dbfFile)
  File "/Users/matthewellis/Downloads/Python-Tool-Sample-py3-main/dbfload.py", line 96, in readHeaderData
    fieldCount = (self.headerLength - 33) / 32
TypeError: unsupported operand type(s) for -: 'str' and 'int'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant