Categories
Mastering Development

python pip corrupted, can’t repair or uninstall

Due to a series of events described later I am getting the following error in the command prompt whenever I try to do anything with pip. (venv) (base) C:\Users\Mark Kortink\Dropbox\Python\projects\metapplica>pip install flask Traceback (most recent call last): File “C:\ProgramData\Anaconda3\lib\runpy.py”, line 193, in _run_module_as_main “__main__”, mod_spec) File “C:\ProgramData\Anaconda3\lib\runpy.py”, line 85, in _run_code exec(code, run_globals) File “C:\Users\MARKKO~1\Dropbox\Python\projects\METAPP~1\venv\Scripts\pip.exe\__main__.py”, […]

Categories
Mastering Development

How decipher what the terminal Is saying and possibly offer a solution as to how to get the code to work?

I am brand new to coding on python as well as coding in general. I am doing a project that takes information from google sheets and displays it in the terminal. It doesn’t seem to be working but as a beginner (this is my first project), I have no clue what to do. I used […]

Categories
Mastering Development

in Vscode, RuntimeError: ‘path’ must be None or a list, not

I use Ubuntu and Vscode. In my Django project, I’ve tried to run python manage.py process_tasks command and I got this error below. Traceback (most recent call last): File “manage.py”, line 21, in <module> main() File “manage.py”, line 17, in main execute_from_command_line(sys.argv) File “/home/../venv/lib/python3.6/site-packages/django/core/management/__init__.py”, line 381, in execute_from_command_line utility.execute() File “/home/../venv/lib/python3.6/site-packages/django/core/management/__init__.py”, line 375, in execute […]

Categories
Development System & Network

pip/python error: from_buffer() cannot return the address of the raw string within a str or unicode or bytearray object

I’m trying to use certbot but it was giving me problems, so then I was told to reinstall it inside a virtual environment… I got virtualenv installed with pip, but then: > virtualenv -p /usr/bin/python2.7 certbot Traceback (most recent call last): File “/bin/virtualenv”, line 7, in <module> from virtualenv.__main__ import run_with_catch File “/usr/lib/python2.7/site-packages/virtualenv/__init__.py”, line 3, […]

Categories
Development

Error While trying to run flask project on Pycharm

Whenever I try to run my flask project, I get the following error: FLASK_APP = app.py FLASK_ENV = development FLASK_DEBUG = 0 In folder C:/Users/THEWARRIOR/PycharmProjects/chking E:\Anaconda3\python.exe -m flask run Traceback (most recent call last): File “E:\Anaconda3\lib\runpy.py”, line 193, in _run_module_as_main “__main__”, mod_spec) File “E:\Anaconda3\lib\runpy.py”, line 85, in _run_code exec(code, run_globals) File “E:\Anaconda3\lib\site-packages\flask\__main__.py”, line 15, in […]

Categories
Development

how do I resolve IndexError: list index out of range?

I am trying to replicate this repository: https://github.com/sujiongming/UCF-101_video_classification. I get the following error when I run the 2_extract_files.py file. Traceback (most recent call last): File “2_extract_files.py”, line 99, in <module> main() File “2_extract_files.py”, line 96, in main extract_files() File “2_extract_files.py”, line 38, in extract_files video_parts = get_video_parts(video_path) File “2_extract_files.py”, line 76, in get_video_parts filename = […]

Categories
Development

How does one fix the VS code debugger if it stopped working and throws a multithreaded/multiprocess error? [closed]

I was running the debugger when it suddenly threw me this error in the VS code terminal: (automl-meta-learning) brandomiranda~/automl-meta-learning ❯ cd /Users/brandomiranda/automl-meta-learning ; env PYTHONIOENCODING=UTF-8 PYTHONUNBUFFERED=1 /Users/brandomiranda/miniconda3/envs/automl-meta-learning/bin/python /Users/brandomiranda/.vscode/extensions/ms-python.python-2020.1.58038/pythonFiles/ptvsd_launcher.py –default –client –host localhost –port 49949 /Users/brandomiranda/automl-meta-learning/automl/automl/meta_optimizers/differentiable_SGD.py –> main in differentiable SGD hello world Files already downloaded and verified Files already downloaded and verified Files already downloaded […]

Categories
Development

Failed to load the native TensorFlow runtime – TensorFlow 2.1

I have a desktop computer and a notebook, when I tried to install tensorflow on a notebook just by using pip install tensorflow it worked ok, then I tried the same on my desktop computer and when I tried to run the simplest possible code: import tensorflow as tf from tensorflow.keras import Sequential print(“done”) I […]

Categories
Development

MISP Threat Indicators to Azure sentinel – Python Script issue

I am trying to push the threat indicators from my MISP instance to azure sentinel by using azure’s default documentation on github : https://github.com/microsoftgraph/security-api-solutions/tree/master/Samples/MISP I performed the steps as per documentation however python3 script.py is giving me following error: Traceback (most recent call last): File “script.py”, line 100, in <module> main() File “script.py”, line 96, […]