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

'Time' has no attribute 'clock' #23

Open
MCeeP opened this issue Nov 26, 2021 · 4 comments
Open

'Time' has no attribute 'clock' #23

MCeeP opened this issue Nov 26, 2021 · 4 comments

Comments

@MCeeP
Copy link

MCeeP commented Nov 26, 2021

I've come across a bug when trying to replicate the starting harvester.py example you give in the readme in python 3.8.

On line 4 while importing Harvester python trows up an error that on line 35 of vispy\util\ptime.py module 'time' has no attribute 'clock'.

I believe this an error caused by the the depreciation of time.clock() in python 3.8 as the vispy version used is quite a bit behind.

@Indhar01
Copy link

Indhar01 commented Jan 22, 2022

upgrade your sqlalchemy
pip install sqlalchemy --upgrade

@Abudinka
Copy link

this did not solve the issue for me, it worked after upgrading everything in pip, altough my dependency resolver is not happy with pyqt 5.16, harvesters gui starts now

@dk00001101
Copy link

dk00001101 commented Mar 26, 2023

open the .venv_harvester_gui\Lib\site-packages\vispy\util\ptime.py and change the lines with systime.clock() to systime.per_counter() !
This fixed it in my env. Im using python 3.10 on win10.
image

Also I could not install genicam2 with pip install genicam2, so I changed all genicam2 imports to genicam . In some modules it isnt even used. =)
.venv_harvester_gui\Lib\site-packages\vispy
Change all the errors until you get an running gui. On Python 3.8 you will get an error np.bool is not known. You can change that to bool.
I hope I could help you.

@dk00001101
Copy link

I was writing my own gui for the harvester, then came across this beauty. Im now on my way to test it with my scanner.

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

4 participants