Open MrWiffer opened 3 years ago
Hey @MrWiffer, thanks for the stack trace! It suggests it may be a bug introduced in our 0.2.1 release. Can you try downgrading to 0.2.0
on the Ubuntu 20.04 machine, and let me know if it works?
pip3 uninstall solc-select
pip3 install solc-select==0.2.0
solc-select install
Hey @MrWiffer, thanks for the stack trace! It suggests it may be a bug introduced in our 0.2.1 release. Can you try downgrading to
0.2.0
on the Ubuntu 20.04 machine, and let me know if it works?pip3 uninstall solc-select pip3 install solc-select==0.2.0 solc-select install
I've tried in this way.
command solc-select install
works, but when I want to install solc 0.4.25 via solc-select install 0.4.25
, there is something wrong:
wy@wy-virtual-machine:~$ solc-select install 0.8.0
Installing '0.8.0'...
Traceback (most recent call last):
File "/usr/bin/solc-select", line 8, in <module>
sys.exit(solc_select())
File "/home/wy/.local/lib/python3.8/site-packages/solc_select/__main__.py", line 27, in solc_select
install_artifacts(args.get(INSTALL_VERSIONS))
File "/home/wy/.local/lib/python3.8/site-packages/solc_select/solc_select.py", line 45, in install_artifacts
urllib.request.urlretrieve(url, artifact_file)
File "/usr/local/python3/lib/python3.8/urllib/request.py", line 276, in urlretrieve
block = fp.read(bs)
File "/usr/local/python3/lib/python3.8/http/client.py", line 459, in read
n = self.readinto(b)
File "/usr/local/python3/lib/python3.8/http/client.py", line 503, in readinto
n = self.fp.readinto(b)
File "/usr/local/python3/lib/python3.8/socket.py", line 669, in readinto
return self._sock.recv_into(b)
File "/usr/local/python3/lib/python3.8/ssl.py", line 1241, in recv_into
return self.read(nbytes, buffer)
File "/usr/local/python3/lib/python3.8/ssl.py", line 1099, in read
return self._sslobj.read(len, buffer)
ConnectionResetError: [Errno 104] Connection reset by peer
What's more, the issue above occurs when I have upgrade the Python version on my Ubuntu18.04, from 3.6.9 to 3.8.11. I tried to install solc on my Ubuntu20.04 LTS with system Python version and it works. It's so odd.
Hey @NatalieChin80 I have the same issue but downgrading didn't solve it. Still see the exact issue. The strange part is that it works fine on my other computer with a similar condition(maybe my python versions differ)- both macs.
ok after hours of playing with different versions, frist, it seems that latest version of solc-select does not work any python's version I tried(I tried 3.8.9, 3.9.9, 3.10.2 and a few others). second the version @NatalieChin80 suggests seems to only be working with python 3.9.9 on mac.
for other people having issues to downgrade their python3, try using pyenv, but before that make sure you have deleted python3 from /Library/Frameworks/Python.framework
and from your $PATH
. For some weird reason, it was exported in .zprofile instead of .zshrc
tks
Ubuntu 18.04 and Ubuntu 20.04 on local virtual machine When I use the command
solc-select install
orsolc-select install A_SOLC_VERSION(e.g, 0.4.25)
, I meet with the error as follows:But these two commands indeed works on the inspur linux server(Ubuntu18.04). And I notice that there has been several identical issues published.