Electronics

Electronics

Topics related to HFSS, Maxwell, SIwave, Icepak, Electronics Enterprise and more.

PyAEDT Error

    • Steven Miao
      Subscriber

      Hi, 

      I installed AEDT ver 2024 R1, and also installed PyAEDT 0.8.9, when I launch python console from AEDT, it always shows the error message: "Specified version 2024.1 is not installed on your system on __init__"

      The detailed error messages are shown below:

      Python 3.10.9 (remotes/origin/4e018266dafe29ec2836492d71d245fcfd366d07-dirty:4e018266, Jan  3 2) [MSC v.1920 64 bit (AMD64)]
      Type 'copyright', 'credits' or 'license' for more information
      IPython 8.23.0 -- An enhanced Interactive Python. Type '?' for help.
      Loading the PyAEDT Console.
      PyAEDT INFO: Initializing new Desktop session.
      PyAEDT INFO: StdOut is enabled
      PyAEDT INFO: Log on file is enabled
      PyAEDT INFO: Log on Desktop Message Manager is enabled
      PyAEDT INFO: Debug logger is disabled. PyAEDT methods will not be logged.
      PyAEDT ERROR: **************************************************************
      PyAEDT ERROR:   File "C:\Program Files\AnsysEM\v241\Win64\commonfiles\CPython\3_10\winx64\Release\python\lib\runpy.py", line 196, in _run_module_as_main
      PyAEDT ERROR:     return _run_code(code, main_globals, None,
      PyAEDT ERROR:   File "C:\Program Files\AnsysEM\v241\Win64\commonfiles\CPython\3_10\winx64\Release\python\lib\runpy.py", line 86, in _run_code
      PyAEDT ERROR:     exec(code, run_globals)
      PyAEDT ERROR:   File "C:\Users\stu-miaow\AppData\Roaming\pyaedt_env_ide\v241\Scripts\ipython.exe\__main__.py", line 7, in
      PyAEDT ERROR:     sys.exit(start_ipython())
      PyAEDT ERROR:   File "C:\Users\stu-miaow\AppData\Roaming\pyaedt_env_ide\v241\lib\site-packages\IPython\__init__.py", line 130, in start_ipython
      PyAEDT ERROR:     return launch_new_instance(argv=argv, **kwargs)
      PyAEDT ERROR:   File "C:\Users\stu-miaow\AppData\Roaming\pyaedt_env_ide\v241\lib\site-packages\traitlets\config\application.py", line 1074, in launch_instance
      PyAEDT ERROR:     app.initialize(argv)
      PyAEDT ERROR:   File "C:\Users\stu-miaow\AppData\Roaming\pyaedt_env_ide\v241\lib\site-packages\traitlets\config\application.py", line 118, in inner
      PyAEDT ERROR:     return method(app, *args, **kwargs)
      PyAEDT ERROR:   File "C:\Users\stu-miaow\AppData\Roaming\pyaedt_env_ide\v241\lib\site-packages\IPython\terminal\ipapp.py", line 284, in initialize
      PyAEDT ERROR:     self.init_code()
      PyAEDT ERROR:   File "C:\Users\stu-miaow\AppData\Roaming\pyaedt_env_ide\v241\lib\site-packages\IPython\core\shellapp.py", line 309, in init_code
      PyAEDT ERROR:     self._run_cmd_line_code()
      PyAEDT ERROR:   File "C:\Users\stu-miaow\AppData\Roaming\pyaedt_env_ide\v241\lib\site-packages\IPython\core\shellapp.py", line 434, in _run_cmd_line_code
      PyAEDT ERROR:     self._exec_file(fname, shell_futures=True)
      PyAEDT ERROR:   File "C:\Users\stu-miaow\AppData\Roaming\pyaedt_env_ide\v241\lib\site-packages\IPython\core\shellapp.py", line 359, in _exec_file
      PyAEDT ERROR:     self.shell.safe_execfile(full_filename,
      PyAEDT ERROR:   File "C:\Users\stu-miaow\AppData\Roaming\pyaedt_env_ide\v241\lib\site-packages\IPython\utils\py3compat.py", line 55, in execfile
      PyAEDT ERROR:     exec(compiler(f.read(), fname, "exec"), glob, loc)
      PyAEDT ERROR:   File "F:\Weiyang\PersonalLib\Toolkits\Project\PyAEDT\Lib\console_setup.py", line 66, in
      PyAEDT ERROR:     desktop = Desktop(
      PyAEDT ERROR:   File "C:\Users\stu-miaow\AppData\Roaming\pyaedt_env_ide\v241\lib\site-packages\pyaedt\generic\design_types.py", line 1534, in Desktop
      PyAEDT ERROR:     return app(
      PyAEDT ERROR:   File "C:\Users\stu-miaow\AppData\Roaming\pyaedt_env_ide\v241\lib\site-packages\pyaedt\desktop.py", line 545, in __init__
      PyAEDT ERROR:     student_version_flag, version_key, version = self._assert_version(specified_version, student_version)
      PyAEDT ERROR:   File "C:\Users\stu-miaow\AppData\Roaming\pyaedt_env_ide\v241\lib\site-packages\pyaedt\desktop.py", line 777, in _assert_version
      PyAEDT ERROR:     raise ValueError(
      PyAEDT ERROR: Specified version 2024.1 is not installed on your system on __init__
      PyAEDT ERROR: Method arguments:
      PyAEDT ERROR:     specified_version = 2024.1
      PyAEDT ERROR:     port = 50051
      PyAEDT ERROR: **************************************************************

       

      Can someone tell me how to resolve this problem? Thank you very much!

    • Praneeth
      Bbp_moderator

      Hi,

      Thank you for reaching out to the Ansys learning forum.

      Please note that the queries related to PyAEDT cannot be discussed in this forum as there is a dedicated forum. Kindly reach out to - Ansys Developer Portal | Ansys Developer Portal.

      I hope this helps.

      Best regards,
      Praneeth.

Viewing 1 reply thread
  • The topic ‘PyAEDT Error’ is closed to new replies.