# Create Part Comparison Analysis Error

**URL:** <https://community.materialise.com/t/create-part-comparison-analysis-error/505>\
**Category:** MIS - Scripting Forum\
**Tags:** 3-matic\
**Created:** [August 18, 2021, 5:13pm UTC](https://community.materialise.com/t/create-part-comparison-analysis-error/505 "2021-08-18T17:13:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![IAF2022](https://avatars.discourse-cdn.com/v4/letter/i/278dde/32.png) [@IAF2022](https://community.materialise.com/u/IAF2022)\
**Post date:** [August 18, 2021, 5:13pm UTC](https://community.materialise.com/t/create-part-comparison-analysis-error/505/1 "2021-08-18T17:13:12Z")

</div>

I’m attempting to create a script that uses the ‘trimatic.create\_part\_comparison\_analysis’ command, but I’ve been running into a weird AttributeError. The code I’m using is the first picture below. The error is the second picture below.

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/materialiseacademy/original/1X/6988030b7af298e2efb98fc01a11b2ad806d202b.png)

 ![image](https://canada1.discourse-cdn.com/flex035/uploads/materialiseacademy/original/1X/bcefa503971d3a3c728665356f7d9dd94ead64f4.png)

What’s weird is that when I inspect the pymatic file, it does have the correct module (see below picture).  
 ![image](https://canada1.discourse-cdn.com/flex035/uploads/materialiseacademy/original/1X/4defbc25bea75ca929293ebf81195575a176bc36.png)

How do I fix this error?

Thank you in advance for your assistance,  
Ian
