# Globio AttributError: 'None Type' has no attribute 'ExportToWkb'

**URL:** <https://community.naturalcapitalalliance.org/t/globio-attributerror-none-type-has-no-attribute-exporttowkb/911>\
**Category:** Software Support\
**Tags:** globio\
**Created:** [April 6, 2020, 12:37pm UTC](https://community.naturalcapitalalliance.org/t/globio-attributerror-none-type-has-no-attribute-exporttowkb/911 "2020-04-06T12:37:08Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![dcdenu4](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/dcdenu4/32/544_2.png) [@dcdenu4](https://community.naturalcapitalalliance.org/u/dcdenu4)\
**Post date:** [April 6, 2020, 12:37pm UTC](https://community.naturalcapitalalliance.org/t/globio-attributerror-none-type-has-no-attribute-exporttowkb/911/1 "2020-04-06T12:37:08Z")

</div>

This is a re-post for @rbisht so as not to clutter up topics or threads with different issues.

hi @swolny, @dcdenu4  
Can you plz help me in solving this. I got this new error in running globio model.How can i resolve this issue?

 ![globio_error](https://canada1.discourse-cdn.com/flex031/uploads/naturalcapitalproject/original/1X/dc354228aef81defc485e60f347cc2106b0a649d.png)

---

<div class="post-metadata">

**Author:** ![dcdenu4](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/dcdenu4/32/544_2.png) [@dcdenu4](https://community.naturalcapitalalliance.org/u/dcdenu4)\
**Post date:** [April 6, 2020, 12:38pm UTC](https://community.naturalcapitalalliance.org/t/globio-attributerror-none-type-has-no-attribute-exporttowkb/911/2 "2020-04-06T12:38:37Z")

</div>

Hi @rbisht,

I re-posted your issue above into a new topic so that we can keep the other topics you posted in focused on the original issue of those topics.

Do you think you could attach your entire text log file that is generated by the model into your workspace?

Doug

---

<div class="post-metadata">

**Author:** ![rbisht](https://avatars.discourse-cdn.com/v4/letter/r/f475e1/32.png) [@rbisht](https://community.naturalcapitalalliance.org/u/rbisht)\
**Post date:** [April 6, 2020, 1:00pm UTC](https://community.naturalcapitalalliance.org/t/globio-attributerror-none-type-has-no-attribute-exporttowkb/911/3 "2020-04-06T13:00:19Z")

</div>

I apologize for posting in another topic.  
I am attaching you the log file. plz check[InVEST-GLOBIO-log-2020-04-06–12\_35\_19.txt](https://community.naturalcapitalalliance.org/uploads/short-url/bSrGUlq3f6soOtZhTv5O5bFAXw.txt) (9.1 KB)

---

<div class="post-metadata">

**Author:** ![jdouglass](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/jdouglass/32/9_2.png) [@jdouglass](https://community.naturalcapitalalliance.org/u/jdouglass)\
**Post date:** [April 6, 2020, 5:17pm UTC](https://community.naturalcapitalalliance.org/t/globio-attributerror-none-type-has-no-attribute-exporttowkb/911/4 "2020-04-06T17:17:47Z")

</div>

Hi @rbisht,

Given what I can see in the logfile, is it possible that your AOI vector has a feature (or multiple features) without a geometry? It looks like InVEST is crashing because it’s expecting a geometry for all features in the AOI, but it’s unable to find a geometry for at least one feature.

Thanks!  
James

---

<div class="post-metadata">

**Author:** ![rbisht](https://avatars.discourse-cdn.com/v4/letter/r/f475e1/32.png) [@rbisht](https://community.naturalcapitalalliance.org/u/rbisht)\
**Post date:** [April 7, 2020, 5:01am UTC](https://community.naturalcapitalalliance.org/t/globio-attributerror-none-type-has-no-attribute-exporttowkb/911/5 "2020-04-07T05:01:23Z")

</div>

Hi @jdouglass,  
Thankyou so much for your great help. It works finally.

---

<div class="post-metadata">

**Author:** ![rbisht](https://avatars.discourse-cdn.com/v4/letter/r/f475e1/32.png) [@rbisht](https://community.naturalcapitalalliance.org/u/rbisht)\
**Post date:** [April 7, 2020, 12:21pm UTC](https://community.naturalcapitalalliance.org/t/globio-attributerror-none-type-has-no-attribute-exporttowkb/911/6 "2020-04-07T12:21:20Z")

</div>

hi @jdouglass,  
One thing i want to confirm that MSA Values could be negative also in AOI?  
[InVEST-GLOBIO-log-2020-04-07–17\_43\_14.txt](https://community.naturalcapitalalliance.org/uploads/short-url/46xtlhblL0JNwrDteJ20L6W1n1X.txt) (7.8 KB) [Globio\_AOI\_attribute.csv](https://community.naturalcapitalalliance.org/uploads/short-url/7RRZ6qiTWTYSAmtH5p8s7sDS8Ij.csv) (22.2 KB)

---

<div class="post-metadata">

**Author:** ![jdouglass](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/jdouglass/32/9_2.png) [@jdouglass](https://community.naturalcapitalalliance.org/u/jdouglass)\
**Post date:** [April 10, 2020, 10:37pm UTC](https://community.naturalcapitalalliance.org/t/globio-attributerror-none-type-has-no-attribute-exporttowkb/911/7 "2020-04-10T22:37:14Z")

</div>

Hi @rbisht, I do not think that I’d expect the model to produce negative `msa_mean` values, and it’s possible that these negative values are the result of some misconfiguration of your inputs. Could you share your inputs with us here so we can take a look?

Thanks,  
James

---

<div class="post-metadata">

**Author:** ![rbisht](https://avatars.discourse-cdn.com/v4/letter/r/f475e1/32.png) [@rbisht](https://community.naturalcapitalalliance.org/u/rbisht)\
**Post date:** [April 11, 2020, 5:44am UTC](https://community.naturalcapitalalliance.org/t/globio-attributerror-none-type-has-no-attribute-exporttowkb/911/8 "2020-04-11T05:44:30Z")

</div>

Hi @jdouglass,  
I am sharing you the AOI which has generated and the log file with it. Please let me know the issue and the solution to resolve it.  
Thankyou

Regards  
Rajani Bisht[InVEST-GLOBIO-log-2020-04-07–16\_51\_37.txt](https://community.naturalcapitalalliance.org/uploads/short-url/j4zhWSQSO6CZkUfBIX0Yfv8YnjB.txt) (12.2 KB) [aoi\_summary.zip](https://community.naturalcapitalalliance.org/uploads/short-url/rWNSfKiSrSyHRSX5WCBbSiwwyk3.zip) (407.9 KB)

---

<div class="post-metadata">

**Author:** ![jdouglass](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/jdouglass/32/9_2.png) [@jdouglass](https://community.naturalcapitalalliance.org/u/jdouglass)\
**Post date:** [April 14, 2020, 4:36pm UTC](https://community.naturalcapitalalliance.org/t/globio-attributerror-none-type-has-no-attribute-exporttowkb/911/9 "2020-04-14T16:36:48Z")

</div>

Thanks for sharing your outputs, but would you please share your model _inputs_ so that we can pinpoint the issue?

---

<div class="post-metadata">

**Author:** ![rbisht](https://avatars.discourse-cdn.com/v4/letter/r/f475e1/32.png) [@rbisht](https://community.naturalcapitalalliance.org/u/rbisht)\
**Post date:** [April 15, 2020, 3:45am UTC](https://community.naturalcapitalalliance.org/t/globio-attributerror-none-type-has-no-attribute-exporttowkb/911/10 "2020-04-15T03:45:10Z")

</div>

Hi @jdouglass,  
Thankyou for your response, I am sharing you the shapefile of the AOI. Please check the input.[bene\_2018.zip](https://community.naturalcapitalalliance.org/uploads/short-url/9Js2wlbIr1HnxoG3NTyRWtOzmp4.zip) (412.0 KB) [bene\_2013.zip](https://community.naturalcapitalalliance.org/uploads/short-url/mbe7StbAhgWwwOnUchiYwCTJbhO.zip) (398.3 KB)

---

<div class="post-metadata">

**Author:** ![jdouglass](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/jdouglass/32/9_2.png) [@jdouglass](https://community.naturalcapitalalliance.org/u/jdouglass)\
**Post date:** [April 17, 2020, 10:11pm UTC](https://community.naturalcapitalalliance.org/t/globio-attributerror-none-type-has-no-attribute-exporttowkb/911/11 "2020-04-17T22:11:11Z")

</div>

@rbisht, I’m happy to take a look, but in order to do so, I need to see the complete set of model inputs so that I can reproduce the issue. It looks like you’ve only uploaded your AOI vectors. For your sample data, that means I need to see these files and folders (based on your logfile):

1. `E:/ELD_Final_16.10.19/Villages_shapefile/Datia/bene_2018_re.shp`
2. `E:/ELD_Final_16.10.19/Villages_shapefile/Datia/INVEST/GLOBIO/bene_2018_new.tif`
3. `E:/ELD_Final_16.10.19/Villages_shapefile/Datia/INVEST/GLOBIO/INFRA_DIR_BENE_18`
4. `E:/INVEST/invest_3.7.0_data_globio/globio/msa_parameters.csv`

Feel free to share those inputs over some filesharing service like dropbox or google drive if that’s easiest.

Thanks,  
James

---

<div class="post-metadata">

**Author:** ![dave](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/dave/32/70_2.png) [@dave](https://community.naturalcapitalalliance.org/u/dave)\
**Post date:** [May 22, 2023, 2:17pm UTC](https://community.naturalcapitalalliance.org/t/globio-attributerror-none-type-has-no-attribute-exporttowkb/911/12 "2023-05-22T14:17:43Z")

</div>

A post was split to a new topic: [“AttributeError: ‘NoneType’ object has no attribute ‘ExportToWkb’](https://community.naturalcapitalalliance.org/t/attributeerror-nonetype-object-has-no-attribute-exporttowkb/3788)

---

<div class="post-metadata">

**Author:** ![dave](https://yyz1.discourse-cdn.com/flex031/user_avatar/community.naturalcapitalalliance.org/dave/32/70_2.png) [@dave](https://community.naturalcapitalalliance.org/u/dave)\
**Post date:** [May 22, 2023, 2:18pm UTC](https://community.naturalcapitalalliance.org/t/globio-attributerror-none-type-has-no-attribute-exporttowkb/911/13 "2023-05-22T14:18:52Z")

</div>


