-
Notifications
You must be signed in to change notification settings - Fork 40
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
Attribute Error: AFBufferOption, tried venv, also local download how fix? #713
Comments
This is an issue with different versions of the PI AF SDK, some newer
functionality is used in PIconnect that is not available in the installed
PI software on your computer. Is it possible to upgrade the SDK? I'm still
trying to figure out a way to support multiple versions of the SDK without
a lot of manual labour and without needing to support different versions of
PIconnect which everyone should select the version matching their software
from...
Op ma 17 jul. 2023 21:07 schreef arthurpalayer ***@***.***>:
… Bug report Description
cannot import PIconnect, can connect to PI servers through PI process
book, but not through python. No admin privileges.
To Reproduce
$python
import piconnect
Expected behavior
Can connect to PI servers through Python and import data
Possible solutions
getting admin rights possibly? This same error occured when could not
connect to PI Processbook, but can now connect to PI Processbook and no
longer to PIconnect.
Screenshots
OSIsoft(r) AF SDK Version: 2.5.2.5396
Traceback (most recent call last):
File "", line 1, in
File
"C:\Users\myusername\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\PIconnect_
*init*_.py", line 7, in
from PIconnect.PI import PIServer
File
"C:\Users\myusername\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\PIconnect\PI.py",
line 8, in
import PIconnect.PIPoint as PIPoint_
File
"C:\Users\myusername\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\PIconnect\PIPoint.py",
line 4, in
from PIconnect import AF, PIConsts, PIData, _time
File
"C:\Users\myusername\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\PIconnect\PIData.py",
line 56, in
class PISeriesContainer(abc.ABC):
File
"C:\Users\myusername\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\PIconnect\PIData.py",
line 595, in PISeriesContainer
buffer_mode: AF.Data.AFBufferOption,
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: AFBufferOption
System
- OS: \Windows
- Python version: 3.11 (also tested 2.9)
- PIconnect version: most recent 0.10.6
—
Reply to this email directly, view it on GitHub
<#713>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABU7VX7CMZ2DJFICMQ6Q5MTXQWENJANCNFSM6AAAAAA2NLPSUY>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
Description
cannot import PIconnect, can connect to PI servers through PI process book, but not through python. No admin privileges.
To Reproduce
$python
Expected behavior
Can connect to PI servers through Python and import data
Possible solutions
getting admin rights possibly? This same error occured when could not connect to PI Processbook, but can now connect to PI Processbook and no longer to PIconnect.
Screenshots
OSIsoft(r) AF SDK Version: 2.5.2.5396
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\myusername\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\PIconnect_init_.py", line 7, in
from PIconnect.PI import PIServer
File "C:\Users\myusername\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\PIconnect\PI.py", line 8, in
import PIconnect.PIPoint as PIPoint_
File "C:\Users\myusername\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\PIconnect\PIPoint.py", line 4, in
from PIconnect import AF, PIConsts, PIData, _time
File "C:\Users\myusername\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\PIconnect\PIData.py", line 56, in
class PISeriesContainer(abc.ABC):
File "C:\Users\myusername\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\PIconnect\PIData.py", line 595, in PISeriesContainer
buffer_mode: AF.Data.AFBufferOption,
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: AFBufferOption
System
The text was updated successfully, but these errors were encountered: