Hi Himal,

I'm confused by a couple of things. First, your system packages should list all of ChimeraX's packages, like the screenshot attached to this email. Did you build ChimeraX (make build-from-scratch) and subsequently use ChimeraX's internal Python, not your system Python, to make your virtual environment?

Second, the path to your interpreter looks like it's a path to a virtual environment inside ChimeraX itself.

In the base directory of the git repository:

./ChimeraX.app/bin/python.exe -m venv .venv --system-site-packages

Then in PyCharm -> Settings -> Project: ChimeraX -> Python Interpreter

Add a new interpreter

path/to/ChimeraX/.venv/Scripts/python.exe

Use that as the interpreter for your run or debug configuration.

-- Zach

On 2/27/2024 1:36 PM, Eric Pettersen wrote:
Nudge, nudge... :-)

Begin forwarded message:

From: Himal Godage <himalgodage2759@gmail.com>
Subject: Re: [chimerax-users] Seeking Assistance with PyCharm Debugging Configuration
Date: February 20, 2024 at 11:34:54 PM PST
To: pett@cgl.ucsf.edu
Cc: 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/
>