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

[dev] Dependency conflicts flake8 vs mccabe (python-3.8) #78

Closed
sphakka opened this issue Jan 14, 2021 · 2 comments
Closed

[dev] Dependency conflicts flake8 vs mccabe (python-3.8) #78

sphakka opened this issue Jan 14, 2021 · 2 comments

Comments

@sphakka
Copy link
Collaborator

sphakka commented Jan 14, 2021

It looks like the dev environment/procedure needs a refresh, because it gets a bit complicated to set it up (python3.8 on Gentoo):
(notice --no-site-packages is no longer there and the venv is automatically activated)

$ cd csv2ofx
$ mkvirtualenv  csv2ofx-p3_8
$ python setup.py  develop
Traceback (most recent call last):
  File "setup.py", line 10, in <module>
    import pkutils
ModuleNotFoundError: No module named 'pkutils'
$ pip install pkutils
$ python setup.py  develop
...
error: chardet 4.0.0 is installed but chardet<4.0.0,>=3.0.4 is required by {'meza'}
$ pip install chardet==3.0.4
meza 0.41.1 requires beautifulsoup4<5.0.0,>=4.6.0, which is not installed.
meza 0.41.1 requires PyYAML<4.0.0,>=3.12, which is not installed.

Ouch, trying going on

$ pip install -r dev-requirements.txt
...
ERROR: Cannot install -r dev-requirements.txt (line 4) and mccabe<0.7.0 and >=0.6.1 because these package versions have conflicting dependencies.

The conflict is caused by:
    The user requested mccabe<0.7.0 and >=0.6.1
    flake8 2.6.2 depends on mccabe<0.6 and >=0.2.1
    The user requested mccabe<0.7.0 and >=0.6.1
    flake8 2.6.1 depends on mccabe<0.6 and >=0.2.1
    The user requested mccabe<0.7.0 and >=0.6.1
    flake8 2.6.0 depends on mccabe<0.6 and >=0.2.1
    The user requested mccabe<0.7.0 and >=0.6.1
    flake8 2.5.5 depends on mccabe<0.5 and >=0.2.1
    The user requested mccabe<0.7.0 and >=0.6.1
    flake8 2.5.4 depends on mccabe<0.5 and >=0.2.1
    The user requested mccabe<0.7.0 and >=0.6.1
    flake8 2.5.3 depends on mccabe<0.5 and >=0.2.1
    The user requested mccabe<0.7.0 and >=0.6.1
    flake8 2.5.2 depends on mccabe<0.5 and >=0.2.1
    The user requested mccabe<0.7.0 and >=0.6.1
    flake8 2.5.1 depends on mccabe<0.4 and >=0.2.1

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies

Now what?

@sphakka
Copy link
Collaborator Author

sphakka commented Jan 16, 2021

BTW, I see the same even on Travis CI for my PR: https://travis-ci.org/github/reubano/csv2ofx/jobs/754011168. Is it my branch, or something fishy at master?

@reubano
Copy link
Owner

reubano commented Jan 16, 2021

It's an issue on master.

reubano added a commit that referenced this issue Dec 25, 2021
* fixes: (23 commits)
  Bump to version 0.28.0
  [FIX] Update docblock and test default date format
  [ENH] Prettify files w black
  [FIX] Remove transitive dev dependencies (closes #78)
  Add pyproject.toml so the project can build from source.
  Fix lint line length warnings (blocking manage checks)
  Correct arguments for Stripe OFX tests. An end-date argument is required as there's nothing in the .csv file to base it on.
  Update stripe.py
  Stripe support based on current CSV column headings as of May 2021 Also added SERVER_DATE so that .ofx tests pass reliably
  Add a mapping for Stripe, a payment processor https://stripe.com Note - this checkin is based on a CSV format as of about March 2021. The next revision will contain revised mappings for their current format which has renamed columns.
  Updated QIF test files with four digit dates
  Change default date format to four digit year, which affects QIF files. Two digit years default to 19 as century, never right.
  Add initial Starling mapping
  Adds N26 mapping
  New mapping for Boursorama Banque (fr)
  Add EQ Bank (Canada)
  Fix test by using SERVER_DATE and an end date
  Add new mapping for the Outbank app
  [FIX] Correctly identify "reinvest" category (#58)
  New mapping for UBS Switzerland (fr) and utility script (#46)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants