Comments (8)
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.
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.
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.
Your directory is called premailer-2.0.0
and it's looking inside the premailer
directory?
from premailer.
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.
That same strange error about setup.py
not existing happens for 1.4.1 too now.
from premailer.
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.
Thanks @peterbe !
from premailer.
Related Issues (20)
- Premailer strips important tags from stylesheets meant to be ignored HOT 2
- Does premailer support css variables? HOT 4
- Mustache {{ }} syntax in href is broken on transform HOT 2
- premailer doesn't appear to work on m1 macs HOT 18
- premailer issue
- Prefill advanced options of hosted Premailer? HOT 3
- Add cache support for _load_external_url HOT 2
- To support css var HOT 1
- :not is not supported
- Style sorting breaking proper precedence HOT 3
- Question about self-closing tags HOT 1
- allow_network=False prevents loading of local stylesheets
- preserve_handlebar_syntax regex should be improved
- Direct child selector (">") is ignored
- Bug: Global style with !important do not take precedence over the respective inline style
- Deleted HOT 1
- load_external_url should have a proper timeout set
- AttributeError: 'CSSMediaRule' object has no attribute 'style'
- 1 HOT 2
- lxml 5.0 Seems To Break preserve_handlebar_syntax
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from premailer.