Sign Up

Sign In

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Sorry, you do not have a permission to ask a question, You must login to ask question.

Discy Latest Questions

  • 9
  • 9

I encountered a problem when I try to download a certain package: C:\Python27\Scripts>pip install pycrypto Collecting pycrypto Using cached https://files.pythonhosted.org/packages/60/db/645aa9af249f059cc3a368b118de33889219e0362141e75d4eaf6f80f163/pycrypto-2.6.1.tar.gz Installing collected packages: pycrypto Running setup.py install for pycrypto ... error Complete output from command c:\python27\python.exe -u -c ...

  • 7
  • 7

I’m trying to import a utilities file but running into a weird error only when I run the code through a script. When I run test.py location: /home/amourav/Python/proj/test.py code: import os os.chdir(r'/home/amourav/Python/') print os.listdir(os.getcwd()) print os.getcwd() from UTILS import * The output is: [‘UTILS_local.py’,’UTILS.py’, ‘proj’, ‘UTILS.pyc’] /home/amourav/Python Traceback ...

  • 9
  • 9

Notes: versions Python 2.7.11 and my requests version is '2.10.0' 'OpenSSL 1.0.2d 9 Jul 2015' Please read the below comment by Martijn Pieters before reproducing Initially I tried to get pdf from https://www.neco.navy.mil/necoattach/N6945016R0626_2016-06-20__INFO_NAS_Pensacola_Base_Access.docx using code as below code1: >>> import requests >>> requests.get("https://www.neco.navy.mil/necoattach/N6945016R0626_2016-06-20__INFO_NAS_Pensacola_Base_Access.docx",verify=False) Error: Traceback (most recent ...

close