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

Fixtures gen fails on the local env #872

Closed
duker33 opened this issue Jun 10, 2019 · 0 comments · Fixed by #873
Closed

Fixtures gen fails on the local env #872

duker33 opened this issue Jun 10, 2019 · 0 comments · Fixed by #873
Assignees
Labels
1 hour typical issue size. It's one pdd hour 1 burning issue bug cleanup everything that do project stronger, flexible, reusable devops work with service options with code or with configs

Comments

@duker33
Copy link
Contributor

duker33 commented Jun 10, 2019

My local traceback after running make gen-fixtures

Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.6/site-packages/django/core/management/__init__.py", line 356, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 283, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.6/site-packages/django/core/management/base.py", line 330, in execute
    output = self.handle(*args, **options)
  File "/usr/app/src/shopelectro/management/commands/test_db.py", line 66, in handle
    self.create_products(deep_children, tags)
  File "/usr/app/src/shopelectro/management/commands/test_db.py", line 176, in create_products
    to_fill=categories[4:], tags_=zipped_tags[0], count=25)
  File "/usr/app/src/shopelectro/management/commands/test_db.py", line 172, in fill_with_products
    create_product(category, tags_, price_factor=i)
  File "/usr/app/src/shopelectro/management/commands/test_db.py", line 166, in create_product
    create_images(product.page)
  File "/usr/app/src/shopelectro/management/commands/test_db.py", line 145, in create_images
    create_image(file_path=self.FIRST_IMAGE, slug='deer')
  File "/usr/app/src/shopelectro/management/commands/test_db.py", line 143, in create_image
    shutil.copyfile(file_src.name, file_dst_path)
  File "/usr/local/lib/python3.6/shutil.py", line 121, in copyfile
    with open(dst, 'wb') as fdst:
IsADirectoryError: [Errno 21] Is a directory: '/usr/app/src/media/'
Makefile:32: ошибка выполнения рецепта для цели «gen-fixtures»
make: *** [gen-fixtures] Ошибка 1
@duker33 duker33 added bug 1 hour typical issue size. It's one pdd hour 1 burning issue cleanup everything that do project stronger, flexible, reusable devops work with service options with code or with configs labels Jun 10, 2019
@duker33 duker33 self-assigned this Jun 10, 2019
duker33 added a commit that referenced this issue Jun 10, 2019
duker33 added a commit that referenced this issue Jun 11, 2019
duker33 added a commit that referenced this issue Jun 11, 2019
* #872  Rm images copying logic

* #338  Create test for tags disjunction

* #872  Fix tags selenium tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 hour typical issue size. It's one pdd hour 1 burning issue bug cleanup everything that do project stronger, flexible, reusable devops work with service options with code or with configs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant