You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PS C:\Users\samud\OneDrive\Desktop\project\my_blog> python manage.py seed post --number=50
{'verbosity': 1, 'settings': None, 'pythonpath': None, 'traceback': False, 'no_color': False, 'force_color': False, 'skip_checks': False, 'number': 50, 'seeder': None}
Traceback (most recent call last):
File "C:\Users\samud\AppData\Local\Programs\Python\Python313\Lib\site-packages\django\db\backends\postgresql\psycopg_any.py", line 5, in
from psycopg import ClientCursor, IsolationLevel, adapt, adapters, errors, sql
ModuleNotFoundError: No module named 'psycopg'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\samud\OneDrive\Desktop\project\my_blog\manage.py", line 22, in
main()
~~~~^^
File "C:\Users\samud\OneDrive\Desktop\project\my_blog\manage.py", line 18, in main
execute_from_command_line(sys.argv)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "C:\Users\samud\AppData\Local\Programs\Python\Python313\Lib\site-packages\django\core\management_init_.py", line 442, in execute_from_command_line
utility.execute()
~~~~~~~~~~~~~~~^^
File "C:\Users\samud\AppData\Local\Programs\Python\Python313\Lib\site-packages\django\core\management_init_.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
File "C:\Users\samud\AppData\Local\Programs\Python\Python313\Lib\site-packages\django\core\management\base.py", line 413, in run_from_argv
self.execute(*args, **cmd_options)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\samud\AppData\Local\Programs\Python\Python313\Lib\site-packages\django\core\management\base.py", line 459, in execute
output = self.handle(*args, **options)
File "C:\Users\samud\AppData\Local\Programs\Python\Python313\Lib\site-packages\django\core\management\base.py", line 646, in handle
app_output = self.handle_app_config(app_config, **options)
File "C:\Users\samud\AppData\Local\Programs\Python\Python313\Lib\site-packages\django_seed\management\commands\seed.py", line 48, in handle_app_config
seeder = Seed.seeder()
File "C:\Users\samud\AppData\Local\Programs\Python\Python313\Lib\site-packages\django_seed_init_.py", line 43, in seeder
from django_seed import seeder
File "C:\Users\samud\AppData\Local\Programs\Python\Python313\Lib\site-packages\django_seed\seeder.py", line 6, in
from django_seed.guessers import NameGuesser, FieldTypeGuesser
File "C:\Users\samud\AppData\Local\Programs\Python\Python313\Lib\site-packages\django_seed\guessers.py", line 5, in
from django.contrib.postgres.fields import ArrayField
File "C:\Users\samud\AppData\Local\Programs\Python\Python313\Lib\site-packages\django\contrib\postgres\fields_init_.py", line 1, in
from .array import * # NOQA
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\samud\AppData\Local\Programs\Python\Python313\Lib\site-packages\django\contrib\postgres\fields\array.py", line 4, in
from django.contrib.postgres.forms import SimpleArrayField
File "C:\Users\samud\AppData\Local\Programs\Python\Python313\Lib\site-packages\django\contrib\postgres\forms_init_.py", line 3, in
from .ranges import * # NOQA
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\samud\AppData\Local\Programs\Python\Python313\Lib\site-packages\django\contrib\postgres\forms\ranges.py", line 3, in
from django.db.backends.postgresql.psycopg_any import (
...<3 lines>...
)
File "C:\Users\samud\AppData\Local\Programs\Python\Python313\Lib\site-packages\django\db\backends\postgresql\psycopg_any.py", line 77, in
from psycopg2 import errors, extensions, sql # NOQA
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'psycopg2'
PS C:\Users\samud\OneDrive\Desktop\project\my_blog> pip install psycopg2-binary
Collecting psycopg2-binary
Using cached psycopg2-binary-2.9.10.tar.gz (385 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: psycopg2-binary
Building wheel for psycopg2-binary (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for psycopg2-binary (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [18 lines of output]
running bdist_wheel
running build
running build_py
creating build\lib.win-amd64-cpython-313\psycopg2
copying lib\errorcodes.py -> build\lib.win-amd64-cpython-313\psycopg2
copying lib\errors.py -> build\lib.win-amd64-cpython-313\psycopg2
copying lib\extensions.py -> build\lib.win-amd64-cpython-313\psycopg2
copying lib\extras.py -> build\lib.win-amd64-cpython-313\psycopg2
copying lib\pool.py -> build\lib.win-amd64-cpython-313\psycopg2
copying lib\sql.py -> build\lib.win-amd64-cpython-313\psycopg2
copying lib\tz.py -> build\lib.win-amd64-cpython-313\psycopg2
copying lib_ipaddress.py -> build\lib.win-amd64-cpython-313\psycopg2
copying lib_json.py -> build\lib.win-amd64-cpython-313\psycopg2
copying lib_range.py -> build\lib.win-amd64-cpython-313\psycopg2
copying lib_init_.py -> build\lib.win-amd64-cpython-313\psycopg2
running build_ext
building 'psycopg2._psycopg' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for psycopg2-binary
Failed to build psycopg2-binary
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (psycopg2-binary)
The text was updated successfully, but these errors were encountered:
PS C:\Users\samud\OneDrive\Desktop\project\my_blog> python manage.py seed post --number=50
{'verbosity': 1, 'settings': None, 'pythonpath': None, 'traceback': False, 'no_color': False, 'force_color': False, 'skip_checks': False, 'number': 50, 'seeder': None}
Traceback (most recent call last):
File "C:\Users\samud\AppData\Local\Programs\Python\Python313\Lib\site-packages\django\db\backends\postgresql\psycopg_any.py", line 5, in
from psycopg import ClientCursor, IsolationLevel, adapt, adapters, errors, sql
ModuleNotFoundError: No module named 'psycopg'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\samud\OneDrive\Desktop\project\my_blog\manage.py", line 22, in
main()
~~~~^^
File "C:\Users\samud\OneDrive\Desktop\project\my_blog\manage.py", line 18, in main
execute_from_command_line(sys.argv)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "C:\Users\samud\AppData\Local\Programs\Python\Python313\Lib\site-packages\django\core\management_init_.py", line 442, in execute_from_command_line
utility.execute()
~~~~~~~~~~~~~~~^^
File "C:\Users\samud\AppData\Local\Programs\Python\Python313\Lib\site-packages\django\core\management_init_.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
File "C:\Users\samud\AppData\Local\Programs\Python\Python313\Lib\site-packages\django\core\management\base.py", line 413, in run_from_argv
self.execute(*args, **cmd_options)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\samud\AppData\Local\Programs\Python\Python313\Lib\site-packages\django\core\management\base.py", line 459, in execute
output = self.handle(*args, **options)
File "C:\Users\samud\AppData\Local\Programs\Python\Python313\Lib\site-packages\django\core\management\base.py", line 646, in handle
app_output = self.handle_app_config(app_config, **options)
File "C:\Users\samud\AppData\Local\Programs\Python\Python313\Lib\site-packages\django_seed\management\commands\seed.py", line 48, in handle_app_config
seeder = Seed.seeder()
File "C:\Users\samud\AppData\Local\Programs\Python\Python313\Lib\site-packages\django_seed_init_.py", line 43, in seeder
from django_seed import seeder
File "C:\Users\samud\AppData\Local\Programs\Python\Python313\Lib\site-packages\django_seed\seeder.py", line 6, in
from django_seed.guessers import NameGuesser, FieldTypeGuesser
File "C:\Users\samud\AppData\Local\Programs\Python\Python313\Lib\site-packages\django_seed\guessers.py", line 5, in
from django.contrib.postgres.fields import ArrayField
File "C:\Users\samud\AppData\Local\Programs\Python\Python313\Lib\site-packages\django\contrib\postgres\fields_init_.py", line 1, in
from .array import * # NOQA
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\samud\AppData\Local\Programs\Python\Python313\Lib\site-packages\django\contrib\postgres\fields\array.py", line 4, in
from django.contrib.postgres.forms import SimpleArrayField
File "C:\Users\samud\AppData\Local\Programs\Python\Python313\Lib\site-packages\django\contrib\postgres\forms_init_.py", line 3, in
from .ranges import * # NOQA
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\samud\AppData\Local\Programs\Python\Python313\Lib\site-packages\django\contrib\postgres\forms\ranges.py", line 3, in
from django.db.backends.postgresql.psycopg_any import (
...<3 lines>...
)
File "C:\Users\samud\AppData\Local\Programs\Python\Python313\Lib\site-packages\django\db\backends\postgresql\psycopg_any.py", line 77, in
from psycopg2 import errors, extensions, sql # NOQA
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'psycopg2'
PS C:\Users\samud\OneDrive\Desktop\project\my_blog> pip install psycopg2-binary
Collecting psycopg2-binary
Using cached psycopg2-binary-2.9.10.tar.gz (385 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: psycopg2-binary
Building wheel for psycopg2-binary (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for psycopg2-binary (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [18 lines of output]
running bdist_wheel
running build
running build_py
creating build\lib.win-amd64-cpython-313\psycopg2
copying lib\errorcodes.py -> build\lib.win-amd64-cpython-313\psycopg2
copying lib\errors.py -> build\lib.win-amd64-cpython-313\psycopg2
copying lib\extensions.py -> build\lib.win-amd64-cpython-313\psycopg2
copying lib\extras.py -> build\lib.win-amd64-cpython-313\psycopg2
copying lib\pool.py -> build\lib.win-amd64-cpython-313\psycopg2
copying lib\sql.py -> build\lib.win-amd64-cpython-313\psycopg2
copying lib\tz.py -> build\lib.win-amd64-cpython-313\psycopg2
copying lib_ipaddress.py -> build\lib.win-amd64-cpython-313\psycopg2
copying lib_json.py -> build\lib.win-amd64-cpython-313\psycopg2
copying lib_range.py -> build\lib.win-amd64-cpython-313\psycopg2
copying lib_init_.py -> build\lib.win-amd64-cpython-313\psycopg2
running build_ext
building 'psycopg2._psycopg' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for psycopg2-binary
Failed to build psycopg2-binary
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (psycopg2-binary)
The text was updated successfully, but these errors were encountered: