Author Topic: Can i use python 2.7 64bit with Enterprise Architect to create an Addin  (Read 6701 times)

sandeep bhat

  • EA User
  • **
  • Posts: 36
  • Karma: +0/-0
    • View Profile
Hi All,
Few years back when i started developing an Addin for Enterprise Architect using python 2.7 64bit, I had an issue with the tkInter. After some research and some inputs, I found that Enterprise Architect is 32bit build. So i will have to use python 32bit. After installing python 32 bit it went well. Now i have an requirement to use python 2.7 64 bit with Enterprise Architect. I see the issue still persists. So wanted to check if anybody has developed an Addin using Python 2.7 64 bit for Enterprise Architect.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Can i use python 2.7 64bit with Enterprise Architect to create an Addin
« Reply #1 on: November 22, 2016, 07:02:59 am »
EA requires a COM interop compatible dll. I always compile for "Any processor" as target CPU.
If your development environment can create that I guess it will work.

Geert

PS. Why would you prefer to use Python over C#? Feels like making your life harder then it should be.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Can i use python 2.7 64bit with Enterprise Architect to create an Addin
« Reply #2 on: November 22, 2016, 09:51:07 am »
I have a dozen claims against Python at least. But once you get the hang of it, it's really neat. Fast as lightning (if you happen to use NumPy/matlab) and tons of useful other libs. So I can well understand preferring it over many other languages. Not just the fact that C# works only on Windoze.

q.

sandeep bhat

  • EA User
  • **
  • Posts: 36
  • Karma: +0/-0
    • View Profile
Re: Can i use python 2.7 64bit with Enterprise Architect to create an Addin
« Reply #3 on: November 22, 2016, 03:58:53 pm »
Well  i need to use python due to the customer requirements. Anyway my question is, is EA a 32 bit application or 64bit? Because the 64bit python doesnt seems to work with EA

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Can i use python 2.7 64bit with Enterprise Architect to create an Addin
« Reply #4 on: November 22, 2016, 08:47:57 pm »
EA is a 32 bit application.
It also needs 32 bit ODBC drivers to connect to a database. 64 bit drivers don't work.

Geert

sandeep bhat

  • EA User
  • **
  • Posts: 36
  • Karma: +0/-0
    • View Profile
Re: Can i use python 2.7 64bit with Enterprise Architect to create an Addin
« Reply #5 on: November 22, 2016, 10:37:06 pm »
I thought in 5 years they might have come up with 2 variants, 32 and 64 bit  :(. Aware of any workarounds that i can integrate a 64bit program(python) with EA?