Thursday 15 May 2014

windows 7 - TypeError when downloading rapidsms using pip in django-tables2 -


I am a total dragon newbie I installed Python 3.3.1 on a 32 bit Windows 7 Professional. I am trying to install Rapid SMS, and it should be as easy as "PIP Installed Rapids" and it starts the process, but it is not complete and I am leaving the error message below

I am trying to gurgle it, but I am not able to achieve this specific problem, due to this error, I find fixes for those who themselves Code is written, and I have not seen anyone mentioned this problem about rapids themselves because it stops in Django-tables, I wonder if I have messed up that establishment in some way or if Python There is a problem with version compatibility I have used POP while installing some other software, so I thinks is not a problem.

So if anyone has to face this error, install the pythton package or actually have any idea what the reason may be that I appreciate it! (I also plan to post it in the RapidsMS mailing list, when I get the approval, but wants to see if this was a common problem, which could fix it.)

 < Running setup.py egg_info for code> download / unpackingdeggango- table2 == 0.13.0 (from rapids) package django-tables2 traceback (most recent call final): File "& lt; string & gt; ", Line 16, & lt; Module & gt; The file "c: \ users \ mhealth1 \ appdata \ local \ temp \ pip-build-mhealth1 \ django-tables2 \ setup.py", line 7, & lt; Module & gt; Version = re.search ('__ version__ = "(. +?)"', F.read ()). Group (1) "C: \ Python33 \ lib \ re.py", line 161, search returned _compile (pattern, flags). Search (string) type error: string pattern can not be used on the bytes-object object Command python full output from setup.py egg_info: Traceback (most recent call final): File "& lt; string & gt;" , Line 16, & lt; Module & gt; The file "c: \ users \ mhealth1 \ appdata \ local \ temp \ pip-build-mhealth1 \ django-tables2 \ setup.py", line 7, & lt; Module & gt; Version = re.search ('__ version__ = "(. +?)"', F.read ()). Group (1) "C: \ Python33 \ lib \ re.py", line 161, search returned _compile (pattern, flags). Search (string) type error: string pattern can not be used on bytes-like object ------------------------- ----- ---------- Command dragon setup.py egg_info error code 1 went wrong: \ users \ mhealth1 \ a ppdata \ local \ temp \ pi-build-mhealth1 \ django-tables2c: \ user \ mhealth1 \ Pip \ pip.log    

fails to install the Dynamic-Tables2 in Python3 Because because of the following code, traceback from the 7 line of setup.py is:

  version = re.search ('___ version__ = "(. +?)" ', F.read ()). Group (1)   

This should be searched if the search pattern was a byte object. String with a pre-literally only byte is verbatim, as with the following:

  version = re.search (b '__ version__ = "(. +?)"', F.read ()) Group (1)   

This is the reason that Python is throwing a TypeError message with the message "Can not use string type on a byte-like object" Being taught in

I do not think that currently supports Papeth 3, which is based on the list of currently tested environments. It can be seen in the project's talk environment list seen here, in which only Python 2.6 and 2.7 are listed:

To solve the immediate problem, you want to install Rapid SMS in the virtual environment Documentation for Python 2.6 or 2.7 Rapid SMS briefly describes the virtual environment setup here:

You want to install Python 2.6 or 2.7 on your system and specify that Switch to the use of what Python Warchualanw, -P or --pthathan argument. The above is taken from the Rapid SMS docs written above, but it has been modified to use Python 2.7. 2.7:

  mkvirtualenv --distribute --no-site-packages rapidsms --python = python2.7    

No comments:

Post a Comment