Test module not found for diffpy.pdfgetx version 2.4.0

23 views
Skip to first unread message

Martin Aaskov Karlsen

unread,
Feb 10, 2026, 9:13:50 AM (12 days ago) Feb 10
to diffpy-users
Dear all,

Congratulations on the latest release and all its new features!

When following the online installation guidelines, everything runs smoothly up until the module tests. When trying to run the module tests (with the appropriate conda environment activated), the following ModuleNotFoundError is encountered:
>> python -m diffpy.pdfgetx.tests.run
(...)\miniconda3\envs\pdfgetx_env\python.exe: A Error while finding module specification for 'diffpy.pdfgetx.tests.run' (ModuleNotFoundError: No module named 'diffpy.pdfgetx.tests')

This occurs for both my Windows and Linux (WSL) installations, after use of the appropriate Python 3.13 diffpy.pdfgetx wheels.

Best,
Martin

Simon Billinge

unread,
Feb 10, 2026, 9:27:03 AM (12 days ago) Feb 10
to diffpy...@googlegroups.com
Thanks for posting Martin,

We will look into this but I think it is because we are no longer bundling the tests in the wheel per latest Python best practices, so this won't work by design I am afraid.  

Does it ask you somewhere in the docs to run this (to test the installation for example)?  In that case we need to remove that!

If you need the tests for some reason we can look into bundling what you need.

Congrats on the new position.  diiffpy.cmi is updated and ready for user contributions.  I hope you will consider adding things if you have ideas.

S

On Tue, Feb 10, 2026 at 6:13 AM Martin Aaskov Karlsen <martinaas...@gmail.com> wrote:
Dear all, Congratulations on the latest release and all its new features! When following the online installation guidelines, everything runs smoothly up until the module tests. When trying to run the module tests (with the appropriate conda
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization.
 
ZjQcmQRYFpfptBannerEnd
--
You received this message because you are subscribed to the Google Groups "diffpy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to diffpy-users...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/diffpy-users/f5d7d92f-6e68-4289-a18c-ec1ad6e2bff8n%40googlegroups.com.


--
Simon Billinge
Professor, 
Department of Applied Physics and Applied Mathematics
Columbia University

Martin Aaskov Karlsen

unread,
Feb 10, 2026, 10:13:14 AM (12 days ago) Feb 10
to diffpy-users
Thanks for the prompt reply.
Then, it just sounds like the instruction to run tests should be removed from the installation guidelines.

Per habbit, I just followed the installtion guidelines on https://www.diffpy.org/products/pdfgetx.html that forwards to https://www.diffpy.org/doc/pdfgetx/2.4.0/install.html
There, the installation guidelines conclude with:

(...) Finally, a comprehensive test of the installed software can be executed using
python -m diffpy.pdfgetx.tests.run

FYI, there are no instructions to run tests in the INSTRUCTIONS.txt that comes along with the wheels.

Best,
Martin

Reply all
Reply to author
Forward
0 new messages