Hello NeuroStars Community,
I’m currently trying to set up BIDScoin on a Windows system and have encountered persistent issues related to missing Python modules. Despite following the standard installation guidelines and attempting various troubleshooting steps, I can’t seem to resolve errors related to the jpeg_ls
and rle
modules.
Environment:
- Operating System: Windows 10 (I’m working on Windows 11 but I’ve used VS installer to update this)
- Python Version: 3.12
- I am working within a virtual environment specifically set up for BIDScoin.
Issues Encountered:
- Repeated error messages stating
ModuleNotFoundError
forjpeg_ls
andrle
when trying to runbidscoiner
. - Attempts to install these modules via pip have been unsuccessful, with messages indicating that these packages are not available in the repository.
Steps Taken:
- I have tried using PowerShell, Gitbash, VS code
- I have tried Visual Studio Installer Adjustments**:
- Utilized the Visual Studio Installer to ensure that the Python development environment and relevant workloads were correctly configured.
- I have tried installing related packages like
glymur
which is supposed to handle JPEG2000 images but this has not resolved thejpeg_ls
issue.
I’m wondering if anyone else has faced similar issues or if there’s a known workaround or specific steps I should follow to get these modules recognized and working. Any guidance or suggestions would be greatly appreciated!
Thank you and see code below:
## BIDScoiner Error: Missing Modules
```bash
(bidscoiner) PS C:\Users\felsi> bidscoiner
2024-09-14 21:42:20,922 [ ERROR] No module named 'jpeg_ls'
Traceback (most recent call last):
File "C:\Users\felsi\Downloads\Dropbox\pipeline\bidscoiner\Lib\site-packages\pydicom\pixels\utils.py", line 1274, in _passes_version_check
module = importlib.import_module(package_name, "__version__")
File "C:\Users\felsi\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'jpeg_ls'
2024-09-14 21:42:20,922 [ ERROR] No module named 'rle'
Traceback (most recent call last):
File "C:\Users\felsi\Downloads\Dropbox\pipeline\bidscoiner\Lib\site-packages\pydicom\pixels\utils.py", line 1274, in _passes_version_check
module = importlib.import_module(package_name, "__version__")
File "C:\Users\felsi\AppData\Local\Programs\Python\Python312\Lib\importlib\__init__.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'rle'
Attempt to Install CharPyLS
(bidscoiner) PS C:\Users\felsi\Downloads\Dropbox\pipeline> pip install CharPyLS
ERROR: Could not find a version that satisfies the requirement CharPyLS (from versions: none)
ERROR: No matching distribution found for CharPyLS
Glymur Upgrade Check
(bidscoiner) PS C:\Users\felsi\Downloads\Dropbox\pipeline> pip install glymur --upgrade
Requirement already satisfied: glymur in c:\users\felsi\downloads\dropbox\pipeline\bidscoiner\lib\site-packages (0.13.6)
Requirement already satisfied: numpy in c:\users\felsi\downloads\dropbox\pipeline\bidscoiner\lib\site-packages (from glymur) (2.1.1)
Requirement already satisfied: lxml in c:\users\felsi\downloads\dropbox\pipeline\bidscoiner\lib\site-packages (from glymur) (5.3.0)
Requirement already satisfied: packaging in c:\users\felsi\downloads\dropbox\pipeline\bidscoiner\lib\site-packages (from glymur) (24.1)
Failed pip search for jpeg_ls
(bidscoiner) PS C:\Users\felsi\Downloads\Dropbox\pipeline> pip search jpeg_ls
ERROR: XMLRPC request failed [code: -32500]
RuntimeError: PyPI no longer supports 'pip search' (or XML-RPC search). Please use https://pypi.org/search (via a browser) instead