Code Monkey home page Code Monkey logo

Comments (12)

takluyver avatar takluyver commented on August 22, 2024

Well, that turned up quicker than I expected.

Why do you need to use easy_install rather than pip?

from ptyprocess.

papachoco avatar papachoco commented on August 22, 2024

We have legacy buildout recipes and that uses setuptools

from ptyprocess.

sophacles avatar sophacles commented on August 22, 2024

Vaguely related - the wheel that has been uploaded to pypi does not work with:

wheel install ptyprocess-0.5.1-py2.py3-none-any.whl

It gets a:

Traceback (most recent call last):
  File "/home/vagrant/.virtualenvs/veriflow/bin/wheel", line 9, in <module>
    load_entry_point('wheel==0.26.0', 'console_scripts', 'wheel')()
  File "/home/vagrant/.virtualenvs/veriflow/local/lib/python2.7/site-packages/wheel-0.26.0-py2.7.egg/wheel/tool/__init__.py", line 358, in main
    args.func(args)
  File "/home/vagrant/.virtualenvs/veriflow/local/lib/python2.7/site-packages/wheel-0.26.0-py2.7.egg/wheel/tool/__init__.py", line 301, in install_f
    args.wheel_dirs, args.force, args.list_files)
  File "/home/vagrant/.virtualenvs/veriflow/local/lib/python2.7/site-packages/wheel-0.26.0-py2.7.egg/wheel/tool/__init__.py", line 223, in install
    wf.install(force=force)
  File "/home/vagrant/.virtualenvs/veriflow/local/lib/python2.7/site-packages/wheel-0.26.0-py2.7.egg/wheel/install.py", line 268, in install
    if self.parsed_wheel_info['Root-Is-Purelib'] == 'true':
  File "/home/vagrant/.virtualenvs/veriflow/local/lib/python2.7/site-packages/wheel-0.26.0-py2.7.egg/wheel/decorator.py", line 17, in __get__
    val = self.wrapped(inst)
  File "/home/vagrant/.virtualenvs/veriflow/local/lib/python2.7/site-packages/wheel-0.26.0-py2.7.egg/wheel/install.py", line 238, in parsed_wheel_info
    return read_pkg_info_bytes(self.zipfile.read(self.wheelinfo_name))
  File "/usr/lib/python2.7/zipfile.py", line 935, in read
    return self.open(name, "r", pwd).read()
  File "/usr/lib/python2.7/zipfile.py", line 630, in read
    data = self.read1(n)
  File "/usr/lib/python2.7/zipfile.py", line 692, in read1
    self._update_crc(data, eof=eof)
  File "/home/vagrant/.virtualenvs/veriflow/local/lib/python2.7/site-packages/wheel-0.26.0-py2.7.egg/wheel/install.py", line 463, in _update_crc
    raise BadWheelFile("Bad hash for file %r" % ef.name)
wheel.install.BadWheelFile: Bad hash for file 'ptyprocess-0.5.1.dist-info/WHEEL'

It seems to be because the digests in the WHEEL file are hex encoded sha256, rather than urlsafe_base64_encodeed digests.

(My use case is that we distribute a tarball with all dependencies, and just wheel install *.whl from the directory)

from ptyprocess.

takluyver avatar takluyver commented on August 22, 2024

Oops, thanks for pointing that out, I am indeed generating hashes in the wrong format. I guess pip doesn't check them. I was also unaware that there's a separate wheel command line tool.

from ptyprocess.

tlamer avatar tlamer commented on August 22, 2024

Actually I've used pexpect on a machine where there is no pip and I've used setuptools for installation. For my particular usecase it would be more convenient to be able to do "python setup.py install".

from ptyprocess.

papachoco avatar papachoco commented on August 22, 2024

Creating the sdist and loading to pypi would be great

from ptyprocess.

takluyver avatar takluyver commented on August 22, 2024

I have put an sdist up so it doesn't inconvenience people while I think more about it.

If anyone's interested, the stopgap script I used to build an sdist is in a gist: https://gist.github.com/takluyver/7c66429a8e7f2b9388b0

from ptyprocess.

grzn avatar grzn commented on August 22, 2024

Can you please re-register and re-uploading the wheel? there are tools that download and use the wheel if its on pypi, and doesn't fallback to sdist if the wheel is broken.

from ptyprocess.

href avatar href commented on August 22, 2024

Yes please, I can't use wheels because some dependency pulls in ptyprocess.

from ptyprocess.

leorochael avatar leorochael commented on August 22, 2024

It seems this issue is documenting two separate problems:

  1. The lack of an sdist, which has been remedied

  2. The fact that the whl file for 0.5.1 is not installable by wheel.

Should we split the issues to make it clearer?

In any case, I'm also having issues with the wheel file hashes.

And on an aside, extracting the wheel on linux, e.g. with the unzip cmdline, causes the dist-info directory files to be extracted with no permissions:

$ ls -l ptyprocess-0.5.1.dist-info/
total 12
---------- 1 leonardo leonardo 1275 Jan  1  2016 METADATA
---------- 1 leonardo leonardo  656 Jan  1  2016 RECORD
---------- 1 leonardo leonardo   97 Jan  1  2016 WHEEL

from ptyprocess.

leorochael avatar leorochael commented on August 22, 2024

With the release of 0.5.2, I guess everything mentioned in this issue (easy_install-ability/presence of sdist; installability by wheel) has been solved and this issue can be closed, right?

from ptyprocess.

takluyver avatar takluyver commented on August 22, 2024

Thanks!

from ptyprocess.

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.