Giter Club home page Giter Club logo

Comments (27)

untitaker avatar untitaker commented on July 26, 2024 1

I pushed something to master that should fix the flake8 part at least. Could you try that (git pull)?

from todoman.

untitaker avatar untitaker commented on July 26, 2024 1

If you pip install requests under Python 3 and run python -c "__import__('requests').get('https://pypi.python.org')", does this cause any errors?

from todoman.

WhyNotHugo avatar WhyNotHugo commented on July 26, 2024

Hi! Can you please provide the output of python --version? I suspect you're using python2; todoman only support python3 (note that both can be installed at the same time).

from todoman.

mansimarkaur avatar mansimarkaur commented on July 26, 2024

Yes, python --version returned Python 2.7.13
I installed python 3 and am now using a virtualenv.
I get these errors:

SKIPPED:  py33: InterpreterNotFound: python3.3
SKIPPED:  py34: InterpreterNotFound: python3.4
SKIPPED:  py35: InterpreterNotFound: python3.5
ERROR:   py36: InvocationError: /Users/mkaur/Sites/todoman/.tox/py36/bin/pip install /Users/mkaur/Sites/todoman/.tox/dist/todoman-2.1.0.post13+ng96016ff.d20170223.zip (see /Users/mkaur/Sites/todoman/.tox/py36/log/py36-2.log)
ERROR:   flake8: commands failed
  docs: commands succeeded
(env_name) mkaur-30825:todoman mkaur$ python --version
Python 3.6.0

from todoman.

untitaker avatar untitaker commented on July 26, 2024

Hmm.

  • tox -epy36 should run the tests
  • tox -eflake8 should run flake8

The output isn't very informative of flake8, but there's talk of a logfile called Users/mkaur/Sites/todoman/.tox/py36/log/py36-2.log. Could you post that file?

from todoman.

mansimarkaur avatar mansimarkaur commented on July 26, 2024

Users/mkaur/Sites/todoman/.tox/py36/log/py36-2.log:

actionid: py36
msg: installpkg
cmdargs: ['/Users/mkaur/Sites/todoman/.tox/py36/bin/pip', 'install', '/Users/mkaur/Sites/todoman/.tox/dist/todoman-2.1.0.post13+ng96016ff.d20170223.zip']
env: {'LC_CTYPE': 'UTF-8', 'TERM_PROGRAM_VERSION': '361.1', 'LOGNAME': 'mkaur', 'USER': 'mkaur', 'PATH': '/Users/mkaur/Sites/todoman/.tox/py36/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin/env_name/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Users/mkaur/.rbenv/shims:/Users/mkaur/.rbenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin', 'HOME': '/Users/mkaur', 'PS1': '(env_name) \\h:\\W \\u\\$ ', 'TERM_PROGRAM': 'Apple_Terminal', 'LANG': 'en_US.UTF-8', 'TERM': 'xterm-256color', 'Apple_PubSub_Socket_Render': '/private/tmp/com.apple.launchd.4vaaXg3BoA/Render', 'SHLVL': '1', 'XPC_FLAGS': '0x0', 'RBENV_SHELL': 'bash', 'PYTHONHASHSEED': '2388422466', '_': '/usr/local/bin/tox', 'TERM_SESSION_ID': '123E97E0-2737-4586-80F4-94FE37C0E6B5', 'XPC_SERVICE_NAME': '0', 'PYTHONPATH': '/Users/mkaur/Sites/todoman', 'SSH_AUTH_SOCK': '/private/tmp/com.apple.launchd.IkckKUmxeV/Listeners', 'VIRTUAL_ENV': '/Users/mkaur/Sites/todoman/.tox/py36', 'SHELL': '/bin/bash', 'LC_ALL': 'en_US.UTF-8', 'TMPDIR': '/var/folders/3j/xz5kwgvx297_45dgm2bgpr0h0000gn/T/', 'OLDPWD': '/Users/mkaur', '__CF_USER_TEXT_ENCODING': '0x1F5:0:0', 'PWD': '/Users/mkaur/sites/todoman'}

Processing ./.tox/dist/todoman-2.1.0.post13+ng96016ff.d20170223.zip
    Complete output from command python setup.py egg_info:
    Download error on https://pypi.python.org/simple/pytest-runner/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749) -- Some packages may not be found!
    Couldn't find index page for 'pytest-runner' (maybe misspelled?)
    Download error on https://pypi.python.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749) -- Some packages may not be found!
    No local packages or working download links found for pytest-runner
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/3j/xz5kwgvx297_45dgm2bgpr0h0000gn/T/pip-cc62cbhs-build/setup.py", line 41, in <module>
        'Topic :: Utilities',
      File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/core.py", line 108, in setup
        _setup_distribution = dist = klass(attrs)
      File "/Users/mkaur/Sites/todoman/.tox/py36/lib/python3.6/site-packages/setuptools/dist.py", line 317, in __init__
        self.fetch_build_eggs(attrs['setup_requires'])
      File "/Users/mkaur/Sites/todoman/.tox/py36/lib/python3.6/site-packages/setuptools/dist.py", line 372, in fetch_build_eggs
        replace_conflicting=True,
      File "/Users/mkaur/Sites/todoman/.tox/py36/lib/python3.6/site-packages/pkg_resources/__init__.py", line 851, in resolve
        dist = best[req.key] = env.best_match(req, ws, installer)
      File "/Users/mkaur/Sites/todoman/.tox/py36/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1123, in best_match
        return self.obtain(req, installer)
      File "/Users/mkaur/Sites/todoman/.tox/py36/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1135, in obtain
        return installer(requirement)
      File "/Users/mkaur/Sites/todoman/.tox/py36/lib/python3.6/site-packages/setuptools/dist.py", line 440, in fetch_build_egg
        return cmd.easy_install(req)
      File "/Users/mkaur/Sites/todoman/.tox/py36/lib/python3.6/site-packages/setuptools/command/easy_install.py", line 668, in easy_install
        raise DistutilsError(msg)
    distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pytest-runner')
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/3j/xz5kwgvx297_45dgm2bgpr0h0000gn/T/pip-cc62cbhs-build/

from todoman.

mansimarkaur avatar mansimarkaur commented on July 26, 2024

I pip installed pytest-runner
Now, the log file is as follows:

actionid: py36
msg: envreport
cmdargs: ['/Users/mkaur/Sites/todoman/.tox/py36/bin/pip', 'freeze']
env: {'LC_CTYPE': 'UTF-8', 'TERM_PROGRAM_VERSION': '361.1', 'LOGNAME': 'mkaur', 'USER': 'mkaur', 'PATH': '/Users/mkaur/Sites/todoman/.tox/py36/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin/env_name/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Users/mkaur/.rbenv/shims:/Users/mkaur/.rbenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin', 'HOME': '/Users/mkaur', 'PS1': '(env_name) \\h:\\W \\u\\$ ', 'TERM_PROGRAM': 'Apple_Terminal', 'LANG': 'en_US.UTF-8', 'TERM': 'xterm-256color', 'Apple_PubSub_Socket_Render': '/private/tmp/com.apple.launchd.4vaaXg3BoA/Render', 'SHLVL': '1', 'XPC_FLAGS': '0x0', 'RBENV_SHELL': 'bash', 'PYTHONHASHSEED': '1278482248', '_': '/usr/local/bin/tox', 'TERM_SESSION_ID': '123E97E0-2737-4586-80F4-94FE37C0E6B5', 'XPC_SERVICE_NAME': '0', 'PYTHONPATH': '/Users/mkaur/Sites/todoman', 'SSH_AUTH_SOCK': '/private/tmp/com.apple.launchd.IkckKUmxeV/Listeners', 'VIRTUAL_ENV': '/Users/mkaur/Sites/todoman/.tox/py36', 'SHELL': '/bin/bash', 'LC_ALL': 'en_US.UTF-8', 'TMPDIR': '/var/folders/3j/xz5kwgvx297_45dgm2bgpr0h0000gn/T/', 'OLDPWD': '/Users/mkaur', '__CF_USER_TEXT_ENCODING': '0x1F5:0:0', 'PWD': '/Users/mkaur/sites/todoman'}

appdirs==1.4.0
atomicwrites==1.1.5
click==6.7
click-log==0.1.8
configobj==5.0.6
coverage==4.3.4
flake8==3.3.0
flake8-import-order==0.12
freezegun==0.3.8
future==0.16.0
hypothesis==3.6.1
icalendar==3.11.3
mccabe==0.6.1
packaging==16.8
parsedatetime==2.2
py==1.4.32
pycodestyle==2.3.1
pyflakes==1.5.0
pyparsing==2.1.10
pytest==3.0.6
pytest-cov==2.4.0
python-dateutil==2.6.0
pytz==2016.10
pyxdg==0.25
six==1.10.0
todoman==2.1.0.post13+ng96016ff.d20170223
urwid==1.3.1

from todoman.

untitaker avatar untitaker commented on July 26, 2024

ok that's a job for @hobarrera, I've no idea about pytest-runner.

To be clear, the tests and flake8 still fail?

from todoman.

mansimarkaur avatar mansimarkaur commented on July 26, 2024

Yes, the flake8 tests fail because of a syntax error on https://github.com/pimutils/todoman/blob/master/todoman/model.py#L476
The py36 tests are giving an InvocationError because apparently easy_install is unable to find a suitable distribution for pytest-runner.

from todoman.

mansimarkaur avatar mansimarkaur commented on July 26, 2024

It fixed the flake8 part and tests are passing for it.
Thanks :)

from todoman.

untitaker avatar untitaker commented on July 26, 2024

Great, then I suppose we can close this? :)

from todoman.

mansimarkaur avatar mansimarkaur commented on July 26, 2024

Yes, I think this can be closed. Thanks for your help.
@hobarrera Could you please help me with the pytest-runner issue on my system?

from todoman.

untitaker avatar untitaker commented on July 26, 2024

I'm confused, so tox -epy36 still fails, only flake8 works now?

from todoman.

mansimarkaur avatar mansimarkaur commented on July 26, 2024

Yes, tox -epy36 still fails because pytest-runner is not being installed by easy-install.
I think this could be a problem on my system only but I'm not sure.

from todoman.

untitaker avatar untitaker commented on July 26, 2024

Oh boy, oh boy:

Download error on https://pypi.python.org/simple/pytest-runner/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749) -- Some packages may not be found!

Hmm. Are you able to open https://pypi.python.org/ in your browser?

from todoman.

mansimarkaur avatar mansimarkaur commented on July 26, 2024

Yes, I'm able to open https://pypi.python.org/ in my browser.

from todoman.

untitaker avatar untitaker commented on July 26, 2024

How did you install Python 3? I recommend Homebrew for installing it and keeping it up-to-date (you seem to be using OS X).

from todoman.

mansimarkaur avatar mansimarkaur commented on July 26, 2024

I downloaded the python-3.6.0 package from the python website.
I then setup a virtualenv because I use python2 for other projects following the section for Python 3 in this link: http://joebergantine.com/blog/2015/apr/30/installing-python-2-and-python-3-alongside-each-ot/
I use OSX. Doing a brew install python3 gives a Warning: python3-3.6.0 already installed now.

from todoman.

mansimarkaur avatar mansimarkaur commented on July 26, 2024

I pip installed requests and ran the command that you asked me to, it does not cause any errors.
I tried the same thing with pytest-runner just now (python -c "__import__('pytest-runner').get('https://pypi.python.org')") but it gave ModuleNotFoundError: No module named 'pytest-runner'

from todoman.

untitaker avatar untitaker commented on July 26, 2024

Interesting, I suppose pip install -U pip could solve all of this.

from todoman.

mansimarkaur avatar mansimarkaur commented on July 26, 2024

Running pip install -U pip gives Requirement already up-to-date: pip in ./todoman/lib/python3.6/site-packages
Running the tests after this, shows no changes in the errors that come up :(

from todoman.

untitaker avatar untitaker commented on July 26, 2024

Ok, that's weird.

In any case I'd recommend trying installation of Python 3 through homebrew.

from todoman.

mansimarkaur avatar mansimarkaur commented on July 26, 2024

I tried installing python3 through homebrew but it didn't help with the pytest-runner issue.

from todoman.

untitaker avatar untitaker commented on July 26, 2024

I wonder you have Antivirus installed?

Otherwise I am running out of ideas :(

from todoman.

mansimarkaur avatar mansimarkaur commented on July 26, 2024

No, I don't have AntiVirus installed.
I'm curious how this could possibly affect the pytest-runner issue.

from todoman.

untitaker avatar untitaker commented on July 26, 2024

The problem appears to be that pip can't establish a HTTPS connection to PyPI, so I thought perhaps some other software (Antivirus) was clumsily trying to intercept the connection for scanning.

from todoman.

WhyNotHugo avatar WhyNotHugo commented on July 26, 2024

Sorry, just to clarify, after installing python3 through homebrew, does this work:

pip3 install pytest-runner

(I'm guessing it'll be called pip3, not 100% familiar with homebrew/OSX).

from todoman.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.