Replies: 11 comments
-
Please link the instructions you are using. There seems to be something wrong. |
Beta Was this translation helpful? Give feedback.
-
I used this instruction but also other instructions fail: https://www.howtoforge.com/how-to-install-powerdns-on-ubuntu-22-04/ |
Beta Was this translation helpful? Give feedback.
-
Please use the official instructions: In 0.4.1 there is a dependency problem in some distributions. I was installing PDA today at Ubuntu 22.04 and ran into these problems. |
Beta Was this translation helpful? Give feedback.
-
Thanks for all the quick replies, I will try the official instructions and come back her with the results. |
Beta Was this translation helpful? Give feedback.
-
I met same error on CentOS7. I follow instruction wiki above. Have any one figure out method to fix, please share for me. |
Beta Was this translation helpful? Give feedback.
-
Ok I used the official wiki instuction to install PowerDNS-Admin on my favorite OS FreeBSD v13 "sudo pkg install git python3 curl node12 yarn-node12" result: Updating FreeBSD repository catalogue... So this instuction is also not valid, what do I do next? |
Beta Was this translation helpful? Give feedback.
-
@Pammetje i have no clue about FreeBSD but sounds like the howto was written for an older FreeBSD version. Please check if these packages are available with new versions, but i'm not sure if newer yarn versions are working. @sonnh-uit please post a full description of your problem with the steps you've done and the output of the errors. |
Beta Was this translation helpful? Give feedback.
-
There is a node-16, node-18 and a yarn-node16, yarn-node18 package on FreeBSD but not a node-12 and yarn-node12 package (probably end of life?). So wich version should I install, version 16 of version 18 ? The second line in the FreeBSD instuction also is not working: Updating FreeBSD repository catalogue... If I change that to: pkg install libxml2 libxslt pkgconf py39-xmlsec py39-cffi py39-ldap I can succesfully install the packages I can succesfully git clone/check out the source code When I try to make the virtual Python environment I run into the following error: root@powerdns:/opt/powerdns-admin # python3 -m venv /web/python --system-site-packages If I use: This line in the FreeBSD instuction:
I am stuck here (the above was with node and yarn version 18, I also get the same error with version 16) |
Beta Was this translation helpful? Give feedback.
-
I was seeing the same error as OP in Ubuntu 22.04 |
Beta Was this translation helpful? Give feedback.
-
I am on Ubuntu 22.04. I began with OP's problem using the same guide as OP. I changed to using https://github.com/PowerDNS-Admin/PowerDNS-Admin/blob/master/docs/wiki/install/Running-PowerDNS-Admin-on-Ubuntu-or-Debian.md when pointed to it by a comment above and ran into the error regarding wheel not building correctly. Following another comment, changing the version number of PyYAML to 6.0.1 in requirements.txt fixed that issue. I seem to be finished with the installation. |
Beta Was this translation helpful? Give feedback.
-
This is not a bug, but a deployment issue. While the documentation is almost certainly not up-to-date for FreeBSD deployments, the instructions for Debian / Ubuntu still seem pretty close if not usable as I have no issues running the project in my Ubuntu 22.04 environment. I'm converting this to a discussion. |
Beta Was this translation helpful? Give feedback.
-
PDA version
0.4.1
Python version
3.0
Steps to Reproduce
root@powerdns:/var/www/html/pdns# pip install -r requirements.txt
Usage: pip [options]
ERROR: Invalid requirement: --use-feature=no-binary-enable-wheel-cache lxml==4.9.0
pip: error: option --use-feature: invalid choice: 'no-binary-enable-wheel-cache' (choose from '2020-resolver', 'fast-deps', 'in-tree-build')
root@powerdns:/var/www/html/pdns# source ./flask/bin/activate
(flask) root@powerdns:/var/www/html/pdns# export FLASK_APP=powerdnsadmin/init.py
(flask) root@powerdns:/var/www/html/pdns# flask db upgrade
Error: While importing 'powerdnsadmin', an ImportError was raised:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/flask/cli.py", line 256, in locate_app
import(module_name)
File "/var/www/html/pdns/powerdnsadmin/init.py", line 4, in
from flask_mail import Mail
ModuleNotFoundError: No module named 'flask_mail'
Usage: flask [OPTIONS] COMMAND [ARGS]...
Try 'flask --help' for help.
Expected Behavior
Able to install PowerDNS Admin by following instuction/documentation
Observed Behavior
root@powerdns:/var/www/html/pdns# pip install -r requirements.txt
Usage: pip [options]
ERROR: Invalid requirement: --use-feature=no-binary-enable-wheel-cache lxml==4.9.0
pip: error: option --use-feature: invalid choice: 'no-binary-enable-wheel-cache' (choose from '2020-resolver', 'fast-deps', 'in-tree-build')
root@powerdns:/var/www/html/pdns# source ./flask/bin/activate
(flask) root@powerdns:/var/www/html/pdns# export FLASK_APP=powerdnsadmin/init.py
(flask) root@powerdns:/var/www/html/pdns# flask db upgrade
Error: While importing 'powerdnsadmin', an ImportError was raised:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/flask/cli.py", line 256, in locate_app
import(module_name)
File "/var/www/html/pdns/powerdnsadmin/init.py", line 4, in
from flask_mail import Mail
ModuleNotFoundError: No module named 'flask_mail'
Usage: flask [OPTIONS] COMMAND [ARGS]...
Try 'flask --help' for help.
Beta Was this translation helpful? Give feedback.
All reactions