This is my setup.py: install_requires=[ ‘requests’, ‘appdirs’, ‘windows-curses; platform_system=="Windows"’ ], When I install the project on Windows it says ‘windows-curses; platform_system=="Windows"’ can not be found, however pip install windows-curses works. ERROR: Could not find a version that satisfies the requirement windows-curses; platform_system == "Windows" (from nodreader==0.1.9) (from versions: none) Source: Python..

Read more

I successfully create files in bucket of object storage in Linode. But while deleting all files in that storage it prompts an error. import boto3 cfg = { "aws_access_key_id":"XXXXXXXXXXXXXXXXXX", "aws_secret_access_key": "XXXXXXXXXXXXXXXXXXXXXXXX", "endpoint_url": "*********************", } S3_BUCKET = "test" # empty existing bucket def empty_s3_bucket(): client = boto3.client( ‘s3’, **cfg, ) response = client.list_objects_v2(Bucket=S3_BUCKET) if ‘Contents’ in ..

Read more

Hello, I rowt this code to extract data from an SQLite database and make a data frame with pandas. import pandas as pd import sqlite3 import os search_path = "C:UsersliranOneDriveDesktopprojectsraw_dataNEMESIS" def find_sqlite_files_box(search_path_os): file_roots = [] for root, dir, file in os.walk(search_path_os, topdown=True): for name in file: file_roots.append(os.path.join(root, name)) return file_roots list_of_roots = find_sqlite_files_box(search_path) s3db_file_list = ..

Read more