Categories
Linux Mastering Development Ubuntu

Cannot open jupyter notebook on ubuntu18.04-VirtualMachine (PermissionError: [Errno 13] )

I installed Anaconda, and when I am trying to open jupyter notebook either through Anaconda or directly form the terminal I am getting the error – Traceback (most recent call last): File “/home/siddhant/anaconda3/lib/python3.7/site-packages/traitlets/traitlets.py”, line 528, in get value = obj._trait_values[self.name] KeyError: ‘runtime_dir’ During handling of the above exception, another exception occurred: Traceback (most recent call […]

Categories
Mastering Development

AttributeError: ‘list’ object has no attribute ‘get’`

I am having some difficulties with the below code. When I am trying to run it I am getting an error. def parse_Nmap(filename): tmp_http_list = [] tmp_https_list = [] tmp_ports_list = [] tmp_os_list = [] notrelevant = [‘name’, ‘method’, ‘conf’, ‘cpelist’, ‘servicefp’, ‘tunnel’] relevant = [‘@product’, ‘@version’, ‘@extrainfo’] with open(filename,mode= “rt”) as f: tree = […]

Categories
Mastering Development

Cannot install pyttsx

When I attempt to install pyttsx3 using pip3 install pyttsx3, I receive the following output: Defaulting to user installation because normal site-packages is not writeable Collecting pyttsx3 Using cached pyttsx3-2.84-py3-none-any.whl (39 kB) Collecting pyobjc>=2.4 Using cached pyobjc-6.1-py3-none-any.whl (2.9 kB) Collecting pyobjc-framework-WebKit==6.1 Using cached pyobjc-framework-WebKit-6.1.tar.gz (444 kB) ERROR: Command errored out with exit status 1: command: […]

Categories
Linux Mastering Development Ubuntu

I get an error message when I try to launch anaconda in unbuntu

I am running the most up to date version of unbuntu. I just reinstalled anaconda3 twice since it stopped working. I get this error message. What does it mean? I also updated from Python 3.6 to 3.7 which broke my terminal. So I switched the language back to 3.6 in xterm. (base) bryan@bryan-Inspiron-5559:~$ anaconda-navigator Traceback […]

Categories
Development Linux

Can’t install Foxit Reader in Arch linux (`gstreamer0.10` error)

I’ve got Arch Linux and I can’t install Foxit Reader from AUR. It fails when building gstreamer0.10. The source of the error is that it can’t find a Python package called giscanner._giscanner. Here are what I think are the relevant lines for the error: /usr/include/glib-2.0/glib/deprecated/gthread.h:153:8: note: declared here 153 | struct _GStaticRecMutex | ^~~~~~~~~~~~~~~~ CCLD […]

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 Linux

instagram bot syntax error line 99

from selenium import webdriver from selenium.webdriver.common.keys import Keys import random import sys import time class GaryVee: username = ‘garyveedollareighty’ password = ‘dollareighty’ hashtags = [ ‘wanderlust’, ‘travels’, ‘travel’, ‘explore’, ‘exploring’, ‘vacation’, ‘adventure’, ‘holiday’, ‘holidays’, ‘instatravel’, ] comments = [ ‘Your posts are amazing’, ‘Amazing work. Keep going!’, ‘Your photos are magnificent’, ‘Your work fascinates me!’, […]

Categories
Development

Unclear errors when trying to save data while overriding default ‘create’ method

Tried to write custom create method for my model, but run into some unclear errors. Here is my code: # models.py: class ItemModel(models.Model): item_id = models.CharField(max_length=10, primary_key=True) name = models.CharField(max_length=40) active = models.BooleanField(default=True) def __str__(self): return self.item_id class ItemVersion(models.Model): item_ver_id = models.CharField(max_length=13, primary_key=True) item_ver = models.TextField() config = models.TextField() model = models.ForeignKey(ItemModel, on_delete=models.CASCADE, default=0) session_id […]

Categories
Development

error while installing pyttsx3 on windows 10

ERROR: Command errored out with exit status 1: command: ‘c:\users\vikram\appdata\local\programs\python\python38-32\python.exe’ -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\Vikram\\AppData\\Local\\Temp\\pip-install-3j9niuc7\\pyobjc-framework-ScreenSaver\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\Vikram\\AppData\\Local\\Temp\\pip-install-3j9niuc7\\pyobjc-framework-ScreenSaver\\setup.py'”‘”‘;f=getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__);code=f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ egg_info –egg-base pip-egg-info cwd: C:\Users\Vikram\AppData\Local\Temp\pip-install-3j9niuc7\pyobjc-framework-ScreenSaver\ Complete output (15 lines): Traceback (most recent call last): File “<string>”, line 1, in <module> File “C:\Users\Vikram\AppData\Local\Temp\pip-install-3j9niuc7\pyobjc-framework-ScreenSaver\setup.py”, line 19, in <module> Extension( File “C:\Users\Vikram\AppData\Local\Temp\pip-install-3j9niuc7\pyobjc-framework-ScreenSaver\pyobjc_setup.py”, line 408, […]

Categories
Development

Getting error when trying to import seaborn library (python)

I am on Windows 10. Whenever I try to import the seaborn library through the command prompt, I get the error: C:\Python Stuff>python3 Python 3.7.6 (tags/v3.7.6:43364a7ae0, Dec 19 2019, 01:54:44) [MSC v.1916 64 bit (AMD64)] on win32 Type “help”, “copyright”, “credits” or “license” for more information. import seaborn Traceback (most recent call last): File “”, […]