Cannot install Pip in manjaro(Arch-Linux) , error while retriving files - python

I tried installing pip in manjaro(Arch-Linux) from terminal.
I tried running the following command -
sudo pacman -S python-pip
it gave me the following error -
Error Screenshot
python-pip-22.3-1-any.pkg.tar.zst failed to download
Total (1/7) 3.9 MiB 80.0 KiB/s 00:50 [#######################################################################################] 100%
error: failed retrieving file 'python-pip-22.3-1-any.pkg.tar.zst' from mirrors.ustc.edu.cn : SSL connection timeout
error: failed retrieving file 'python-pip-22.3-1-any.pkg.tar.zst' from mirror.csclub.uwaterloo.ca : The requested URL returned error: 404
error: failed retrieving file 'python-pip-22.3-1-any.pkg.tar.zst' from mirror.tarnkappe.info : The requested URL returned error: 404
error: failed retrieving file 'python-pip-22.3-1-any.pkg.tar.zst' from mirrors.ucr.ac.cr : SSL connection timeout
error: failed retrieving file 'python-pip-22.3-1-any.pkg.tar.zst' from manjaro.ipacct.com : The requested URL returned error: 404
error: failed retrieving file 'python-pip-22.3-1-any.pkg.tar.zst' from mirror.alpix.eu : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed to commit transaction (failed to retrieve some files)
Errors occurred, no packages were upgraded.
can anyone tell me how to fix this issue? and why pip wasn't packaged with python in the first place ?

TLDR: just run pacman -Syu python-pip instead of pacman -S python-pip
As Arch Linux(and Manjaro) are rolling release it is not recommended to do do partial updates as they can break packages or in this case after some time the pacman database can be outdated so you should always do an update in order to prevent any issues when installing/updating packages, unless you know explicitly that you do not want to do a partial update you should not do it.
as for the 404 error it is pretty common that the mirrors of the packages delete the old packages for those reasons.
in the case for pip is unknow to me but it should be that python and pip are not the same and should be treated as such

Related

Patchman Error during install ModuleNot Found Error: 'importlib.metadata' --python3-patchman

I have attached the image of the error dpkg error
I'm not really a developer so I am not sure how to troubleshoot something like this really? what direction should I be going?
I've looked around for ways to install any missing dependencies but now its unable to connect to "patchman server" which I don't believe has even been defined yet with a host/ip
dpkg: error processing package python3-patchman (--configure):
installed python3-patchman package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
python3-patchman
Sending report to patchman server ...
E: Sub-process /usr/bin/dpkg returned an error code (1)

Trying to start appium server from the command line but keep getting this error

C:\Users\13024\PycharmProjects\UltraShop_Clean
Encountered internal error running command: Error: Could not sign with default certificate. Original error Command 'C:\Program Files\Java\jdk1.8.0_251\bin\bin\java.exe' not found. Is it installed?
[debug] [W3C] at ADB.signWithDef
java is installed and working it does have two \bins that do not exist
An unknown server-side error occurred while processing the command. Original error:
Could not sign with default certificate. Original error Command
'C:\Android\Studio\jre\bin\bin\java.exe' not found. Is it installed?
my system envs:
Removing the /bin from my java env Var and restarting computer worked.

Not able to update conda environment

I am getting following error while updating conda environment.
command:
conda update setuptools
Conda not able to download pywavelets-1.1.1.
getting below error:
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/win-64/pywavelets-1.1.1-py37he774522_0.tar.bz2>
Elapsed: -
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
Other packages are getting downloaded properly
Issue resolved with following steps:
1. reinstalled Anaconda
2. create condarc file with following content in it.
proxy_servers:
http: http://username:password#proxy:8080
https: https://username:password#proxy:8080
ssl_verify: false
channels:
- defaults
report_errors: false

conda : SSLError(SSLError(SSLError("bad handshake: SysCallError(104, 'ECONNRESET')",),),) conda

I want to use miniconda3 to install a package but it pops that error:
Solving environment: failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/main/noarch/repodata.json.bz2>
Elapsed: -
An HTTP error occurred when trying to retrieve this URL. HTTP errors are often intermittent, and a simple retry will get you on your way.
If your current network has https://www.anaconda.com blocked, please file a support request with your network engineering team.
SSLError(SSLError(SSLError("bad handshake: SysCallError(104, 'ECONNRESET')",),),)
BTW, the miniconda2 runs wells only miniconda3 has the problem.
PS. I also tried to use wget --no-check-certificate to download the file and got the error too:
wget https://repo.anaconda.com/pkgs/main/linux-64/repodata.json.bz2
--2019-03-14 02:03:44-- https://repo.anaconda.com/pkgs/main/linux-64/repodata.json.bz2
Resolving repo.anaconda.com (repo.anaconda.com)... 104.16.130.3,
104.16.131.3, 2606:4700::6810:8303, ...
Connecting to repo.anaconda.com (repo.anaconda.com)|104.16.130.3|:443... connected.
Unable to establish SSL connection.
The system is CentOS and I have already use sudo yum update to update the sys file and library.

stratum-mining-proxy error - Can't decode message

I'm attempting to run stratum-mining-proxy with minerd. Proxy starts and runs with the following command:
python ./mining_proxy.py -o ltc-stratum.kattare.com -p 3333 -pa scrypt
Proxy starts fine. Run Minerd (U/P removed):
minerd -a scrypt -r 1 -s 6 -o http://127.0.0.1:3333 -O USERNAME.1:PASSWORD
Following errors are received. This one from the proxy:
2013-07-18 01:33:59,981 ERROR protocol protocol.dataReceived # Processing of message failed
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/stratum-0.2.12-py2.7.egg/stratum/protocol.py", line 185, in dataReceived
self.lineReceived(line, request_counter)
File "/usr/local/lib/python2.7/dist-packages/stratum-0.2.12-py2.7.egg/stratum/protocol.py", line 216, in lineReceived
raise custom_exceptions.ProtocolException("Cannot decode message '%s'" % line)
'rotocolException: Cannot decode message 'POST / HTTP/1.1
And this from minerd. What am I doing wrong? Any help is appreciated!
[2013-07-18 01:33:59] HTTP request failed: Empty reply from server
[2013-07-18 01:33:59] json_rpc_call failed, retry after 30 seconds
I am a little curious, I don't know as a fact but I was under the impression that the mining proxy was for BTC not LTC.
But anyways I believe I got a similar message when I first installed it as well. To fix, or rather to actually get it running I had to use the Git installation method instead of installing manually.
Installation on Linux using Git
This is advanced option for experienced users, but give you the easiest way for updating the proxy.
1.git clone git://github.com/slush0/stratum-mining-proxy.git
2.cd stratum-mining-proxy
3.sudo apt-get install python-dev # Development package of Python are necessary
4.sudo python distribute_setup.py # This will upgrade setuptools package
5.sudo python setup.py develop # This will install required dependencies (namely Twisted and Stratum libraries), but don't install the package into the system.
6.You can start the proxy by typing "./mining_proxy.py" in the terminal window. Using default settings, proxy connects to Slush's pool interface.
7.If you want to connect to another pool or change other proxy settings, type "./mining_proxy.py --help".
8.If you want to update the proxy, type "git pull" in the package directory.

Categories

Resources