Skip to content
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

Open
arthurpalayer opened this issue Jul 17, 2023 · 1 comment

Comments

@arthurpalayer
Copy link

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
@Hugovdberg
Copy link
Owner

Hugovdberg commented Jul 17, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants