Categories
Mastering Development

VS Code: ModuleNotFoundError: No module named ‘pandas’

Tried to import pandas in VS Code with import pandas and got Traceback (most recent call last): File "c:\Users\xxxx\hello\sqltest.py", line 2, in <module> import pandas ModuleNotFoundError: No module named ‘pandas’ Tried to install pandas with pip install pandas pip3 install pandas python -m pip install pandas separately which returned (.venv) PS C:\Users\xxxx\hello> pip3 install pandas […]

Categories
Mastering Development

implementing checkbox in flask_wtf giving value error

I am new to flask and i am trying to implement checkbox using flask_wtf. index.html <body> </body> form_validator.py class MultiCheckboxField(SelectMultipleField): widget = widgets.ListWidget(prefix_label=False) option_widget = widgets.CheckboxInput() class SimpleForm(FlaskForm): permission = MultiCheckboxField(‘Label’, choices=[(‘1′,’1’),(‘2′,’2’)]) I am getting this error in the webpage File "/root/plugins/create_job/app_builder.py", line 38, in list return self.render_template("index.html", form=form) File "/usr/local/lib/python3.7/site-packages/flask_appbuilder/baseviews.py", line 281, in render_template […]

Categories
Cryptocurrency Ethereum Mastering Development

This library has been renamed to `eth-utils`. The `ethereum-utils` package will no longer recieve updates. Please update your dependencies accordingly

I work on Ethereum Blockchain with Python when I connect Python with Smart Contract through python3 "Python File Name" .py I get this error Traceback (most recent call last): File "1_accounts.py", line 2, in <module> from web3 import Web3 File "/home/esraa/.local/lib/python3.8/site-packages/web3/__init__.py", line 6, in <module> from eth_account import ( File "/home/esraa/.local/lib/python3.8/site-packages/eth_account/__init__.py", line 1, in <module> […]

Categories
Mastering Development System & Network

Certbot fails with AttributeError: ‘module’ object has no attribute ‘Locale’

I setup a new server a couple of months ago, running Ubuntu 18.04 LTS. I successfully installed certbot and created my certificates using the cloudflare DNS plugin. It’s now getting to be time for renewal, but when I run certbot renew (or various other certbot commands) I get the following error # certbot renew /usr/local/lib/python2.7/dist-packages/cryptography/__init__.py:39: […]

Categories
Mastering Development

Error in opening chrome browser on unix using selenium webdriver_manager

from selenium import webdriver from webdriver_manager.chrome import ChromeDriverManager driver = webdriver.Chrome(ChromeDriverManager().install()) driver.get("http://www.python.org") driver.quit() Error Received : Traceback (most recent call last): File "chrome_code.py", line 2, in from webdriver_manager.chrome import ChromeDriverManager File "/home/akshat/Desktop/test/venv/lib/python3.5/site-packages/webdriver_manager/chrome.py", line 4, in from webdriver_manager.driver import ChromeDriver File "/home/akshat/Desktop/test/venv/lib/python3.5/site-packages/webdriver_manager/driver.py", line 77 self.auth_header = {‘Authorization’: f’token {self._os_token}’} ^ SyntaxError: invalid syntax

Categories
Mastering Development

“Unexpected character encountered while parsing value: [.” exception when deserializing into a List

I have an object: public class Node { public List<string> Text { get; set; } public List<Node> Next { get; set; } public string Topic { get; set; } } I serialized the root Node into json using: var json = JsonConvert.SerializeObject(Root, Formatting.Indented); Which gave me this as an example: { "Text": [ "" ], […]

Categories
Cryptocurrency Ethereum Mastering Development

web3 library has been renamed

when i run python 1_accounts.py I get the following error Traceback (most recent call last): File "1_accounts.py", line 2, in <module> from web3 import Web3 File "/home/esraa/.local/lib/python2.7/site-packages/web3/__init__.py", line 6, in <module> from web3.main import Web3 File "/home/esraa/.local/lib/python2.7/site-packages/web3/main.py", line 5, in <module> from web3.eth import Eth File "/home/esraa/.local/lib/python2.7/site-packages/web3/eth.py", line 18, in <module> from web3.utils.filters import ( […]

Categories
Android User Help

Google Music Dupe Killer

I’m using a Mac (10.12) with Python 2.7.10 I’ve done all the steps from Is there any way to find/remove duplicate tracks from Google Play Music? When I run either the kill_playlist_dupes.py or kill_dupes.py I get: File "/Users/deh/Desktop/Fix Google Play Music/google-music-dupe-killer-master/kill_playlist_dupes.py", line 4, in from gmusicapi import Mobileclient File "/Users/deh/Library/Python/2.7/lib/python/site-packages/gmusicapi/init.py", line 2, in from gmusicapi.clients […]

Categories
Mastering Development

error Don’t know how to join from :param_1; please use select_from() to establish the left entity/selectable of this join

I am using union all from 3 table with joins in sqlalchemy. The query works well on local machine with local database but throws mentioned error on production. I don`t know whats wrong here as its working with local database. Even if i connect my app to production database from my local machine it still […]

Categories
Mastering Development

Initialising flask environment variable issues

I am trying to create a an application using Flask. I have done this before successfully, however, I am not sure why this is not working this time. Everything seems to be in the right order. I have searched for answers, however, I still can’t determine what’s going wrong as everything seems logical to me? […]