正规365体育投注

Dark mode beta

You’ve been asking for dark mode for years.
The is finally here.

Change your preferences正规365体育投注 any time.

Questions tagged [python-3.7]

Version of the Python programming language released in June 27, 2018. For issues that are specific to Python 3.7. Use the more generic [python] and [python-3.x] tags where possible.

Filter by
Sorted by
Tagged with
0
votes
0answers
3 views

Python script for Pymol with user input

I have prepared a script for Pymol that works well in evaluating RMSD values for a list of residues of proteins of interest (targetted residues are generated by script embedded commands). However, I ...
0
votes
1answer
22 views

How to skip some chunks in python read file code?

I have a code like this: chunk_size=512*1024 #512 kb big_file = open(file, 'rb') while True: data = big_file .read(chunk_size) if not data: break If I want to read only ...
0
votes
0answers
5 views

python: Force aiohttp to not normalize url

I use aiohttp to send a request like so: async with ClientSession() as session: res = await session.get("http://0.0.0.0:8000/./") When I start up a http server using python like so: python3 ...
0
votes
0answers
10 views

Fragment a TCP package and making them overlap using socket in python3?

I am taking a network security course and we use kali and a metasploitable machine to preform scans and attacks. I found out that the version is vulnerable to the Teardrop attack, so I want to try it ...
0
votes
1answer
13 views

I get ValueError with the ndim when I run model.predict(X)

I use this code to train my model on my data tf.keras.backend.clear_session() tf.random.set_seed(50) np.random.seed(50) train_set = windowed_dataset(x_train, window_size=30, batch_size=15, ...
0
votes
0answers
8 views

How to predict unlabelled data's sentiment using Gensim word2vec model?

I trained and test the 'IMDb movie reviews dataset' using the Gensim word2vec model and I want to predict the sentiments of my own unlabelled data. I tried but got an error. I am reusing an open-...
0
votes
1answer
20 views

Is there a way to dynamically change the name of a command with an extra input in the class?

Here is my code : @commands.group(name=f'{prefix}stop', hidden=True) @commands.is_owner() async def stop(self, ctx): await ctx.message.add_reaction('\N{THUMBS UP SIGN}') ...
-1
votes
0answers
9 views

Not able to convert <class str > to int. Tried multiple methods [duplicate]

I have a following variable with class string which is not getting converting to int to be used in graph: total_cases = dict1["latest_stat_by_country"][0]["total_cases"] print(total_cases) print(type(...
0
votes
0answers
13 views

Copy file instantly while Tkinter Program is running

I have a little GUI Program that should only get some inputs to use these inputs for a method call. Therefore I have several tk.Entry objects. Now my method that I want to execute needs a file from ...
0
votes
0answers
5 views

Problem in importing Spectral Library in Python

I have installed spectral library in Python 3.7 according to the commands given on the documentation site of SPy(spectral python) The commands were : python setup.py install pip install spectral ...
0
votes
0answers
9 views

Line Profiling methods that are inside an asyncio.gather()

I have the following code (Sample of it due to NDA) class Executor: @profile async def run(self): result = await __run_and_validate() async def __run_and_validate(self): ...
0
votes
1answer
11 views

Testing Async Coroutines With Context Manager

I have been trying to test a Context managed Async coroutine through aiobotocore in Python 3.7 . I have been using the asynctest package to get the included MagicMock which has the magic methods of ...
0
votes
1answer
26 views

Is there a way to import functions with decorators in python for discord bots

Like said in the title, if it's possible I'd like to be able to import some part of code that contains decorators in the bot code. from discord.ext import commands class Updates(commands.Cog): ...
0
votes
1answer
11 views

Convert json to csv from one S3 bucket and upload to another S3 bucket through AWS Lambda

I have tried below code but I am not able to convert the data from json to csv. Can someone please help me? import boto3 import botocore import csv def lambda_handler(event, context): BUCKET_NAME ...
1
vote
1answer
25 views

FileNotFoundError: [Errno 2] No such file or directory for pictures on Python 3.7

I am a beginner on Python. I try to open a picture to print its size and format. My picture is in several folders: my images the folder of my Python codes the folder of anaconda3\lib\site-packages\...

15 30 50 per page
1
2 3 4 5
209