Git Product home page Git Product logo

Comments (6)

jonabc avatar jonabc commented on May 26, 2024 1

ah ok so it looks like the two opening lines of requirements.txt are unexpected.

-i https://pypi.org/simple
-e .

Is there a way to have pipenv generate the requirements file without those lines? Otherwise I'd be happy to accept a PR if you wanted to submit a fix 😄 . Seems like licensed could ignore any lines that aren't of the format <package>=<version>?

from licensed.

dideler avatar dideler commented on May 26, 2024 1

Thanks @jonabc, manually removed those lines and it works!

I don't think there is a way for pipenv to not generate those lines. (Note the -e . is because of a local package dependency that was added to the Pipfile with pipenv install --editable .)

I'll try to submit a patch once I've finished going through all our remaining dependencies I'm auditing.

from licensed.

jonabc avatar jonabc commented on May 26, 2024 1

Closed by #167 🎉

from licensed.

dideler avatar dideler commented on May 26, 2024

Read the licensed pip docs and specified the virtualenv directory in .licensed.yaml.

sources:
  pip: true
python:
  virtual_env_dir: "/Users/dennis/.local/share/virtualenvs/core-06DYXQgl"

Trying again errors with the following trace

$ licensed list
Displaying dependencies for datascience core package
  pip dependencies:
Traceback (most recent call last):
	22: from /Users/dennis/.rbenv/versions/2.6.0/bin/licensed:23:in `<main>'
	21: from /Users/dennis/.rbenv/versions/2.6.0/bin/licensed:23:in `load'
	20: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/exe/licensed:5:in `<top (required)>'
	19: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor/base.rb:466:in `start'
	18: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
	17: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
	16: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
	15: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/cli.rb:30:in `list'
	14: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/cli.rb:59:in `run'
	13: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/command/list.rb:12:in `run'
	12: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/command/list.rb:12:in `each'
	11: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/command/list.rb:14:in `block in run'
	10: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/command/list.rb:14:in `chdir'
	 9: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/command/list.rb:15:in `block (2 levels) in run'
	 8: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/command/list.rb:15:in `each'
	 7: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/command/list.rb:20:in `block (3 levels) in run'
	 6: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/command/list.rb:33:in `dependencies'
	 5: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/source/pip.rb:22:in `dependencies'
	 4: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/source/pip.rb:22:in `map'
	 3: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/source/pip.rb:23:in `block in dependencies'
	 2: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/source/pip.rb:45:in `package_info'
	 1: from /Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/source/pip.rb:54:in `pip_command'
/Users/dennis/.rbenv/versions/2.6.0/lib/ruby/gems/2.6.0/gems/licensed-1.5.2/lib/licensed/shell.rb:17:in `execute': command exited with status 2 (Licensed::Shell::Error)
  /Users/dennis/.local/share/virtualenvs/core-06DYXQgl/bin/pip --disable-pip-version-check show "-i https://pypi.org/simple
"
    Usage:
      pip show [options] <package> ...

    no such option: -i

Edit: The virtualenv directory specified is the one reported by pipenv --venv

from licensed.

jonabc avatar jonabc commented on May 26, 2024

@dideler what version of pip are you using?

from licensed.

dideler avatar dideler commented on May 26, 2024
$ /Users/dennis/.local/share/virtualenvs/core-06DYXQgl/bin/pip --version
pip 18.1 from /Users/dennis/.local/share/virtualenvs/core-06DYXQgl/lib/python3.6/site-packages/pip (python 3.6)

from licensed.

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.