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

Error when drawing #12

Open
zshu-alt opened this issue May 15, 2023 · 2 comments
Open

Error when drawing #12

zshu-alt opened this issue May 15, 2023 · 2 comments

Comments

@zshu-alt
Copy link

Hello, I successfully used smn_caller.py to get the results, I want to use smn_charts.py
I drew a picture, but I got this error
Here's my code:
smn_charts.py -s /home/dell/project/muscle/WGS/SMNcopynumbercaller/SMN_try.json
-o /home/dell/project/muscle/WGS/SMNcopynumbercaller/picture

This is an error message:
import-im6.q16: unable to open X server ' @ error/import.c/ImportImageCommand/358. import-im6.q16: unable to open X server ' @ error/import.c/ImportImageCommand/358.
import-im6.q16: unable to open X server ' @ error/import.c/ImportImageCommand/358. from: can't read /var/mail/charts.draw /home/dell/miniconda3/envs/wgs/bin/smn_charts.py: 行 6: 未预期的符号 (' 附近有语法错误
/home/dell/miniconda3/envs/wgs/bin/smn_charts.py: 行 6: `script_dir = os.path.abspath(os.path.dirname(file))'

Typing smn_charting.py alone will also cause the same error, whether it's a conda installation or a github download.

@xiao-chen-xc
Copy link
Contributor

Could you try
python smn_charts.py -s /home/dell/project/muscle/WGS/SMNcopynumbercaller/SMN_try.json -o /home/dell/project/muscle/WGS/SMNcopynumbercaller/picture

@kythol
Copy link

kythol commented Aug 8, 2023

Could you try
python smn_charts.py -s /home/dell/project/muscle/WGS/SMNcopynumbercaller/SMN_try.json -o /home/dell/project/muscle/WGS/SMNcopynumbercaller/picture

Had the same issue, this resolved it. Turned out another requirement was needed, 'reportlab', but after installation it worked nicely. Thank you for the tool!

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

3 participants