GithubHelp home page GithubHelp logo

Comments (8)

peterbe avatar peterbe commented on June 27, 2024

WTF!
I have no idea what just happened but when you go to pypi has version 1.4.1 and that has __main__.py in it.

However, if you do pip install premailer you get verion 1.12. What's that about?!

Actually, I think I've found the mistake. Some time ago, for some reason, I must have accidentally used 1.13
3981359#diff-2eeaed663bd0d25b7e608891384b7298R8
But I don't remember why?!

Anyway, I think pypi is listing the highest number, not the most recent version. Lemme try to upgrade pypi.

from premailer.

punchagan avatar punchagan commented on June 27, 2024

I have premailer 1.13 and pip install --upgrade premailer fails with

  Downloading premailer-2.0.0.tar.gz

  Downloading from URL https://pypi.python.org/packages/source/p/premailer/premailer-2.0.0.tar.gz#md5=74b033205f20e1a437
0cbadf8bb248fe
  Running setup.py egg_info for package premailer

    Traceback (most recent call last):

      File "<string>", line 16, in <module>

    IOError: [Errno 2] No such file or directory: '/path/to/virtual-env/build/premailer/setup.py'

    Complete output from command python setup.py egg_info:

    Traceback (most recent call last):

  File "<string>", line 16, in <module>

IOError: [Errno 2] No such file or directory: '/path/to/virtual-env/build/premailer/setup.py'

----------------------------------------

See https://s3.amazonaws.com/archive.travis-ci.org/jobs/22622847/log.txt for instance.

from premailer.

peterbe avatar peterbe commented on June 27, 2024

Yeah I got that too! What does that even mean?! Why would there not be a setup.py. It's certainly there when you download the 2.0.0 tarball.
Any idea?

from premailer.

punchagan avatar punchagan commented on June 27, 2024

Your directory is called premailer-2.0.0 and it's looking inside the premailer directory?

from premailer.

punchagan avatar punchagan commented on June 27, 2024

Try pip install -b /tmp/build premailer to help debug the issue. Looks like there is an additional level in the directory structure in the tarball?

from premailer.

peterbe avatar peterbe commented on June 27, 2024

That same strange error about setup.py not existing happens for 1.4.1 too now.

from premailer.

peterbe avatar peterbe commented on June 27, 2024

Wow! That was a tricky one. After a lot of hacking on this (and hair-pulling!) I finally managed to make a tarball that didn't contain spurious copies with a ._ prefix on every file.

Solution was to build the dist using a python 2.7 virtualenv instead.

Just released 2.0.2 on pypi which now works in a clean test environment.

from premailer.

punchagan avatar punchagan commented on June 27, 2024

Thanks @peterbe !

from premailer.

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.