Building a debian package with Python 3.7 deps
See original GitHub issueDescribe the bug:
Hi! This is more a request to figure out what is the best procedure to build Hue from source, and then package it (in my case, in a deb package). From the documentation I see that make apps
is needed to populate the build
directory, and I though that the Debian package needed only to copy that directory on the target system, but then I realized that the procedure is more complex.
I also tried with PREFIX=/some/path PYTHON_VER=python3.7 make install
and ended up in:
File "/home/vagrant/hue-release-4.7.1/desktop/core/ext-py/MySQL-python-1.2.5/setup_posix.py", line 2, in <module>
from ConfigParser import SafeConfigParser
ModuleNotFoundError: No module named 'ConfigParser'
I checked the ext-py directories and some of them seem not ready for Python3, so I am wondering if I am doing the right steps.
If I follow https://github.com/cloudera/hue#building-from-source everything works fine (so the dev server comes up without any issue).
Steps to reproduce it?
Hue source version 4.7.1, then:
PYTHON_VER=python3.7 make apps
PYTHON_VER=python3.7 PREFIX=/some/local/path make install
Followed https://docs.gethue.com/administrator/installation/install/
Ideally what I want to achieve is something similar to the debian package that Cloudera releases with CDH, but built for python 3.7 and some other dependencies (like Mariadb dev instead of Mysql, etc…).
Any help would be really appreciated 😃
Issue Analytics
- State:
- Created 3 years ago
- Comments:28 (28 by maintainers)
Top GitHub Comments
@romainr thanks a lot for the suggestion, sorry for the lag I was afk 😃
Very interesting: I tried
PYTHONPATH=/usr/lib/hue/desktop/libs/:/usr/lib/hue/desktop/core/src/:/usr/lib/hue/build/env/lib/python3.7/site-packages/ /usr/lib/hue/build/env/bin/python3 /usr/lib/hue/build/env/bin/hue rungunicornserver
and it works fine, but the same PYTHONPATH with/usr/lib/hue/desktop/core/src/desktop/management/commands/rungunicornserver.py
leads to the Config error.Is there any special PYTHONPATH or anything else to pass to rungunicornserver.py to make it work properly?
Also this happens when I try to submit a hive query: