This repository has been archived by the owner on Jul 19, 2024. It is now read-only.
[FEATURE] Exeperimental launch on python3.4 #64
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
List of some trouble on address-model=32 and fix for it:
pip install cython git+git://github.com/surfly/gevent.git#egg=gevent
sudo pip3.4 install cython git+git://github.com/abourget/gevent-socketio.git#egg=gevent-socketio
But import of modules not correct on Python 3.4
./counterblockd.py --help
Traceback (most recent call last):
File "./counterblockd.py", line 8, in
from gevent import monkey; monkey.patch_all()
File "/usr/lib/python3.4/site-packages/gevent-1.1-py3.4-linux-i686.egg/gevent/monkey.py", line 186, in patch_all
patch_thread(Event=Event)
File "/usr/lib/python3.4/site-packages/gevent-1.1-py3.4-linux-i686.egg/gevent/monkey.py", line 113, in patch_thread
patch_module('thread')
File "/usr/lib/python3.4/site-packages/gevent-1.1-py3.4-linux-i686.egg/gevent/monkey.py", line 69, in patch_module
gevent_module = getattr(import('gevent.' + name), name)
File "/usr/lib/python3.4/site-packages/gevent-1.1-py3.4-linux-i686.egg/gevent/thread.py", line 29, in
from gevent.lock import Semaphore as LockType
File "/usr/lib/python3.4/site-packages/gevent-1.1-py3.4-linux-i686.egg/gevent/lock.py", line 4, in
from gevent._semaphore import Semaphore
File "_semaphore.pyx", line 1, in init gevent._semaphore (gevent/gevent._semaphore.c:3142)
ValueError: level must be >= 0
Need in file (gevent/gevent._semaphore.c:3142) that generate by cython change -1 to 0 in line 3142. Because the modules are imported incorrectly in Python 3.4
In file included from gevent/gevent.core.c:237:0:
gevent/libev.h: In function ‘gevent_ev_default_loop’:
gevent/libev.h:22:5: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
cc1: some warnings being treated as errors
SyntaxError: invalid syntax
http://stackoverflow.com/questions/20139382/mimetools-message-to-python-3-email-message-message
/counterblockd.py --help
Traceback (most recent call last):
File "./counterblockd.py", line 7, in
import gevent
File "/usr/lib/python3.4/site-packages/gevent-1.1-py3.4-linux-i686.egg/gevent/init.py",
line 35, in
from gevent.hub import get_hub, iwait, wait, PYPY
File "/usr/lib/python3.4/site-packages/gevent-1.1-py3.4-linux-i686.egg/gevent/hub.py",
line 8, in
import greenlet # http://pypi.python.org/pypi/greenlet/
File "/usr/lib/python3.4/site-packages/greenlet-0.4.4-py3.4-linux-i686.egg/greenlet.py",
line 7, in
bootstrap()
File "/usr/lib/python3.4/site-packages/greenlet-0.4.4-py3.4-linux-i686.egg/greenlet.py",
line 6, in bootstrap
imp.load_dynamic(name,file)
ImportError: /usr/lib/python3.4/site-packages/greenlet-0.4.4-py3.4-linux-i686.egg/greenlet.cpython-34dm.so:
undefined symbol: _Py_RefTotal
boost_1_56_0.tar.bz2 - Standard build system (bjam) is not good:
http://stackoverflow.com/questions/7195959/hello-world-with-boost-python-and-python-3-2
http://stackoverflow.com/questions/25188861/libboost-python3-so-1-56-0-undefined-symbol-pyclass-type
http://w3facility.info/question/hello-world-with-boost-python-and-python-3-2/
http://stackoverflow.com/questions/19865757/importerror-usr-lib-libboost-python-so-1-54-0-undefined-symbol-pyclass-type
http://comments.gmane.org/gmane.linux.arch.general/32474
==================== How to compile Python and boost ======
========================================= or ====
=============================== For package Python 3.4 need extra settings
ln -s /usr/lib/libpython3.4m.so.1.0 /usr/lib/libpython3.4
include <python3.4/config.h>
nano +50,35 ../../../../boost/python/detail/wrap_python.hpp
https://github.com/TooTallNate/node-dlopen/blob/master/src/binding.cc
https://svn.boost.org/trac/boost/query?status=!closed&page=14&desc=1&order=summary&row=description
In setup.py
python-greenlet/greenlet#62
But most of problem inside:
In my opinion, these packages are not safe under python 3.4.
Many tests do not pass, within the code is very confused.