Not compatible with python 3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oursql |
New
|
Undecided
|
Unassigned |
Bug Description
python3 setup.py build
File "setup.py", line 53
print "cython not found, using previously-cython'd .c file."
SyntaxError: invalid syntax
2to3 -w .
python3 setup.py build
Traceback (most recent call last):
File "setup.py", line 234, in <module>
cmdclass=
File "/usr/local/
dist.
File "/usr/local/
self.
File "/usr/local/
cmd_obj.run()
File "/usr/local/
self.
File "/usr/local/
self.
File "/usr/local/
cmd_obj.run()
File "/usr/local/
self.
File "/usr/local/
self.
File "setup.py", line 150, in build_extension
build_
File "/usr/local/
extra_args = ext.extra_
File "setup.py", line 29, in _get_extra_
self.
File "setup.py", line 100, in <lambda>
lambda: self.get_
File "setup.py", line 96, in get_mysql_config
return split_quoted(
File "/usr/local/
m = _wordchars_
TypeError: can't use a string pattern on a bytes-like object
Don't use 2to3, use the branch with the python3 code.
This is a cython project, not compatible with the transition tools.
On Wed, Aug 22, 2012 at 3:38 PM, Paul Tremblay <email address hidden> wrote: oursql_ commands, lib/python3. 2/distutils/ core.py" , line 148, in setup lib/python3. 2/distutils/ dist.py" , line 917, in run_commands command( cmd) lib/python3. 2/distutils/ dist.py" , line 936, in run_command lib/python3. 2/distutils/ command/ build.py" , line 126, in run command( cmd_name) lib/python3. 2/distutils/ cmd.py" , line 313, in run_command on.run_ command( command) lib/python3. 2/distutils/ dist.py" , line 936, in run_command lib/python3. 2/distutils/ command/ build_ext. py", line 345, in run extensions( ) lib/python3. 2/distutils/ command/ build_ext. py", line 454, in build_extensions extension( ext) build_extension (self, ext) lib/python3. 2/distutils/ command/ build_ext. py", line 497, in build_extension compile_ args or [] compile_ args compile_ args = self.get_ mysql_compile_ args() mysql_config( 'cflags' )) stdout. strip() ) lib/python3. 2/distutils/ util.py" , line 337, in split_quoted re.match( s, pos) /bugs.launchpad .net/bugs/ 1040093 /bugs.launchpad .net/oursql/ +bug/1040093/ +subscriptions
> Public bug reported:
>
> python3 setup.py build
>
> File "setup.py", line 53
> print "cython not found, using previously-cython'd .c file."
> ^
> SyntaxError: invalid syntax
>
> 2to3 -w .
>
> python3 setup.py build
>
> Traceback (most recent call last):
> File "setup.py", line 234, in <module>
> cmdclass=
> File "/usr/local/
> dist.run_commands()
> File "/usr/local/
> self.run_
> File "/usr/local/
> cmd_obj.run()
> File "/usr/local/
> self.run_
> File "/usr/local/
> self.distributi
> File "/usr/local/
> cmd_obj.run()
> File "/usr/local/
> self.build_
> File "/usr/local/
> self.build_
> File "setup.py", line 150, in build_extension
> build_ext.
> File "/usr/local/
> extra_args = ext.extra_
> File "setup.py", line 29, in _get_extra_
> self._mysql_
> File "setup.py", line 100, in <lambda>
> lambda: self.get_
> File "setup.py", line 96, in get_mysql_config
> return split_quoted(
> File "/usr/local/
> m = _wordchars_
> TypeError: can't use a string pattern on a bytes-like object
>
> ** Affects: oursql
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are subscribed to oursql.
> https:/
>
> Title:
> Not compatible with python 3
>
> To manage notifications about this bug go to:
> https:/