letmaik / rawpy

📷 RAW image processing for Python, a wrapper for libraw
https://pypi.python.org/pypi/rawpy
MIT License
587 stars 67 forks source link

AttributeError: module 'rawpy' has no attribute '_rawpy' #204

Closed cverrr closed 1 year ago

cverrr commented 1 year ago

Traceback (most recent call last): File "E:/rawpy-main/test1.py", line 1, in import rawpy File "E:\rawpy-main\rawpy__init__.py", line 8, in globals().update({k:v for k,v in rawpy.rawpy.dict.items() if not k.startswith('')}) AttributeError: module 'rawpy' has no attribute '_rawpy'

rawpy == 0.18.1 window11

letmaik commented 1 year ago

This happens when you're cloning the repo and running Python from the repo root folder and you have . (current folder) in PYTHONPATH. Solution is to run scripts from a different folder.

cverrr commented 1 year ago

It does not work. Traceback (most recent call last): File "E:/rawpy-main/mytest/test1.py", line 1, in import rawpy File "E:\rawpy-main\rawpy__init__.py", line 8, in globals().update({k:v for k,v in rawpy.rawpy.dict.items() if not k.startswith('')}) AttributeError: module 'rawpy' has no attribute '_rawpy'