Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IS_CM_SENSOR_RAW8 #4

Closed
tayfun91 opened this issue Mar 27, 2023 · 3 comments
Closed

IS_CM_SENSOR_RAW8 #4

tayfun91 opened this issue Mar 27, 2023 · 3 comments

Comments

@tayfun91
Copy link

hello deaar,
i get this error.

python version 3.9

C:\Users\Copil\Desktop\microEye-main\examples>python control_module.py
Traceback (most recent call last):
File "C:\Users\Copil\Desktop\microEye-main\examples\control_module.py", line 1, in
from microEye.hardware import control_module
File "C:\Users\Copil\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\microEye\hardware_init_.py", line 1, in
from .acquisition_module import acquisition_module
File "C:\Users\Copil\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\microEye\hardware\acquisition_module.py", line 17, in
from .CameraListWidget import CameraListWidget
File "C:\Users\Copil\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\microEye\hardware\CameraListWidget.py", line 10, in
from .ueye_camera import IDS_Camera
File "C:\Users\Copil\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\microEye\hardware\ueye_camera.py", line 10, in
formats_ = {ueye.IS_CM_SENSOR_RAW8: 8,
AttributeError: 'NoneType' object has no attribute 'IS_CM_SENSOR_RAW8'

samhitech added a commit that referenced this issue Mar 28, 2023
- Fixed importing pyueye and IDS related issue when SDK is not installed (issue #4 ).
- Fixed CPU based fitting bug in pyfit3Dcspline.
@samhitech
Copy link
Owner

Hello, I am unsure which version of microeye you are using, but I have fixed this issue in the most recent commit. If the pyueye package and the IDS SDK were not installed this issue arises. Now you can use the hardware part without necessarily needing IDS-related software being installed. You might get a similar issue though when it comes to missing Thorlabs drivers for their cameras (Thorcam) as it tries to import the uc480_64.dll library from its directory in program files.

@tayfun91
Copy link
Author

thank u.
this error fixed but i have new error :)
my microEye version 0.3.1

C:\Users\Copil\Desktop\microEye-main\examples>python control_module.py
Traceback (most recent call last):
File "C:\Users\Copil\Desktop\microEye-main\examples\control_module.py", line 1, in
from microEye.hardware import control_module
File "C:\Users\Copil\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\microEye\hardware_init_.py", line 1, in
from .acquisition_module import acquisition_module
File "C:\Users\Copil\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\microEye\hardware\acquisition_module.py", line 18, in
from ..pyscripting import *
File "C:\Users\Copil\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\microEye\pyscripting.py", line 2, in
from pyqode.python.widgets import PyCodeEdit
File "C:\Users\Copil\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\pyqode\python\widgets_init_.py", line 8, in
from .code_edit import PyCodeEditBase, PyCodeEdit
File "C:\Users\Copil\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\pyqode\python\widgets\code_edit.py", line 7, in
from pyqode.python.backend import server
File "C:\Users\Copil\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\pyqode\python\backend_init_.py", line 7, in
from .workers import calltips
File "C:\Users\Copil\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\pyqode\python\backend\workers.py", line 182, in
messages.ReturnWithArgsInsideGenerator,
AttributeError: module 'pyflakes.messages' has no attribute 'ReturnWithArgsInsideGenerator'

@samhitech
Copy link
Owner

Hi, one of the dependencies pycode.python has a problem with the updated package pyflakes which comes with your specific Python version. For pyflakes >= 2.5.0 the attribute 'ReturnWithArgsInsideGenerator' has been dropped thus a fast fix would be to install pyflakes==2.4.0.
pip install pyflakes==2.4.0
If you're using Conda then there is a fix to the pycode.python found here Fix for pyflakes 2.5 #42

I will be closing this issue as it is related to a dependency and Python version mismatch. The microEye is tested with Python >= 3.9.7 yet you might need to install pyflakes==2.4.0 for later versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants