Comments (2)
Below, just simplifying the trace a little bit to make it easier to follow:
File "read_and_show_dicom.py",
import pydicom
File "...\pydicom\__init__.py", line 32,
from pydicom.dataelem import DataElement
File "...\pydicom\dataelem.py", line 18, in <module>
from pydicom import config
File "...\pydicom\config.py", line 238, in <module>
import pydicom.pixel_data_handlers.pylibjpeg_handler as pylibjpeg_handler
File "...\pydicom\pixel_data_handlers\pylibjpeg_handler.py", line 59, in <module>
import pylibjpeg
File "...\pylibjpeg\__init__.py", line 38, in <module>
add_handler()
File "...\pylibjpeg\utils.py", line 24, in add_handler
if handler not in pydicom.config.pixel_data_handlers:
AttributeError: partially initialized module 'pydicom' has no attribute 'config' (most likely due to a circular import)
I'm wondering whether this would be okay if you imported pylibjpeg first before pydicom in the user code? However, pylibjpeg
examples show importing pydicom
first. Maybe @scaramallion can comment.
from pylibjpeg.
Hmm, with the latest pydicom you shouldn't need to import pylibjpeg manually, so I'd try removing that first. I'll take a look when I get a chance.
from pylibjpeg.
Related Issues (20)
- Tried to use this to parse a DICOM file and still am just getting a solid green image HOT 10
- Change pixel data decoding interface to pass group 0028 elements
- Add documentation that defines the plugin interface
- v1.3.0 Release HOT 3
- Pixel handler with support for JPEG2000 HOT 5
- Add version awareness to plugins
- [DCM] Convert output J2K data to match Pixel Representation when required
- using pylibjpeg with executable creator libraries HOT 7
- JPEG encoding HOT 6
- RuntimeError: Unable to convert the Pixel Data as the 'pylibjpeg-libjpeg' plugin is not installed HOT 19
- Conda install support? HOT 5
- `RuntimeError: Unable to convert the Pixel Data as the 'pylibjpeg-libjpeg' plugin is not installed` when running the executable generated with PyInstaller (but not with the script.py) HOT 2
- Dependency on pylibjpeg-rle
- Circular import error HOT 3
- Unable to convert the Pixel Data as the 'pylibjpeg-libjpeg' plugin is not installed
- RuntimeError: Unable to convert the Pixel Data as the 'pylibjpeg-libjpeg' plugin is not installed when running the executable generated with PyInstaller (but not with the script.py)
- Libjpeg-turbo HOT 8
- Use importlib rather than pkg_resources
- DICOM compressed image ( JPEG Extended (Process 2 and 4)) problems HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pylibjpeg.