rodrigo@enoch:~/code$ git clone g...@github.com:kakulukia/django-secrets.git
Clonar en «django-secrets»...
remote: Counting objects: 157, done.
remote: Compressing objects: 100% (58/58), done.
remote: Total 157 (delta 48), reused 66 (delta 30), pack-reused 67
Receiving objects: 100% (157/157), 34.45 KiB | 0 bytes/s, done.
Resolving deltas: 100% (74/74), done.
Comprobando la conectividad… hecho.
rodrigo@enoch:~/code$ cd django-
bash: cd: django-: No existe el archivo o el directorio
rodrigo@enoch:~/code$ cd django-secrets/
rodrigo@enoch:~/code/django-secrets$ ls
django_secrets  LICENSE  Makefile  manage.py  Pipfile  README.rst
setup.cfg  setup.py
rodrigo@enoch:~/code/django-secrets$ python3 -m venv .env
rodrigo@enoch:~/code/django-secrets$ source .env/bin/activate
(.env) rodrigo@enoch:~/code/django-secrets$ pip install --upgrade pip
Collecting pip
  Using cached pip-9.0.1-py2.py3-none-any.whl
Installing collected packages: pip
  Found existing installation: pip 8.1.1
    Uninstalling pip-8.1.1:
      Successfully uninstalled pip-8.1.1
Successfully installed pip-9.0.1
(.env) rodrigo@enoch:~/code/django-secrets$ cd django_secrets/
(.env) rodrigo@enoch:~/code/django-secrets/django_secrets$ ls
__init__.py  management  settings.py  startup.py  tests.py  urls.py
utils.py  wsgi.py
(.env) rodrigo@enoch:~/code/django-secrets/django_secrets$ cd ..
(.env) rodrigo@enoch:~/code/django-secrets$ python manage.py test
Traceback (most recent call last):
  File "manage.py", line 7, in <module>
    from django_secrets.startup import check
  File "/home/rodrigo/code/django-secrets/django_secrets/startup.py", line
4, in <module>
    from six.moves import input
ImportError: No module named 'six'
(.env) rodrigo@enoch:~/code/django-secrets$ pip install six
Collecting six
  Using cached six-1.11.0-py2.py3-none-any.whl
Installing collected packages: six
Successfully installed six-1.11.0
(.env) rodrigo@enoch:~/code/django-secrets$ python manage.py test

Secret definitions initialized under secrets/definitions.py
Add your secrets there and fill the values on the next use of a manage.py
command.



Secret missing, please fill in the blanks ..

SECRET_KEY: secret
Traceback (most recent call last):
  File "manage.py", line 12, in <module>
    from django.core.management import execute_from_command_line
ImportError: No module named 'django'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "manage.py", line 18, in <module>
    import django  # noqa
ImportError: No module named 'django'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "manage.py", line 21, in <module>
    "Couldn't import Django. Are you sure it's installed and "
ImportError: Couldn't import Django. Are you sure it's installed and
available on your PYTHONPATH environment variable? Did you forget to
activate a virtual environment?
(.env) rodrigo@enoch:~/code/django-secrets$ pip install django
Collecting django
  Downloading Django-2.0.2-py3-none-any.whl (7.1MB)
    100% |████████████████████████████████| 7.1MB 203kB/s
Collecting pytz (from django)
  Using cached pytz-2017.3-py2.py3-none-any.whl
Installing collected packages: pytz, django
Successfully installed django-2.0.2 pytz-2017.3
(.env) rodrigo@enoch:~/code/django-secrets$ python manage.py test
Creating test database for alias 'default'...
System check identified no issues (0 silenced).
.
Secret definitions initialized under secrets/definitions.py
Add your secrets there and fill the values on the next use of a manage.py
command.


got secret from environment variable (SECOND_SECRET)
E
Use these lines to initialize your secrets ..

export SECRET_KEY="secret"
E
======================================================================
ERROR: test_creating_secrets_folder (django_secrets.tests.SecretTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/rodrigo/code/django-secrets/django_secrets/tests.py", line
24, in test_creating_secrets_folder
    check()
  File "/home/rodrigo/code/django-secrets/django_secrets/startup.py", line
100, in check
    reload_module(secrets)
  File "/usr/lib/python3.5/importlib/__init__.py", line 166, in reload
    _bootstrap._exec(spec, module)
  File "<frozen importlib._bootstrap>", line 607, in _exec
AttributeError: 'NoneType' object has no attribute 'name'

======================================================================
ERROR: test_export (django_secrets.tests.SecretTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/rodrigo/code/django-secrets/django_secrets/tests.py", line
32, in test_export
    command.handle()
  File
"/home/rodrigo/code/django-secrets/django_secrets/management/commands/export_secrets.py",
line 15, in handle
    print('export %s="%s"' % (key, getattr(secrets, key)))
AttributeError: module 'secrets.secrets' has no attribute 'SECOND_SECRET'

----------------------------------------------------------------------
Ran 3 tests in 0.004s

FAILED (errors=2)
Destroying test database for alias 'default'...
(.env) rodrigo@enoch:~/code/django-secrets$


On Mon, Feb 5, 2018 at 12:37 PM, Andy <kakulu...@gmail.com> wrote:

> No, the actual problem is, that the secrets modules was not reloaded
> correctly and thus the tested SECOND_SECRET could not be found.
> BUT the question is, why this is happening, because testing the same thing
> locally (under the same python version failing at travis) works like it
> should.
>
> If you have some minutes to spare, please test it and tell me if you can
> reproduce the problem.
>
>
>
> Am Montag, 5. Februar 2018 16:30:21 UTC+1 schrieb Matemática A3K:
>>
>>
>>
>> On Mon, Feb 5, 2018 at 12:23 PM, Andy <kaku...@gmail.com> wrote:
>>
>>> Which line number are you referring to?
>>> i didnt notice missing  vars.
>>>
>>
>> got secret from environment variable (SECOND_SECRET)
>> E
>> Use these lines to initialize your secrets ..
>> export SECRET_KEY="travis"
>> E
>>
>> ...
>>
>> ======================================================================
>> ERROR: test_export (django_secrets.tests.SecretTest)
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>   File 
>> "/home/travis/build/kakulukia/django-secrets/django_secrets/tests.py", line 
>> 32, in test_export
>>     command.handle()
>>   File 
>> "/home/travis/build/kakulukia/django-secrets/django_secrets/management/commands/export_secrets.py",
>>  line 15, in handle
>>     print('export %s="%s"' % (key, getattr(secrets, key)))
>> AttributeError: 'module' object has no attribute 'SECOND_SECRET'
>>
>>
>>
>>
>>>
>>>
>>> Am Montag, 5. Februar 2018 15:50:14 UTC+1 schrieb Matemática A3K:
>>>>
>>>>
>>>>
>>>> On Thu, Feb 1, 2018 at 9:58 AM, Andy <kaku...@gmail.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> im trying to convince Travis to test my app:
>>>>> https://github.com/kakulukia/django-secrets
>>>>>
>>>>> But its failing for all python3 versions. Because my system python 3
>>>>> is 3.6.4 i just installed pyenv, created a 3.6.3 (latest python 3.6 at
>>>>> Travis) virtualenv and ran the tests. On my local system they are working,
>>>>> but travis reports problems and i dont really know how to fix them when 
>>>>> the
>>>>> tests are not failing locally.
>>>>>
>>>>> Does sombody have a clue, whats wrong here?
>>>>>
>>>>> Weird evough: now that i pushed a new commit (not relating python code
>>>>> though) two confgigurations do pass the tests:
>>>>> https://travis-ci.org/kakulukia/django-secrets/
>>>>>
>>>>
>>>> This is more like a Travis problem, according the log, the env vars are
>>>> not being picked by it:
>>>> https://travis-ci.org/kakulukia/django-secrets/jobs/336123060
>>>>
>>>>
>>>>
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "Django users" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to django-users...@googlegroups.com.
>>>>> To post to this group, send email to django...@googlegroups.com.
>>>>> Visit this group at https://groups.google.com/group/django-users.
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/django-users/01cb4387-5ad1
>>>>> -4d24-9ae4-42a2b83c7ab1%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/django-users/01cb4387-5ad1-4d24-9ae4-42a2b83c7ab1%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Django users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to django-users...@googlegroups.com.
>>> To post to this group, send email to django...@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/django-users/08261ca0-c0dd-4d70-9ce1-e8cb2e401059%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/08261ca0-c0dd-4d70-9ce1-e8cb2e401059%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/f71c985d-365b-46b5-858e-985025590124%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/f71c985d-365b-46b5-858e-985025590124%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2BFDnh%2BipK6OvH%3DFTgfLo8yndTMGP3YHktY%2Bu%2B2sbHemBSAR1g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to