-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
installing the non-dev
version of MPoL does not include tensorboard, however example 02 depends on this functionality to run.
Attempting to follow the example code execution for this example produces the following ModuleNotFound Error. This environment was constructing by pip installing the MPoL
repository.
-> % python src/sgd.py --tensorboard-log-dir=runs/nolam0 --epochs=40 --log-interval=2 --save-checkpoint=checkpoints/nolam0.pt --lr 1e-2
Traceback (most recent call last):
File "/home/matthew/src/mpol-example/02-sgd/src/sgd.py", line 11, in <module>
from torch.utils.tensorboard import SummaryWriter
File "/home/matthew/src/mpol-example/.venv/lib/python3.13/site-packages/torch/utils/tensorboard/__init__.py", line 1, in <module>
import tensorboard
ModuleNotFoundError: No module named 'tensorboard'
-> % uv pip list
Using Python 3.13.7 environment at: /home/matthew/src/mpol-example/.venv
Package Version
------------------------ -----------------------
astropy 7.1.0
astropy-iers-data 0.2025.9.15.0.37.0
contourpy 1.3.3
cycler 0.12.1
fast-histogram 0.14
filelock 3.19.1
fonttools 4.59.2
fsspec 2025.9.0
jinja2 3.1.6
kiwisolver 1.4.9
markupsafe 3.0.2
matplotlib 3.10.6
mpmath 1.3.0
mpol 0.3.0a1.dev5+g24c0bbcd8
networkx 3.5
numpy 2.3.3
nvidia-cublas-cu12 12.8.4.1
nvidia-cuda-cupti-cu12 12.8.90
nvidia-cuda-nvrtc-cu12 12.8.93
nvidia-cuda-runtime-cu12 12.8.90
nvidia-cudnn-cu12 9.10.2.21
nvidia-cufft-cu12 11.3.3.83
nvidia-cufile-cu12 1.13.1.3
nvidia-curand-cu12 10.3.9.90
nvidia-cusolver-cu12 11.7.3.90
nvidia-cusparse-cu12 12.5.8.93
nvidia-cusparselt-cu12 0.7.1
nvidia-nccl-cu12 2.27.3
nvidia-nvjitlink-cu12 12.8.93
nvidia-nvtx-cu12 12.8.90
packaging 25.0
pillow 11.3.0
pyerfa 2.0.1.5
pyparsing 3.2.4
python-dateutil 2.9.0.post0
pyyaml 6.0.2
scipy 1.16.2
setuptools 80.9.0
six 1.17.0
sympy 1.14.0
torch 2.8.0
torchaudio 2.8.0
torchkbnufft 1.5.2
torchvision 0.23.0
triton 3.4.0
typing-extensions 4.15.0
visread 0.0.5
Attempting to pip install -r requirments.txt
produces an environment which is also unable to run example 02 since the example data seems to depend on the latest version of MPoL (0.3.0a) which 0.2.0 is available on pypi.
-> % python src/sgd.py --tensorboard-log-dir=runs/nolam0 --epochs=40 --log-interval=2 --save-checkpoint=checkpoints/nolam0.pt --lr 1e-2
/home/matthew/src/mpol-example/02-sgd/.venv/lib/python3.13/site-packages/mpol/utils.py:168: SyntaxWarning: invalid escape sequence '\l'
q : array, unit = :math:`k\lambda`
Traceback (most recent call last):
File "/home/matthew/src/mpol-example/02-sgd/src/sgd.py", line 2, in <module>
import load_data
File "/home/matthew/src/mpol-example/02-sgd/src/load_data.py", line 59, in <module>
data, _ = fourier.generate_fake_data(
^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'mpol.fourier' has no attribute 'generate_fake_data'
-> % uv pip install -r requirements.txt
Resolved 47 packages in 467ms
Prepared 1 package in 95ms
Installed 47 packages in 188ms
+ astropy==7.1.0
+ astropy-iers-data==0.2025.9.15.0.37.0
+ contourpy==1.3.3
+ cycler==0.12.1
+ fast-histogram==0.14
+ filelock==3.19.1
+ fonttools==4.59.2
+ fsspec==2025.9.0
+ jinja2==3.1.6
+ kiwisolver==1.4.9
+ markupsafe==3.0.2
+ matplotlib==3.10.6
+ mpmath==1.3.0
+ mpol==0.2.0
+ networkx==3.5
+ numpy==2.3.3
+ nvidia-cublas-cu12==12.8.4.1
+ nvidia-cuda-cupti-cu12==12.8.90
+ nvidia-cuda-nvrtc-cu12==12.8.93
+ nvidia-cuda-runtime-cu12==12.8.90
+ nvidia-cudnn-cu12==9.10.2.21
+ nvidia-cufft-cu12==11.3.3.83
+ nvidia-cufile-cu12==1.13.1.3
+ nvidia-curand-cu12==10.3.9.90
+ nvidia-cusolver-cu12==11.7.3.90
+ nvidia-cusparse-cu12==12.5.8.93
+ nvidia-cusparselt-cu12==0.7.1
+ nvidia-nccl-cu12==2.27.3
+ nvidia-nvjitlink-cu12==12.8.93
+ nvidia-nvtx-cu12==12.8.90
+ packaging==25.0
+ pillow==11.3.0
+ pyerfa==2.0.1.5
+ pyparsing==3.2.4
+ python-dateutil==2.9.0.post0
+ pyyaml==6.0.2
+ scipy==1.16.2
+ setuptools==80.9.0
+ six==1.17.0
+ sympy==1.14.0
+ torch==2.8.0
+ torchaudio==2.8.0
+ torchkbnufft==1.5.2
+ torchvision==0.23.0
+ triton==3.4.0
+ typing-extensions==4.15.0
+ visread==0.0.5
Metadata
Metadata
Assignees
Labels
No labels