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

a bug about xrtqook #160

Open
gpeng628 opened this issue Oct 24, 2023 · 5 comments
Open

a bug about xrtqook #160

gpeng628 opened this issue Oct 24, 2023 · 5 comments

Comments

@gpeng628
Copy link

hi
I am following the instance of ''Using xrtQook for script generation'' to study how to use xrtqook. Following the steps, set beamlines and generate python script , but when I ckick '' save python script and run '' button , the xrtqook is closed .
In the command-line window ,it shows

Traceback (most recent call last):
File "C:\Python39\lib\site-packages\xrt\gui\xrtQook_init_.py", line 597, in readStdOutput
output = bytes(self.qprocess.readAllStandardOutput()).decode()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb4 in position 33: invalid start byte

I can't solve this problem,although I have tried some ways online .

@yxrmz
Copy link
Collaborator

yxrmz commented Oct 25, 2023

Hi, could you share some details about your environment?
package manager (conda, etc.),
IDE (spyder, pycharm, smth else) and its version
"Your system" section on Qook welcome page if possible

@gpeng628
Copy link
Author

In ''Your system'' section ,it shows
Windows-10, Python 3.9.0rc2
Qt 5.15.2, PyQt5 5.15.10
OpenGL 3.1.6
pyopencl 2023.1.4
Sphinx 7.2.6
xrt 1.6.0

@gpeng628
Copy link
Author

I type ''python C:\Python39\lib\site-packages\xrt\gui\ xrtQookStart.pyw'' in the command-line window to start xrtqook

@yxrmz
Copy link
Collaborator

yxrmz commented Oct 27, 2023

The fastest solution would be using winpython, it comes with most of required packages, qook should work out of the box.
In the meantime I'll try to find a workaround for your issue.

@gpeng628
Copy link
Author

Thanks for your help ,I download the latest Winpython ,the qook works properly and the plot also works .

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