Categories
Mastering Development

Scrapy item pipeline returns TypeError: ‘NoneType’ object is not subscriptable error

I know my selectors are working since I tested them with scrapy shell. However when I use the debugger with a breakpoint at the first line of my pipeline code, the item passed to the process_item function is None although I’m sure the spider gets the right values. I can’t figure out what’s going on, […]

Categories
Mastering Development

How to get text from an internet URL? [closed]

I need to get text (localisation) from a URL I created with my phone. I can make it work with Python 3 but I need it to work with Python 2.7. Why does this error appear? I just need to get a variable with the numbers in the URL and the action (go). import urllib2 […]

Categories
Linux Mastering Development

Error with Keyring when connection from ssh

Due to COVID-19 we are working from home. Now I have a linux (Ubuntu) pc at my workplace which has TortoiseHG Workbench installed. I connect via MobaXTerm to my computer over ssh. Normally when I try to update the repo it works due to the password and user is saved in the keyring. Now when […]

Categories
Mastering Development

Airflow worker not starting with celery

I’m trying to get started with airflow at AWS. My webserver and scheduler are working fine, but I have a strange error when I start my worker task. As a small summary of my environment: Redis via AWS Elasticache Postgres via AWS RDS Worker | Scheduler | Webserver as ECS containers on EC2 instance In […]

Categories
Mastering Development

Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output – while installing auto-py-to-exe through pip

I am trying to download auto-py-to-exe on a different (windows) device than I usually use through pip. However when run I get the error (sorry it is so very very long): ERROR: Command errored out with exit status 1: command: ‘c:\users\tom\appdata\local\programs\python\python38-32\python.exe’ -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\tom\\AppData\\Local\\Temp\\pip-install-aplljhe0\\gevent\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\tom\\AppData\\Local\\Temp\\pip-install-aplljhe0\\gevent\\setup.py'”‘”‘;f=getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__);code=f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ […]

Categories
Mastering Development

Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output – while installing auto-py-to-exe through pip

I am trying to download auto-py-to-exe on a different (windows) device than I usually use through pip. However when run I get the error (sorry it is so very very long): ERROR: Command errored out with exit status 1: command: ‘c:\users\tom\appdata\local\programs\python\python38-32\python.exe’ -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\tom\\AppData\\Local\\Temp\\pip-install-aplljhe0\\gevent\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\tom\\AppData\\Local\\Temp\\pip-install-aplljhe0\\gevent\\setup.py'”‘”‘;f=getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__);code=f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ […]

Categories
Development

Installing cvxpy on windows with anaconda: failed nosetests misrebally

Please explain what I should do slowly. I am trying to install cvxpy on my machine. I have installed python, visual studio build tools and tried in command prompt but I got errors when I tried to install. So I ditched that idea and installed anaconda and I am now able to install and but […]

Categories
Bitcoin Cryptocurrency Development

Mining a private peercoin fork

I am trying to start a local test blockchain fork of peercoin. I have updated the genesis and network parameters, mined the new genesis hash and have successfully started and connected two nodes to each other. As the internal miner is since earlier version, so i cannot leverage generate or setgenerate true commands. I tried […]

Categories
Development

PYPY3 — Unable to install Pandas

I have been trying to install pandas in PYPY with out any success. Below is the complete log message. Windows 10 64 Bit OS. Have installed the Visual C++ 2015-2019 redistributable. Python 3.7 , pip 19.3.1 ( installed through Anaconda) pypy3.6-v7.2.0-win32 how to resolve this error? Collecting pandas Using cached https://files.pythonhosted.org/packages/b7/93/b544dd08092b457d88e10fc1e0989d9397fd32ca936fdfcbb2584178dd2b/pandas-0.25.3.tar.gz Complete output from command […]

Categories
Development

Error while installing Jupyter on Windows 10

I am getting the following error while Installing Jupyter through pip install jupyter Below is the error I am getting: ERROR: Command errored out with exit status 1: command: ‘c:\users\lenovo\appdata\local\programs\python\python38-32\python.exe’ -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\LENOVO\\AppData\\Local\\Temp\\pip-install-wxq2b1yw\\pywinpty\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\LENOVO\\AppData\\Local\\Temp\\pip-install-wxq2b1yw\\pywinpty\\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 ‘C:\Users\LENOVO\AppData\Local\Temp\pip-install-wxq2b1yw\pywinpty\pip-egg-info’ cwd: C:\Users\LENOVO\AppData\Local\Temp\pip-install-wxq2b1yw\pywinpty\ Complete output (161 lines): Compiling C:\Users\LENOVO\AppData\Local\Temp\easy_install-019202gj\Cython-0.29.14\Cython\Plex\Scanners.py […]