Seeking Assistance with PyCharm Debugging Configuration
Dear ChimeraX Dev Team, I'm Himal Godage, and I am currently in the process of developing a bundle for ChimeraX software. I have been thoroughly following the provided documentation, successfully completing the steps related to setting up a ChimeraX development environment, obtaining the code, and compiling ChimeraX. However, I have encountered a challenge in the IDEs, Debugging, and Profiling section, specifically within PyCharm. Following the provided steps, I am instructed to: 1. Create a new Run/Debug Configuration. 2. Set the script path field to point at a module. 3. Set the module to “chimerax.core”. 4. Set the Python interpreter to ChimeraX’s internal Python. 5. Uncheck “Add content roots to PYTHONPATH”. 6. Uncheck “Add source roots to PYTHONPATH”. While attempting to follow these instructions, I encountered difficulty in locating the "chimerax.core" module. Unfortunately, the provided directory structure or module seems to be difficult to find in my current project. However there is a module named core in the following path. ChimeraX > src > bundles > core I am reaching out to seek your guidance on resolving this issue. Could you please provide insights on how I can locate or create the necessary "chimerax.core" module or suggest an alternative approach to address this problem? Thank you in advance for your time and support. Best regards, Himal Godage himalgodage2759@gmail.com
Hi Himal, The person on our team that uses PyCharm and that wrote that documentation is on a trip to NIH this week and may not be able to respond promptly. Reading that page myself, it seems that the Debugging section assumes that you set up a virtual environment as outlined in the preceding "IDEs" section. Did you do that? --Eric Eric Pettersen UCSF Computer Graphics Lab
On Feb 19, 2024, at 9:40 PM, himalgodage2759--- via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Dear ChimeraX Dev Team,
I'm Himal Godage, and I am currently in the process of developing a bundle for ChimeraX software. I have been thoroughly following the provided documentation, successfully completing the steps related to setting up a ChimeraX development environment, obtaining the code, and compiling ChimeraX. However, I have encountered a challenge in the IDEs, Debugging, and Profiling section, specifically within PyCharm. Following the provided steps, I am instructed to: 1. Create a new Run/Debug Configuration. 2. Set the script path field to point at a module. 3. Set the module to “chimerax.core”. 4. Set the Python interpreter to ChimeraX’s internal Python. 5. Uncheck “Add content roots to PYTHONPATH”. 6. Uncheck “Add source roots to PYTHONPATH”. While attempting to follow these instructions, I encountered difficulty in locating the "chimerax.core" module. Unfortunately, the provided directory structure or module seems to be difficult to find in my current project. However there is a module named core in the following path. ChimeraX > src > bundles > core
I am reaching out to seek your guidance on resolving this issue. Could you please provide insights on how I can locate or create the necessary "chimerax.core" module or suggest an alternative approach to address this problem?
Thank you in advance for your time and support. Best regards,
Himal Godage himalgodage2759@gmail.com _______________________________________________ ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/
Hi Eric, Thank you for the reply and I appreciate your assistance. I've been using the internal Python to create a virtual environment in my project’s folder, and I've set the Python interpreter path as outlined in the documentation. The first attached screenshot is my interpreter configuration. However, my current challenge lies in the debugging section. I've created a new Run/Debug Configuration(third attachment) following the instructions , as shown in the second attached screenshot. Regrettably, when attempting to run the configuration, I encountered an error in the console: "No module named chimerax.core" (refer to the fourth attached screenshot). I believe that the issue is regarding a module named chimerax.core which I couldn’t find on the project. Thank you in advance for your help. Himal On Wed, Feb 21, 2024 at 12:39 AM Eric Pettersen <pett@cgl.ucsf.edu> wrote:
Hi Himal, The person on our team that uses PyCharm and that wrote that documentation is on a trip to NIH this week and may not be able to respond promptly. Reading that page myself, it seems that the Debugging section assumes that you set up a virtual environment as outlined in the preceding "IDEs" section. Did you do that?
--Eric
Eric Pettersen UCSF Computer Graphics Lab
On Feb 19, 2024, at 9:40 PM, himalgodage2759--- via ChimeraX-users < chimerax-users@cgl.ucsf.edu> wrote:
Dear ChimeraX Dev Team,
I'm Himal Godage, and I am currently in the process of developing a bundle for ChimeraX software. I have been thoroughly following the provided documentation, successfully completing the steps related to setting up a ChimeraX development environment, obtaining the code, and compiling ChimeraX. However, I have encountered a challenge in the IDEs, Debugging, and Profiling section, specifically within PyCharm. Following the provided steps, I am instructed to: 1. Create a new Run/Debug Configuration. 2. Set the script path field to point at a module. 3. Set the module to “chimerax.core”. 4. Set the Python interpreter to ChimeraX’s internal Python. 5. Uncheck “Add content roots to PYTHONPATH”. 6. Uncheck “Add source roots to PYTHONPATH”. While attempting to follow these instructions, I encountered difficulty in locating the "chimerax.core" module. Unfortunately, the provided directory structure or module seems to be difficult to find in my current project. However there is a module named core in the following path. ChimeraX > src > bundles > core
I am reaching out to seek your guidance on resolving this issue. Could you please provide insights on how I can locate or create the necessary "chimerax.core" module or suggest an alternative approach to address this problem?
Thank you in advance for your time and support. Best regards,
Himal Godage himalgodage2759@gmail.com _______________________________________________ ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/
participants (3)
-
Eric Pettersen
-
Himal Godage
-
himalgodage2759@gmail.com