-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError of IP address #61
Comments
Hi @DangerLin I missed this in the inbox before vacation. If this is still a problem, can you share the code you use to connect? |
Hi @KennethNielsen I've got the same issue with this issue.
The code I ran was a copy paste of the example code from read the docs.
The point at which the code failed was
I'm running python 3.11.4 in a windows environment. |
Hi Kenneth, my code is attached below:
|
Hi, sir, if you have a solution, could you please let me know? Thank you! |
Sorry, for the slow answer time. This seems to be a signature that changed over time, maybe after the whole Python2/3 debacle. The ip_address = "192.168.1.2".encode("ascii") if this works, I will make a fix around it. |
Hi there! When I tried to use the bio_logic module to control my potentiostat (SP-150e), it returned an error message saying TypeError. The script I used is from the test example of the package. And I am quite sure I have typed the IP address correctly as a string.
Could anyone help me with this issue? Thanks a lot!
Traceback (most recent call last): File "D:\Scripts\test.py", line 310, in <module> test_cv_technique() File "D:\Scripts\test.py", line 166, in test_cv_technique sp150.connect() File "D:\Anaconda\envs\test_env_EClab\lib\site-packages\PyExpLabSys\drivers\bio_logic.py", line 260, in connect address = create_string_buffer(self.address) File "D:\Anaconda\envs\test_env_EClab\lib\ctypes\__init__.py", line 66, in create_string_buffer raise TypeError(init) TypeError: 192.168.72.01
The text was updated successfully, but these errors were encountered: