dwgoon / jpegio

A python package for accessing the internal variables of JPEG file format such as DCT coefficients and quantization tables
Apache License 2.0
73 stars 18 forks source link

An error about import #21

Closed KQL11 closed 1 year ago

KQL11 commented 2 years ago

Hi, dwgoon. I'm grateful to your project. However, after installation, I get an error like this

" Traceback (most recent call last): File "", line 1, in File "/pubdata/linkaiqing/python_package/jpegio-master/jpegio/init.py", line 6, in from .componentinfo import ComponentInfo ModuleNotFoundError: No module named 'jpegio.componentinfo' " Please add "import cython" to "init.py", and "jpegio" is really a good tool.

dwgoon commented 2 years ago

Could you please let me know the directory path you have executed the source code? You can encounter this kind of error if you execute your sources in the directory of JPEG repo.

KQL11 commented 2 years ago

Of course.

Thanks for your help again, I'm really sorry because of my late reply.

dwgoon commented 1 year ago

How did you install jpegio? I recommend compiling and installing directly from this repository.

KQL11 commented 1 year ago

I execute the command "python setup.py install" like your README.md. Now I can use the repository successfully, thank you!

dwgoon commented 1 year ago

@KQL11 Good job! :)