App is not launching when run python kodacad.py
When I run the command python kodacad.py in Terminal, it just prints OCCT version and nothing happens. No error, no app. I checked in the code and it stops execution at the following line -
doc = TDocStd_Document(TCollection_ExtendedString(doc_format))
I added try except block but it is not throwing exception at this line. Any idea what I am missing?
ajendrasing-pardeshi- Thanks for your question. I haven't looked at the code in a few years. Pythonocc is now at a newer version (7.8.1) and I haven't kept it up to date. However I did check to make sure Kodacad still works OK with version 7.5.1 and it does. If you follow the instructions at https://dblanding.github.io/kodacad/ you should be able to get it going. I used miniconda and created an environment based on Python 3.10
conda create --name=pyoccenv python=3.10 source activate pyoccenv
conda install -c conda-forge python
conda install anaconda::pyqt
Then launch Kodacad: python3 kodacad.py
I did discover one problem in File: "/home/doug/kodacad/mainwindow.py", line 276 Float values needed to be converted to ints. I made this correction and the app works OK. I hope this helps. Best regards, -Doug
On Fri, Dec 20, 2024 at 6:03 AM rajendrasing-pardeshi < @.***> wrote:
When I run the command python kodacad.py in Terminal, it just prints OCCT version and nothing happens. No error, no app. I checked in the code and it stops execution at the following line -
doc = TDocStd_Document(TCollection_ExtendedString(doc_format))
I added try except block but it is not throwing exception at this line. Any idea what I am missing?
— Reply to this email directly, view it on GitHub https://github.com/dblanding/kodacad/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMXQDUGIWOYBF3ZKWGJ23E32GP2RRAVCNFSM6AAAAABT645DYSVHI2DSMVQWIX3LMV43ASLTON2WKOZSG42TENBZHEZDIMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>