Skip to content

Instantly share code, notes, and snippets.

@ryanvgates
Created October 13, 2022 19:48
Show Gist options
  • Save ryanvgates/e6a2c44dfa5cf0b2762b3fce4fe4c7f9 to your computer and use it in GitHub Desktop.
Save ryanvgates/e6a2c44dfa5cf0b2762b3fce4fe4c7f9 to your computer and use it in GitHub Desktop.
Pipenv Null Markers - Problem
(my-app) ┌─[ryan@host] - [~/Documents/git/my-repo] - [Wed Oct 05, 14:29]
└─[$] pipfile2req Pipfile.lock > requirements.txt
Traceback (most recent call last):
File "/Users/ryan/.local/share/virtualenvs/my-app-g5SfM111/bin/pipfile2req", line 8, in
sys.exit(main())
File "/Users/ryan/.local/share/virtualenvs/my-app-g5SfM111/lib/python3.9/site-packages/pipfile2req/init.py", line 112, in main
lines = convert_pipfile_or_lock(
File "/Users/ryan/.local/share/virtualenvs/my-app-g5SfM111/lib/python3.9/site-packages/pipfile2req/init.py", line 96, in convert_pipfile_or_lock
lines = [
File "/Users/ryan/.local/share/virtualenvs/my-app-g5SfM111/lib/python3.9/site-packages/pipfile2req/init.py", line 97, in
requirement_from_pipfile(name, package, hashes)
File "/Users/ryan/.local/share/virtualenvs/my-app-g5SfM111/lib/python3.9/site-packages/pipfile2req/requirements.py", line 10, in requirement_from_pipfile
return Requirement.parse(name, package).as_line(include_hashes)
File "/Users/ryan/.local/share/virtualenvs/my-app-g5SfM111/lib/python3.9/site-packages/pipfile2req/requirements.py", line 97, in parse
kwargs["markers"] = _merge_markers(markers)
File "/Users/ryan/.local/share/virtualenvs/my-app-g5SfM111/lib/python3.9/site-packages/pipfile2req/requirements.py", line 14, in _merge_markers
result = Marker(markers[0])
File "/Users/ryan/.local/share/virtualenvs/my-app-g5SfM111/lib/python3.9/site-packages/packaging/markers.py", line 278, in init
self._markers = _coerce_parse_result(MARKER.parseString(marker))
File "/Users/ryan/.local/share/virtualenvs/my-app-g5SfM111/lib/python3.9/site-packages/pyparsing.py", line 1941, in parseString
instring = instring.expandtabs()
AttributeError: 'NoneType' object has no attribute 'expandtabs'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment