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

مشکل در نصب در سیستم عامل debian #88

Open
whiteraven8 opened this issue Mar 8, 2024 · 7 comments
Open

مشکل در نصب در سیستم عامل debian #88

whiteraven8 opened this issue Mar 8, 2024 · 7 comments

Comments

@whiteraven8
Copy link

Processing ./namizun_core
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
error: Multiple top-level modules discovered in a flat-layout: ['log', 'database', 'ip', 'time', 'network', 'udp'].

  To avoid accidental inclusion of unwanted files or directories,
  setuptools will not proceed with this build.
  
  If you are trying to create a single distribution with multiple modules
  on purpose, you should not rely on automatic discovery.
  Instead, consider the following options:
  
  1. set up custom discovery (`find` directive with `include` or `exclude`)
  2. use a `src-layout`
  3. explicitly set `py_modules` or `packages` with a list of names
  
  To find more information, look for "package discovery" on setuptools docs.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

@The-Binary-0-1
Copy link

اینجا فورک زدم مشکلش رو حل کردم. از اینجا میتونی نصب کنی
https://github.com/The-Binary-0-1/namizun

@whiteraven8
Copy link
Author

whiteraven8 commented May 28, 2024 via email

@whiteraven8
Copy link
Author

whiteraven8 commented May 28, 2024 via email

@hatinati2
Copy link

اینجا فورک زدم مشکلش رو حل کردم. از اینجا میتونی نصب کنی
https://github.com/The-Binary-0-1/namizun

این اررور چیکارش کنم

Exception in thread Thread-2 (menu):
Traceback (most recent call last):
File "/var/www/namizun/venv/lib/python3.10/site-packages/redis/connection.py", line 611, in connect
sock = self.retry.call_with_retry(
File "/var/www/namizun/venv/lib/python3.10/site-packages/redis/retry.py", line 46, in call_with_retry
return do()
File "/var/www/namizun/venv/lib/python3.10/site-packages/redis/connection.py", line 612, in
lambda: self._connect(), lambda error: self.disconnect(error)
File "/var/www/namizun/venv/lib/python3.10/site-packages/redis/connection.py", line 645, in _connect
for res in socket.getaddrinfo(
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/usr/lib/python3.10/threading.py", line 953, in run
Exception in thread Thread-1 (system_usage):)
Traceback (most recent call last):enu/main_menu.py", line 18, in menu
File "/var/www/namizun/venv/lib/python3.10/site-packages/redis/connection.py", line 611, in connect
sock = self.retry.call_with_retry(database.py", line 83, in set_parameter
File "/var/www/namizun/venv/lib/python3.10/site-packages/redis/retry.py", line 46, in call_with_retry
return do()w/namizun/venv/lib/python3.10/site-packages/redis/commands/core.py", line 2220, in set
File "/var/www/namizun/venv/lib/python3.10/site-packages/redis/connection.py", line 612, in
lambda: self._connect(), lambda error: self.disconnect(error)client.py", line 1235, in execute_command
File "/var/www/namizun/venv/lib/python3.10/site-packages/redis/connection.py", line 645, in _connect
for res in socket.getaddrinfo(python3.10/site-packages/redis/connection.py", line 1387, in get_connection
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):.py", line 617, in connect
socket.gaierror: [Errno -2] Name or service not known
redis.exceptions.ConnectionError: Error -2 connecting to localhost:6379. Name or service not known.
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/usr/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/var/www/namizun/namizun_menu/monitor.py", line 59, in system_usage
old_bytes_sent, old_bytes_recv = network.get_network_io()
File "/var/www/namizun/namizun_core/network.py", line 18, in get_network_io
return io.bytes_sent + database.get_parameter('upload_amount_synchronizer')
File "/var/www/namizun/namizun_core/database.py", line 72, in get_parameter
data = my_db.get(prefix + key)
File "/var/www/namizun/venv/lib/python3.10/site-packages/redis/commands/core.py", line 1705, in get
return self.execute_command("GET", name)
File "/var/www/namizun/venv/lib/python3.10/site-packages/redis/client.py", line 1235, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)

@The-Binary-0-1
Copy link

اینجا فورک زدم مشکلش رو حل کردم. از اینجا میتونی نصب کنی
https://github.com/The-Binary-0-1/namizun

این اررور چیکارش کنم

Exception in thread Thread-2 (menu): Traceback (most recent call last): File "/var/www/namizun/venv/lib/python3.10/site-packages/redis/connection.py", line 611, in connect sock = self.retry.call_with_retry( File "/var/www/namizun/venv/lib/python3.10/site-packages/redis/retry.py", line 46, in call_with_retry return do() File "/var/www/namizun/venv/lib/python3.10/site-packages/redis/connection.py", line 612, in lambda: self._connect(), lambda error: self.disconnect(error) File "/var/www/namizun/venv/lib/python3.10/site-packages/redis/connection.py", line 645, in _connect for res in socket.getaddrinfo( File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/usr/lib/python3.10/threading.py", line 953, in run Exception in thread Thread-1 (system_usage):) Traceback (most recent call last):enu/main_menu.py", line 18, in menu File "/var/www/namizun/venv/lib/python3.10/site-packages/redis/connection.py", line 611, in connect sock = self.retry.call_with_retry(database.py", line 83, in set_parameter File "/var/www/namizun/venv/lib/python3.10/site-packages/redis/retry.py", line 46, in call_with_retry return do()w/namizun/venv/lib/python3.10/site-packages/redis/commands/core.py", line 2220, in set File "/var/www/namizun/venv/lib/python3.10/site-packages/redis/connection.py", line 612, in lambda: self._connect(), lambda error: self.disconnect(error)client.py", line 1235, in execute_command File "/var/www/namizun/venv/lib/python3.10/site-packages/redis/connection.py", line 645, in _connect for res in socket.getaddrinfo(python3.10/site-packages/redis/connection.py", line 1387, in get_connection File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags):.py", line 617, in connect socket.gaierror: [Errno -2] Name or service not known redis.exceptions.ConnectionError: Error -2 connecting to localhost:6379. Name or service not known. During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner self.run() File "/usr/lib/python3.10/threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "/var/www/namizun/namizun_menu/monitor.py", line 59, in system_usage old_bytes_sent, old_bytes_recv = network.get_network_io() File "/var/www/namizun/namizun_core/network.py", line 18, in get_network_io return io.bytes_sent + database.get_parameter('upload_amount_synchronizer') File "/var/www/namizun/namizun_core/database.py", line 72, in get_parameter data = my_db.get(prefix + key) File "/var/www/namizun/venv/lib/python3.10/site-packages/redis/commands/core.py", line 1705, in get return self.execute_command("GET", name) File "/var/www/namizun/venv/lib/python3.10/site-packages/redis/client.py", line 1235, in execute_command conn = self.connection or pool.get_connection(command_name, **options)

با این دستورات پاک کن اسکریپت رو. مراحل نصب دستی رو یکی یکی انجام بده. البته نصب رو از طریق لینکی که گذاشتم پیش ببر.
rm -r /var/www/namizun/
rm /etc/systemd/system/namizun.service
rm /usr/local/bin/namizun
sudo systemctl daemon-reload

@hatinati2
Copy link

با این دستورات پاک کن اسکریپت رو. مراحل نصب دستی رو یکی یکی انجام بده. البته نصب رو از طریق لینکی که گذاشتم پیش ببر.
rm -r /var/www/namizun/
rm /etc/systemd/system/namizun.service
rm /usr/local/bin/namizun
sudo systemctl daemon-reload

سلام مرسي ممنونم
تست مي كنم اطلاع مي دم

@hatinati2
Copy link

دوباره همين اررور زير مياد وقتي دستور namizun زده ميشه

Exception in thread Thread-2 (menu):
Traceback (most recent call last):
File "/var/www/namizun/venv/lib/python3.10/site-packages/redis/connection.py", line 611, in connect
sock = self.retry.call_with_retry(
File "/var/www/namizun/venv/lib/python3.10/site-packages/redis/retry.py", line 46, in call_with_retry
return do()
File "/var/www/namizun/venv/lib/python3.10/site-packages/redis/connection.py", line 612, in
lambda: self._connect(), lambda error: self.disconnect(error)
File "/var/www/namizun/venv/lib/python3.10/site-packages/redis/connection.py", line 645, in _connect
for res in socket.getaddrinfo(
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/usr/lib/python3.10/threading.py", line 953, in run
Exception in thread Thread-1 (system_usage):)
Traceback (most recent call last):enu/main_menu.py", line 18, in menu
File "/var/www/namizun/venv/lib/python3.10/site-packages/redis/connection.py", line 611, in connect
sock = self.retry.call_with_retry(database.py", line 83, in set_parameter
File "/var/www/namizun/venv/lib/python3.10/site-packages/redis/retry.py", line 46, in call_with_retry
return do()w/namizun/venv/lib/python3.10/site-packages/redis/commands/core.py", line 2220, in set
File "/var/www/namizun/venv/lib/python3.10/site-packages/redis/connection.py", line 612, in
lambda: self._connect(), lambda error: self.disconnect(error)client.py", line 1235, in execute_command
File "/var/www/namizun/venv/lib/python3.10/site-packages/redis/connection.py", line 645, in _connect
for res in socket.getaddrinfo(python3.10/site-packages/redis/connection.py", line 1387, in get_connection
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):.py", line 617, in connect
socket.gaierror: [Errno -2] Name or service not known
redis.exceptions.ConnectionError: Error -2 connecting to localhost:6379. Name or service not known.
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/usr/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File "/var/www/namizun/namizun_menu/monitor.py", line 59, in system_usage
old_bytes_sent, old_bytes_recv = network.get_network_io()
File "/var/www/namizun/namizun_core/network.py", line 18, in get_network_io
return io.bytes_sent + database.get_parameter('upload_amount_synchronizer')
File "/var/www/namizun/namizun_core/database.py", line 72, in get_parameter
data = my_db.get(prefix + key)
File "/var/www/namizun/venv/lib/python3.10/site-packages/redis/commands/core.py", line 1705, in get
return self.execute_command("GET", name)
File "/var/www/namizun/venv/lib/python3.10/site-packages/redis/client.py", line 1235, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)

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

3 participants