# Python processing error

**URL:** <https://forum.electroneek.com/t/python-processing-error/3269>\
**Category:** Studio Pro\
**Tags:** python\
**Created:** [March 31, 2023, 6:17am UTC](https://forum.electroneek.com/t/python-processing-error/3269 "2023-03-31T06:17:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![yaseen](https://forum.electroneek.com/user_avatar/forum.electroneek.com/yaseen/32/1488_2.png) [@yaseen](https://forum.electroneek.com/u/yaseen)\
**Post date:** [March 31, 2023, 6:17am UTC](https://forum.electroneek.com/t/python-processing-error/3269/1 "2023-03-31T06:17:41Z")

</div>

![PythonError](https://forum.electroneek.com/uploads/default/original/2X/9/9f2e282647da1a1a7e90bc13dc8e8edf59673a84.png)  
Hi keep getting this error when trying to run my python code with electroneek.  
 ![python](https://forum.electroneek.com/uploads/default/original/2X/3/35cd94c07e4b7a0201e5237e39b14102e4d5d1d2.png)

---

<div class="post-metadata">

**Author:** ![Ivan\_Ramos](https://forum.electroneek.com/user_avatar/forum.electroneek.com/ivan_ramos/32/707_2.png) [@Ivan\_Ramos](https://forum.electroneek.com/u/Ivan_Ramos)\
**Post date:** [March 31, 2023, 1:48pm UTC](https://forum.electroneek.com/t/python-processing-error/3269/2 "2023-03-31T13:48:36Z")

</div>

Hello @yaseen,

Have you tried running this same code from outside an ElectroNeek workflow? If so, are you getting the same error, a different one, or no error at all?

Also, could you copy the full code and paste it into a comment? The error suggests that there is a constant declaration but I can’t see one in the image you shared.

Thank you!

---

<div class="post-metadata">

**Author:** ![dsantamaria](https://forum.electroneek.com/user_avatar/forum.electroneek.com/dsantamaria/32/1486_2.png) [@dsantamaria](https://forum.electroneek.com/u/dsantamaria)\
**Post date:** [November 1, 2023, 6:17pm UTC](https://forum.electroneek.com/t/python-processing-error/3269/3 "2023-11-01T18:17:43Z")

</div>

I have the same exact problem. it runs correctly outside Electroneek on Visual Studio

---

<div class="post-metadata">

**Author:** ![Ivan\_Ramos](https://forum.electroneek.com/user_avatar/forum.electroneek.com/ivan_ramos/32/707_2.png) [@Ivan\_Ramos](https://forum.electroneek.com/u/Ivan_Ramos)\
**Post date:** [November 6, 2023, 2:30pm UTC](https://forum.electroneek.com/t/python-processing-error/3269/4 "2023-11-06T14:30:04Z")

</div>

Hi @dsantamaria,

Could you please share the error that you are getting on Studio Pro when trying to run the “Execute Python” activity, similar to how @yaseen did on the original post? Also, please provide the code that you are trying to run. I will try to reproduce the issue and find a fix.

Thank you!

---

<div class="post-metadata">

**Author:** ![Oscar\_Gonzalez](https://forum.electroneek.com/user_avatar/forum.electroneek.com/oscar_gonzalez/32/1826_2.png) [@Oscar\_Gonzalez](https://forum.electroneek.com/u/Oscar_Gonzalez)\
**Post date:** [February 26, 2024, 7:10pm UTC](https://forum.electroneek.com/t/python-processing-error/3269/5 "2024-02-26T19:10:29Z")

</div>

Hi I got the same, on vscode my python script run well but when I try to call through electroneek got an error of libraries

---

<div class="post-metadata">

**Author:** ![Oscar\_Gonzalez](https://forum.electroneek.com/user_avatar/forum.electroneek.com/oscar_gonzalez/32/1826_2.png) [@Oscar\_Gonzalez](https://forum.electroneek.com/u/Oscar_Gonzalez)\
**Post date:** [February 26, 2024, 8:32pm UTC](https://forum.electroneek.com/t/python-processing-error/3269/6 "2024-02-26T20:32:23Z")

</div>

![image](https://forum.electroneek.com/uploads/default/original/2X/c/c7bcc0183cd8a4f76dfcc0872a7b7c7623757307.png)

I already have the docxtpl library installed but the same error appears

---

<div class="post-metadata">

**Author:** ![Ivan\_Ramos](https://forum.electroneek.com/user_avatar/forum.electroneek.com/ivan_ramos/32/707_2.png) [@Ivan\_Ramos](https://forum.electroneek.com/u/Ivan_Ramos)\
**Post date:** [March 7, 2024, 3:04pm UTC](https://forum.electroneek.com/t/python-processing-error/3269/7 "2024-03-07T15:04:16Z")

</div>

Hi @Oscar_Gonzalez, as discussed via private message, my understanding is that you have opened a ticket with Support about this issue.

When you get a solution from them, it would be great if you could share it in this thread, so that if anyone has the same issue in the future, they will have a solution ready when finding this thread.

Thank you in advance!
