nmz787 / python-brlcad-tcl

A small (but hopefully growing) subset of the brl-cad primitives, being emitted as tcl scripts that mged can directly process into database (.g) files.
GNU Lesser General Public License v3.0
10 stars 2 forks source link

kanzure/python-brlcad Py3 compatibility #1

Open scorp08 opened 5 years ago

scorp08 commented 5 years ago

Hello I tired to install brl_cad through pip install -U brlcad with py3. Returned with error. And It seems that development is stopped as nobody is repyling issues. How can I install brlcad for py3?? Thnks

nmz787 commented 5 years ago

kanzure's python library is completely different than mine which you've posted this issue on.

scorp08 commented 5 years ago

I know but nobody is replying like development is stopped. That is why I asked on this topic

brlcad commented 5 years ago

@scorp08 the python interface to BRL-CAD is not in active development, but happy to support you as much as we can, especially if you're interested in getting involved with it. Getting it to work with python3 shouldn't actually be too difficult but will undoubtedly require some minor changes as the python interface was last worked a few years ago now. Last I recall someone looking, the ctypes layer wasn't yet ready for python 3 and that was the only problem, and that's since been resolved.

If you have a specific use-case in mind, please come talk with us on brlcad.zulipchat.com as there may be alternative ways to get what you're needing faster.

nmz787 commented 5 years ago

@scorp08 have you tried this library? It simply wraps a Python API around command line calls (thus it should also be cross-platform)... The main downside is it's slower due to the added latency from opening subprocesses, instead of using a library function from the same thread. Depending on what your goals are, this package might suffice as is. I'm also open to suggestions for how to improve it.

nmz787 commented 5 years ago

All the unit-tests for Py2 and Py3 pass with this package for me (brlcad binaries on the system PATH).

scorp08 commented 5 years ago

I am writing a software whlch brl cad is a part of. Requred to sent input to library or mged and collect output. Also it need to run brlcad gui in a screen. Is it possible with this module??

nmz787 commented 5 years ago

This module does not use any BRLCAD GUIs. Please check the run_tests.py and the example directory.

On Thu, Jun 27, 2019, 9:39 PM scorp08 notifications@github.com wrote:

I am writing a software whlch brl cad is a part of. Requred to sent input to library or mged and collect output. Also it need to run brlcad gui in a screen. Is it possible with this module??

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/nmz787/python-brlcad-tcl/issues/1?email_source=notifications&email_token=AAITWRVM6OXK5QJKMPEHC7TP4WIZNA5CNFSM4H2RRCDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYZBAFA#issuecomment-506597396, or mute the thread https://github.com/notifications/unsubscribe-auth/AAITWRXQEMXNZWLVBQMW7JLP4WIZNANCNFSM4H2RRCDA .

nmz787 commented 5 years ago

But you could certainly add a command to open the GUI with you data. Or put in a request for me to add that.

On Thu, Jun 27, 2019, 11:45 PM Nathan McCorkle nmz787@gmail.com wrote:

This module does not use any BRLCAD GUIs. Please check the run_tests.py and the example directory.

On Thu, Jun 27, 2019, 9:39 PM scorp08 notifications@github.com wrote:

I am writing a software whlch brl cad is a part of. Requred to sent input to library or mged and collect output. Also it need to run brlcad gui in a screen. Is it possible with this module??

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/nmz787/python-brlcad-tcl/issues/1?email_source=notifications&email_token=AAITWRVM6OXK5QJKMPEHC7TP4WIZNA5CNFSM4H2RRCDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYZBAFA#issuecomment-506597396, or mute the thread https://github.com/notifications/unsubscribe-auth/AAITWRXQEMXNZWLVBQMW7JLP4WIZNANCNFSM4H2RRCDA .