> Source: [sk182090](https://support.checkpoint.com/results/sk/sk182090)

# sk182090 - "SyntaxError: invalid syntax" error when running the "cpdata_collector" command

| Property | Value |
|----------|-------|
| Solution ID | sk182090 |
| Date Created | 2024-03-09 |
| Last Modified | 2024-03-10 |
| Technical Level | General |
| Products | Scalable Platforms |
| Versions | R81.20, R81.10 (EOS) |
| OS | Gaia |

## Symptoms

- * The `cpinfo -Q / cpdata_collector -r` command returns this error:

  ` 
  File "/usr/bin/cpdata_collector", line 228`  
  `
  return f"{result:.2f}{size_name[size_name_index]}"`  
  `
  ^`  
  `
  SyntaxError: invalid syntax`  
  `
  `

  <br />

* The problem occurs when the Check Point Support Data Collector (CPSDC) Tool version is Take 31.

## Cause

The */usr/bin/cpdata_collecto* r file contains an incorrect line.

<br />

## Solution

This problem was fixed. The fix is included starting from:

* [Check Point Support Data Collector (CPSDC) starting from take 33](https://support.checkpoint.com/results/sk/sk164414)

If you choose not to upgrade, do this **workaround**:

1. Navigate to an open */usr/bin/cpdata_collector* file.  

2. Use the Vi editor to replace this line:  

   `return f"{result:.2f}{size_name[size_name_index]}"`  

   With this line:  

   `return "{:.2f}{}".format(result, size_name[size_name_index])`

<br />

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
