Jump to content
Sign in to follow this  
ChrSax

PythonDelphiVar thows AttributeError that object has no attribute 'Value' Python 3.9.1 32Bit

Recommended Posts

Hi folks,

I am currently trying to familiarize myself with the ingenious Python4Delphi. I started to look at the demos.

 

Now with Demo04 I always get an AttributeError at the pyton script:

AttributeError: 'PythonDelphiVar' object has no attribute 'Value'

 

print ("Current value of var test is: ", test)
test.value = "New value set by Python"        --> Error
 

What am I doing wrong?

 

I develop 32bit applications and have therefore installed a python x86.

Python Dll:  3.9.1 (tags/v3.9.1:1e5d33e, Dec  7 2020, 16:33:24) [MSC v.1928 32 bit (Intel)]

 

My Delphi IDE is also up to date: Delphi 10.4 Version 27.0.37889.9797

 

It would be very nice if you could help me. Many thanks so far!

 

Christian

 

Share this post


Link to post

Thanks for this quick bugfix. I have tested this successfully! 👌

Next time I'll post an issue directly on GitHub.

 

Many Thanks! 👍

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×