So Python is here, almost?

trying to install python and the tickblase-api;

following instructions, the first issue is that Python, the directed version 3.12.8 is old and unsupported.

I finally managed to get 3.12.10 installed. and tickblaze-api installed per directions

then the instructions say to run from a terminal; 'tbapi init' this results in an error because it says it wants a module pythonnet. after installing pythonnet there is another error when trying 'tbapi init'. the file, imports.py, is trying to call the clr module with clr.AddReference but the error message states that 'clr' has no attribute 'Add Reference'.

C:\Users\ajjjd\pythontb>tbapi init -p c:\Users\ajjjd\pythontb

Traceback (most recent call last):

File "<frozen runpy>", line 198, in runmodule_as_main

File "<frozen runpy>", line 88, in runcode

File "C:\Users\ajjjd\AppData\Local\Programs\Python\Python312\Scripts\tbapi.exe\__main__.py", line 4, in <module>

File "C:\Users\ajjjd\AppData\Local\Programs\Python\Python312\Lib\site-packages\tbapi\__init__.py", line 23, in <module>

from .imports import *

File "C:\Users\ajjjd\AppData\Local\Programs\Python\Python312\Lib\site-packages\tbapi\imports.py", line 25, in <module>

clr.AddReference(_assembly_path)

^^^^^^^^^^^^^^^^

AttributeError: module 'clr' has no attribute 'AddReference'

so dead end so far...

1
2 replies