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

Installation issues | WSL | Python | Docker-compose #1463

Open
1 task done
shubhamvpandey opened this issue Nov 16, 2024 · 1 comment
Open
1 task done

Installation issues | WSL | Python | Docker-compose #1463

shubhamvpandey opened this issue Nov 16, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@shubhamvpandey
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

error while installing

Expected Behavior

reNgine is installed!!!

#########################################################################
Creating an account
#########################################################################
Using: docker compose
COMPOSE_DOCKER_CLI_BUILD=1 docker compose -f docker-compose.yml exec web python3 manage.py createsuperuser
_ _ _
| \ | | ()
_ __ | | | __ _ _ _ __ ___
| '
/ _ \ . |/ _ | | '
\ / _
| | | __/ |\ | (
| | | | | | /
|_| _
|| _|_, ||| |_|__|
/ |
|
/

pikepdf._core | pikepdf C++ to Python logger bridge initialized
Traceback (most recent call last):
File "/usr/src/app/manage.py", line 26, in
main()
File "/usr/src/app/manage.py", line 22, in main
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.10/dist-packages/django/core/management/init.py", line 419, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.10/dist-packages/django/core/management/init.py", line 413, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.10/dist-packages/django/core/management/base.py", line 354, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.10/dist-packages/django/contrib/auth/management/commands/createsuperuser.py", line 79, in execute
return super().execute(*args, **options)
File "/usr/local/lib/python3.10/dist-packages/django/core/management/base.py", line 393, in execute
self.check()
File "/usr/local/lib/python3.10/dist-packages/django/core/management/base.py", line 419, in check
all_issues = checks.run_checks(
File "/usr/local/lib/python3.10/dist-packages/django/core/checks/registry.py", line 76, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
File "/usr/local/lib/python3.10/dist-packages/django/core/checks/urls.py", line 13, in check_url_config
return check_resolver(resolver)
File "/usr/local/lib/python3.10/dist-packages/django/core/checks/urls.py", line 23, in check_resolver
return check_method()
File "/usr/local/lib/python3.10/dist-packages/django/urls/resolvers.py", line 416, in check
for pattern in self.url_patterns:
File "/usr/local/lib/python3.10/dist-packages/django/utils/functional.py", line 48, in get
res = instance.dict[self.name] = self.func(instance)
File "/usr/local/lib/python3.10/dist-packages/django/urls/resolvers.py", line 602, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/usr/local/lib/python3.10/dist-packages/django/utils/functional.py", line 48, in get
res = instance.dict[self.name] = self.func(instance)
File "/usr/local/lib/python3.10/dist-packages/django/urls/resolvers.py", line 595, in urlconf_module
return import_module(self.urlconf_name)
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/usr/src/app/reNgine/urls.py", line 41, in
include('startScan.urls')),
File "/usr/local/lib/python3.10/dist-packages/django/urls/conf.py", line 34, in include
urlconf_module = import_module(urlconf_module)
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in find_and_load_unlocked
File "", line 688, in load_unlocked
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "/usr/src/app/startScan/urls.py", line 2, in
from . import views
File "/usr/src/app/startScan/views.py", line 18, in
from reNgine.charts import *
File "/usr/src/app/reNgine/charts.py", line 5, in
from plotly.io import to_image
File "", line 1075, in handle_fromlist
File "/usr/local/lib/python3.10/dist-packages/plotly_utils/importers.py", line 36, in getattr
class_module = importlib.import_module(rel_module, parent_name)
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return bootstrap.gcd_import(name[level:], package, level)
File "/usr/local/lib/python3.10/dist-packages/plotly/io/kaleido.py", line 10, in
scope = PlotlyScope()
File "/usr/local/lib/python3.10/dist-packages/kaleido/scopes/plotly.py", line 64, in init
elif "snap" in path:
TypeError: argument of type 'NoneType' is not iterable
make: *** [Makefile:36: username] Error 1
Using: docker compose
COMPOSE_DOCKER_CLI_BUILD=1 docker compose -f docker-compose.yml exec web python3 manage.py migrate
_ _ _
| \ | | (
)
_ __ | | | __ _ _ _ __ ___
| '
/ _ \ . |/ _ | | '
\ / _
| | | __/ |\ | (
| | | | | | __/
|
| ___|
| _|_
, ||| ||__|
/ |
|
/

pikepdf._core | pikepdf C++ to Python logger bridge initialized
Traceback (most recent call last):
File "/usr/src/app/manage.py", line 26, in
main()
File "/usr/src/app/manage.py", line 22, in main
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.10/dist-packages/django/core/management/init.py", line 419, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.10/dist-packages/django/core/management/init.py", line 413, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.10/dist-packages/django/core/management/base.py", line 354, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.10/dist-packages/django/core/management/base.py", line 398, in execute
output = self.handle(*args, **options)
File "/usr/local/lib/python3.10/dist-packages/django/core/management/base.py", line 89, in wrapped
res = handle_func(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/django/core/management/commands/migrate.py", line 75, in handle
self.check(databases=[database])
File "/usr/local/lib/python3.10/dist-packages/django/core/management/base.py", line 419, in check
all_issues = checks.run_checks(
File "/usr/local/lib/python3.10/dist-packages/django/core/checks/registry.py", line 76, in run_checks
new_errors = check(app_configs=app_configs, databases=databases)
File "/usr/local/lib/python3.10/dist-packages/django/core/checks/urls.py", line 13, in check_url_config
return check_resolver(resolver)
File "/usr/local/lib/python3.10/dist-packages/django/core/checks/urls.py", line 23, in check_resolver
return check_method()
File "/usr/local/lib/python3.10/dist-packages/django/urls/resolvers.py", line 416, in check
for pattern in self.url_patterns:
File "/usr/local/lib/python3.10/dist-packages/django/utils/functional.py", line 48, in get
res = instance.dict[self.name] = self.func(instance)
File "/usr/local/lib/python3.10/dist-packages/django/urls/resolvers.py", line 602, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/usr/local/lib/python3.10/dist-packages/django/utils/functional.py", line 48, in get
res = instance.dict[self.name] = self.func(instance)
File "/usr/local/lib/python3.10/dist-packages/django/urls/resolvers.py", line 595, in urlconf_module
return import_module(self.urlconf_name)
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/usr/src/app/reNgine/urls.py", line 41, in
include('startScan.urls')),
File "/usr/local/lib/python3.10/dist-packages/django/urls/conf.py", line 34, in include
urlconf_module = import_module(urlconf_module)
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/usr/src/app/startScan/urls.py", line 2, in
from . import views
File "/usr/src/app/startScan/views.py", line 18, in
from reNgine.charts import *
File "/usr/src/app/reNgine/charts.py", line 5, in
from plotly.io import to_image
File "", line 1075, in _handle_fromlist
File "/usr/local/lib/python3.10/dist-packages/_plotly_utils/importers.py", line 36, in getattr
class_module = importlib.import_module(rel_module, parent_name)
File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/usr/local/lib/python3.10/dist-packages/plotly/io/_kaleido.py", line 10, in
scope = PlotlyScope()
File "/usr/local/lib/python3.10/dist-packages/kaleido/scopes/plotly.py", line 64, in init
elif "snap" in path:
TypeError: argument of type 'NoneType' is not iterable
make: *** [Makefile:43: migrate] Error 1

Thank you for installing reNgine, happy recon!!
In case you have unapplied migrations (see above in red), run 'make migrate'

Steps To Reproduce

run ./install file

Environment

- reNgine: 2.2.0
environment - Window - WSL
Docker Compose version v2.30.2
Python 3.12.7
- Browser: IE
No LSB modules are available.
Distributor ID: Kali
Description:    Kali GNU/Linux Rolling
Release:        2024.3
Codename:       kali-rolling

Anything else?

No response

@shubhamvpandey shubhamvpandey added the bug Something isn't working label Nov 16, 2024
Copy link
Contributor

Hey @shubhamvpandey! 👋 Thanks for flagging this bug! 🐛🔍

You're our superhero bug hunter! 🦸‍♂️🦸‍♀️ Before we suit up to squash this bug, could you please:

📚 Double-check our documentation: https://rengine.wiki
🕵️ Make sure it's not a known issue
📝 Provide all the juicy details about this sneaky bug

Once again - thanks for your vigilance! 🛠️🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant