voila app error

40 views
Skip to first unread message

Maoting Chen

unread,
May 10, 2021, 3:10:15 AMMay 10
to majiq_voila
Hi,

When I ran voila view in the server, it worked well and I gor the result from the browser. However, when I downloaded the corresponding .voila and .sql file to my local computer and ran voila view using voila app, I got the error as below:

2021-05-10 15:02:11,863 (PID:3156) - ERROR - 'mbcs' codec can't encode characters in position 0--1: invalid character

Traceback (most recent call last):

  File "voila\run_voila.py", line 161, in main

  File "voila\config.py", line 149, in write

  File "voila\config.py", line 90, in find_voila_files

  File "voila\config.py", line 84, in find_voila_files

  File "voila\api\matrix_hdf5.py", line 39, in __init__

  File "site-packages\h5py\_hl\files.py", line 385, in __init__

  File "site-packages\h5py\_hl\compat.py", line 114, in filename_encode

UnicodeEncodeError: 'mbcs' codec can't encode characters in position 0--1: invalid character

Voila Ended

How can I fix it?

Thanks,
Maoting

Paul Jewell

unread,
May 11, 2021, 12:33:39 PMMay 11
to majiq_voila
Hello Maoting, 

It's a fairly strange error. Based on the message, I'm thinking that it's something either to do with :

-something is strange with the file name / path on your local computer. Is this a windows machine? Can you make sure there are no special characters in the full path name on the target computer? For example, place the files in C:\majiqdata and call them "splicegraph.sql" and "voilafile.psi.voila" -- something very simple with no spaces or special characters, check if this resolves the issue. 
-general corruption of the files when you copied them. Can you try using a copying tool that verified, such as rsync? Alternatively take the sha1 or md5 hash of both files manually and verify that they are equal. 

Let me know if you make and progrss. 

Thanks, 
-Paul

Maoting Chen

unread,
May 12, 2021, 6:08:31 AMMay 12
to majiq_voila
Hi Paul,

Thank you for your reply. 
However, I still got the same error even I made the file name and path simple without spaces or special characters. I also checked the hash data of the files in my local computer and in the server -- they are the same. And I used FileZilla to download the files. 
Is there any other reason for this error?

Thanks,
Maoting

Paul Jewell

unread,
May 12, 2021, 10:26:13 AMMay 12
to majiq_voila
Which operating system and version of python? What is the exact command you are using to start voila?

I've googled the error: This definitely seems to be specific to the name of the path used:

Maoting Chen

unread,
May 12, 2021, 11:17:54 AMMay 12
to majiq_voila
I use Windows 10 and python 3.7.7. To start voila in the server, I used the command suggested in this post of this discussion group, which works out well and I got the html result. Then I downloaded the same voila and sql files from the server to my local computer. But the voila app got this error:

Starting Voila...
C:\Users\May Chen\Downloads\app\voila_freeze view C:/majiqdata C:/majiqdata/splicegraph.sql -p 5005
2021-05-12 23:15:24,778 (PID:7084) - INFO - Command: C:\Users\May Chen\Downloads\app\voila_freeze view C:/majiqdata C:/majiqdata/splicegraph.sql -p 5005
2021-05-12 23:15:24,778 (PID:7084) - INFO - Voila v2.0.0
2021-05-12 23:15:24,778 (PID:7084) - INFO - config file: C:\Users\MAYCHE~1\AppData\Local\Temp\tmp228kp39j
2021-05-12 23:15:24,784 (PID:7084) - ERROR - 'mbcs' codec can't encode characters in position 0--1: invalid character

Traceback (most recent call last):
File "voila\run_voila.py", line 171, in main

File "voila\config.py", line 149, in write
File "voila\config.py", line 90, in find_voila_files
File "voila\config.py", line 84, in find_voila_files
File "voila\api\matrix_hdf5.py", line 39, in __init__
File "site-packages\h5py\_hl\files.py", line 385, in __init__
File "site-packages\h5py\_hl\compat.py", line 114, in filename_encode
UnicodeEncodeError: 'mbcs' codec can't encode characters in position 0--1: invalid character
Voila Ended

Is there any requirement for the location where voila is downloaded?

Paul Jewell

unread,
May 12, 2021, 12:26:27 PMMay 12
to majiq_voila
Could you humor me and do the following:

Open cmd.exe. (Press ctrl+r, then type cmd.exe and press enter)
type:

c:
cd majiqdata
dir

(Three separate lines)

Please let me know the output of the last command. 

It is still having trouble of opening the path of wherever the .psi voila file is. 

Thanks, 
-Paul

mchen1

unread,
May 12, 2021, 12:46:24 PMMay 12
to Paul Jewell, majiq_voila
Hi Paul,

I just found the reason for the error — I got the word ‘ naïve’ in my voila file name. And it seems that the app cannot recognize the ï. Things work out when I change or delete this letter. 

Thank you for your help!

Maoting 



------------------ Original ------------------
From: Paul Jewell <pje...@biociphers.org>
Date: Thu,May 13,2021 0:26 AM
To: majiq_voila <majiq...@googlegroups.com>
Subject: Re: [Majiq] Re: voila app error
--
You received this message because you are subscribed to the Google Groups "majiq_voila" group.
To unsubscribe from this group and stop receiving emails from it, send an email to majiq_voila...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/majiq_voila/f11bf1d1-a3e2-46f1-a898-0d0907e63ceen%40googlegroups.com.

Paul Jewell

unread,
May 12, 2021, 2:05:13 PMMay 12
to majiq_voila
Hi Maoting, 

Yay! I'm glad it was a relatively simple resolution afterall~

Thanks, 
-Paul

Reply all
Reply to author
Forward
0 new messages