Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

UnicodeDecodeError

I have a script sent to me I wish to run on OpenSesame. I installed the software from the main download site (as an exe. file not the zip and run type), and pret ty much used wizard to do the rest on my desktop (can't say I needed a username as such during the installation process - just set the file directory and that was it).

The programme runs fine. I have a script I wish to run (an experiment), however, when I try to run the script (either by clicking on the file or opening it in OS) I am presented with this:
Failed to open the file for the following reason:

Failed to open the file for the following reason:

Failed to open file
Details

item-stack: ``
time: Mon Dec 31 13:04:14 2018
exception type: UnicodeDecodeError
exception message: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte
Traceback (also in debug window)

File "C:\Users\User\Desktop\OpenSesame\lib\site-packages\libqtopensesame\qtopensesame.py", line 730, in open_file
experiment_path=os.path.dirname(path)
File "C:\Users\User\Desktop\OpenSesame\lib\site-packages\libqtopensesame\items\experiment.py", line 88, in init
workspace=base_python_workspace(self)
File "C:\Users\User\Desktop\OpenSesame\lib\site-packages\libopensesame\experiment.py", line 149, in init
string = self.open(string)
File "C:\Users\User\Desktop\OpenSesame\lib\site-packages\libopensesame\experiment.py", line 640, in open
f = osexpreader(self, src)
File "C:\Users\User\Desktop\OpenSesame\lib\site-packages\libopensesame\osexpfile_osexpreader.py", line 57, in init
self._read_scriptfile()
File "C:\Users\User\Desktop\OpenSesame\lib\site-packages\libopensesame\osexpfile_osexpreader.py", line 118, in _read_scriptfile
self._script = fd.read()
File "C:\Users\User\Desktop\OpenSesame\lib\codecs.py", line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte

I've ensured file name has no special characters, as is my opensesame username in the programme? I also tried placing the script file in the opensesame folder directory - no luck. My operating system is 64 bit - I have downloaded the correct installation package. Lastly, I struggle to find an example script file itself to download for comparison. Only code to run a programme is presented on the website. My question is does anyone know why I cannot open this script, and also, has anyone an script file whereby I can see if I am presented the same error message.

Thank you for your time and patients.
Anthony

Comments

  • Hi Anthony,

    Sounds like the experimental file is corrupted or contains characters that Opensesame can't decode. You can try opening the file in a text editor (maybe you have to unzip the file first). If you can open it, you can try to find the problematic part, but to be frank, this is quite a tedious thing to do. If you have access to the original script, you can try to get a new copy, or start from scratch and write everything yourself.

    Sorry,

    Eduard

    Buy Me A Coffee

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games