Giter Club home page Giter Club logo

Comments (2)

darcymason avatar darcymason commented on August 17, 2024

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.

scaramallion avatar scaramallion commented on August 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.