You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception ignored in: <function APCSmartConnect.del at 0x000001FB10D20AE0>
Traceback (most recent call last):
File "C:\Users\EyonB\AppData\Local\Programs\Python\Python312\Lib\site-packages\apc_smartconnect\APCSmartConnect.py", line 42, in del
self.cookies.save()
^^^^^^^^^^^^
AttributeError: 'APCSmartConnect' object has no attribute 'cookies'
Traceback (most recent call last):
File "F:\Programming\Python\APC\APC.py", line 7, in
apc = APCSmartConnect()
TypeError: APCSmartConnect.init() missing 1 required positional argument: 'cookie_file'
Not really sure how to get around this. Now I'm assuming I could add a file and path to apc = APCSmartConnect( file and path) but as to what type of file to create and link is a bit foreign to me.
Not a programmer per se but trying to make use of this for collecting some data metrics.
Any help would be greatly appreciated.
Eyon
The text was updated successfully, but these errors were encountered:
Not sure if how to make use of this.
Installed with pip.
Just copied your script:
import os
import tempfile
from apc_smartconnect import APCSmartConnect
cookies_temp = tempfile.NamedTemporaryFile()
apc = APCSmartConnect()
apc.login(os.getenv('APC_USER'), os.getenv('APC_PASS'))
def test_gateways():
gateways = apc.gateways()
assert type(gateways) == list
assert type(gateways[0]) == str
I get the following error:
Exception ignored in: <function APCSmartConnect.del at 0x000001FB10D20AE0>
Traceback (most recent call last):
File "C:\Users\EyonB\AppData\Local\Programs\Python\Python312\Lib\site-packages\apc_smartconnect\APCSmartConnect.py", line 42, in del
self.cookies.save()
^^^^^^^^^^^^
AttributeError: 'APCSmartConnect' object has no attribute 'cookies'
Traceback (most recent call last):
File "F:\Programming\Python\APC\APC.py", line 7, in
apc = APCSmartConnect()
TypeError: APCSmartConnect.init() missing 1 required positional argument: 'cookie_file'
Not really sure how to get around this. Now I'm assuming I could add a file and path to apc = APCSmartConnect( file and path) but as to what type of file to create and link is a bit foreign to me.
Not a programmer per se but trying to make use of this for collecting some data metrics.
Any help would be greatly appreciated.
Eyon
The text was updated successfully, but these errors were encountered: