Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install module #1

Closed
AndreyMariyko opened this issue Jan 27, 2022 · 1 comment
Closed

install module #1

AndreyMariyko opened this issue Jan 27, 2022 · 1 comment

Comments

@AndreyMariyko
Copy link

Hello Marcus
I did steps:

python3 -m pip install cython
python3 -m pip install PyMySQL
python3 -m pip install peewee

and create db.py file with your code:

and coy code from this 
from wireguard_db.models.config import DBConfig
# now enshure you can write and read the config.yaml
# it will create a /etc/wireguard/wireguard.yaml file
if DBConfig().write():
    setup = DBConfig().read()
setup
# you should see a tuple containing the default setup for a sqlite3 connector
exit()

when I run the script I see next

Traceback (most recent call last):
File "db.py", line 1, in
from wireguard_db.models.config import DBConfig
ModuleNotFoundError: No module named 'wireguard_db'

i'll try install module from pip but this failed. also i cand fount setup.py in your repo

pip python -m pip install wireguard_db
ERROR: Could not find a version that satisfies the requirement wireguard_db (from versions: none)
ERROR: No matching distribution found for wireguard_db

could you help me install your module. I want to create DB (25k clients) and use module wireguard. https://github.com/fictivekin/wireguard

@AndreyMariyko
Copy link
Author

I try without enev and its works for me.
https://github.com/marneu/wireguardDB/blob/main/docs/README-DB.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant