Categories
Mastering Development

read csv without row enumeration column and sorting with custom key

I have a TSV file which I want to read, sort by a specific column and write it back. Two problems I ran into are: providing a custom key results an error (which I will show the backtrace at the end of the post) without providing a custom key, the sorting is done. but when […]

Categories
User Help

Cannot retrieve a value from a web page using Selenium in Python3

iam just trying to login to a webpage using selenium to post credentials to it and the use XPath to get the the profit value. My code is: #!/usr/bin/python3 # coding=utf-8 from selenium import webdriver from selenium.webdriver.chrome.options import Options import requests, time, os, gtts options = Options() options.add_argument(‘–headless’) # Runs Chrome in headless mode. options.add_argument(‘–no-sandbox’) […]

Categories
Linux Mastering Development Ubuntu

catkin_make error build

I am having the following error. I tried reinstalling ROS but still have the same issue. catkin_make Base path: /home/obara/catkin_ws Source space: /home/obara/catkin_ws/src Build space: /home/obara/catkin_ws/build Devel space: /home/obara/catkin_ws/devel Install space: /home/obara/catkin_ws/install Creating symlink "/home/obara/catkin_ws/src/CMakeLists.txt" pointing to "/opt/ros/melodic/share/catkin/cmake/toplevel.cmake" #### #### Running command: "cmake /home/obara/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/obara/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/obara/catkin_ws/install -G Unix Makefiles" in "/home/obara/catkin_ws/build" #### CMake Warning (dev) […]

Categories
Mastering Development

fatal error C1083: Cannot open include file: ‘sys/un.h’: No such file or directory – solved by uninstalling and then installing pyzmq – why?

My anaconda crashed and nothing but prompt was working. I searched for answers for 4 hours before trying a solution given in another post – to uninstall and then install pyzmq. here is the error msg cffi_ext.c anaconda3\lib\site-packages\zmq\backend\cffi__pycache___cffi_ext.c(266): fatal error C1083: Cannot open include file: ‘sys/un.h’: No such file or directory Traceback (most recent call […]

Categories
Linux Mastering Development Ubuntu

hyperledger-sawtooth key generatiion problem

I have installed hyperledger-sawtooth. I typed the command sawtooth keygen my_key to create the key, but I got this error: $ sawtooth keygen my_key Traceback (most recent call last): File "/usr/bin/sawtooth", line 11, in <module> load_entry_point(‘sawtooth-cli==1.2.4’, ‘console_scripts’, ‘sawtooth’)() File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 480, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2693, in load_entry_point return ep.load() […]

Categories
Linux Mastering Development Ubuntu

Not able to get mac address – Kali Linux

Here is the code that i am using to get mac address, it is working fine if i am getting mac address of ip= 10.0.2.1 but if i try to get mac address of 10.0.2.7, it is showing me list index out of bound exception, However i am using kali linux in virtual machine and […]

Categories
Linux Mastering Development Ubuntu

pip install pyopenssl object has no attribute ‘SSL_ST_INIT’

I’ve searched this forum for the same issues and none of the fixes worked for me. I have a Ubuntu 18.04 and any python 2.7 modules that need OpenSSL I get an attribute error. Pip install command always gives attribute error, but a pip freeze command works. I tried (unsuccessfully) the commands: pip install -U […]

Categories
Database Development

Explaining recurring crash in postgresql deployment

I’m having trouble with unexpected system crashes emanating from a postgresql deployment on a moderately busy production server (Django 1.8 app deployed on DO droplet with a gunicorn application server and nginx reverse proxy). I’m an accidental DBA and need an expert’s opinion on piecing together what’s going on. I have no clue right now; […]

Categories
Mastering Development

ModuleNotFoundError: No module named ‘common.db’

Im setting up a private game server and one of the setup scripts is requiring common.db, which I cant seem to find anywhere else in the git repo, in python, or apt. flipflops@localhost:~/lets$ python3 lets.py Traceback (most recent call last): File “lets.py”, line 22, in <module> from common.db import dbConnector ModuleNotFoundError: No module named ‘common.db’

Categories
Mastering Development

tf_encrypted.player how to config?

While training the model federated learning with keras on syft,to start workers on different system as client workers, particular line of command to be exectued on terminal. python -m tf_encrypted.player –config /tmp/tfe.config client name this command should be executed on system which is one of my client workers.when executing the code (PySyft) C:\Users\mades>python -m tf_encrypted.player […]