Comments (6)
Are you sure you're running the same Python interpreter in both cases? What does debug-info.py (from either git or from the 1.0b1 release) give?
from html5lib-python.
I did some more investigation. Actually html5lib runs fine on the machine. However not in combination with nosetests. B.t.w in my stacktrace you see the rollbackimporter.py, I also removed that one, since it was changing the sys.path.
Nosetests itself is also changing the sys.path which I think is causing the error. However running it with the following nosetests option is not possible:
--no-path-adjustment
Donβt make any changes to sys.path when loading tests [NOSE_NOPATH]
https://nose.readthedocs.org/en/latest/usage.html#cmdoption-P
Since my tests import other modules which only work without the --no-path-adjustment.
But in my own machine the nosetests run fine.
Yes i'm using the same python version and the same nosetests version. But the installation of the packages might be in different places.
from html5lib-python.
You can probably close this and see this as a nosetests problem, but that doesnt solve my problem off course :-)
from html5lib-python.
Can you post rollbackimporter.py? I'm fairly certain that that line should never throw AttributeError, unless __import__
has been replaced with something broken.
from html5lib-python.
Without using rollbackimporter there is still a problem. So thats bot
causing it. It is nosetests..
On Jun 20, 2013 2:41 PM, "Geoffrey Sneddon" [email protected]
wrote:
Can you post rollbackimporter.py? I'm fairly certain that that line should
never throw AttributeError, unless import has been replaced with
something broken.β
Reply to this email directly or view it on GitHubhttps://github.com//issues/61#issuecomment-19749553
.
from html5lib-python.
When @tjerkw says "It is nosetests.." and "You can probably close this and see this as a nosetests problem" and all this is from 2013; then surely this issue can be closed as-is / wontfix (and when in doubt: see it as a nosetests problem... and still close this issue).
from html5lib-python.
Related Issues (20)
- Move away from Travis CI HOT 3
- AttributeError: module 'html5lib.treebuilders' has no attribute '_base' (Python3.9) HOT 3
- 1.1: test suite is failing HOT 10
- Evaluate application of PyPy performance best-practices HOT 1
- consider making html5lib.tokenizer public HOT 3
- Add position information for text nodes
- Google Group: Access Error HOT 1
- Python 3.10 support HOT 5
- 1.1: test suite uses no longer maintained `pytest-expect` HOT 4
- ModuleNotFoundError: No module named 'xml' HOT 2
- use unittest.mock instead of mock HOT 3
- 1.1: sphinx warnings about `reference target not found`
- On html5lib maintenance HOT 2
- ImportError: Can't determine version for html5lib HOT 1
- Found a bug in version 1.1: "AssertionError: <EMPTY MESSAGE>" caused by html5parser parsing failure.
- HTML5Parser has incorrect behavior HOT 1
- Fuzzing reveals a number of parse errors HOT 2
- Drop Support for Python 2.7 HOT 3
- HTMLTokenizer.stream.chunkOffset not updating on string with no html elements
- pytest 7.4.0 compatibility
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 html5lib-python.