GithubHelp home page GithubHelp logo

Comments (6)

gsnedders avatar gsnedders commented on September 27, 2024

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.

tjerkw avatar tjerkw commented on September 27, 2024

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.

tjerkw avatar tjerkw commented on September 27, 2024

You can probably close this and see this as a nosetests problem, but that doesnt solve my problem off course :-)

from html5lib-python.

gsnedders avatar gsnedders commented on September 27, 2024

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.

tjerkw avatar tjerkw commented on September 27, 2024

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.

mdxs avatar mdxs commented on September 27, 2024

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)

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.