Category : runtime-error

Until yesterday (20 Jan) I could connect to another google drive account (using drive._mount), but when I tried this today, google colab showed me this error: from google.colab import drive drive._mount(‘/content/drive/’) /usr/local/lib/python3.7/dist-packages/google/colab/drive.py in _mount(mountpoint, force_remount, timeout_ms, use_metadata_server, ephemeral) 294 wrote_to_fifo = True 295 elif case == 5 and not use_metadata_server: –> 296 raise ValueError(‘mount failed: ..

Read more

I’m very newbie on pytorch and deep learning, and I got some error while running a sample code from deep learning class. When I run the code I attached below, There comes an errors like, text = torch.from_numpy(data[‘text’]).long().cuda(0) # feature extraction mel_gt = get_mel(audio) # shift mel spectrogram -> the input of the network mel_shift ..

Read more

I am working on this problem on kattis : https://open.kattis.com/contests/oxfcar/problems/babelfish I tested it with the input provided and it works fine but I submit on Kattis, I keep getting "RUN TIME ERROR!" What is the mistake here? I don’t understand at all. // build the dictionary by mapping foreign words to english line="a" dict1={} while ..

Read more

I am getting this error on my code. In my code, I am trying to implement multi-objective baysian optimization. Some part of my code is as below: def latent_optimization_qehvi( #args, #model, #datamodule, num_queries_to_do, pbar=None, postfix=None, ): """ do latent space optimization with the optimal model (aka cheating) """ ################################################## # Prepare GP ################################################## # We ..

Read more

I want to use this skript to scrape messages from Telegram. When it receives the right message, it returns it but then I get this error which will automaticly stop the mainscript that runs this telegram script to get some values. So here is the code: import asyncio import configparser from telethon import TelegramClient, events ..

Read more

this is my code for find some message and forwarding them by message_id in telethon client = TelegramClient(username, api_id, api_hash) async def main(phone): await client.start() print("Client Created") # Ensure you’re authorized if await client.is_user_authorized() == False: await client.send_code_request(phone) channel = "channelID" if channel.isdigit(): entity = PeerChannel(int(channel)) else: entity = channel async for message in client.iter_messages(entity, ..

Read more

I am a novice programmer and I feel that I have very fundamental misunderstandings which I am trying to identify. In this question, I am going to be working out my logic to a coding challenge in order to help you identify the misconceptions I am experiencing. The context of this question is the Hackerrank ..

Read more

I m using pvporcupine python SDK for picovoice for hot word detection, while using the below code I’m getting runtime error import pvporcupine access_key = "/6JEWV7IWygsvGC0n9LSHQH60G6W5pUGXp9+WtA==" # AccessKey obtained from Picovoice Console (https://picovoice.ai/console/) #access key is altered for security reason handle = pvporcupine.create(access_key=access_key, keywords=[‘porcupine’]) here is the error stack trace Traceback (most recent call last): ..

Read more