Code Monkey home page Code Monkey logo

Comments (9)

zenhack avatar zenhack commented on August 25, 2024

I just pushed a patch that should prevent venv.sh from incorrectly reporting success in the future. Thanks for catching that.

Re: what to do, the library it's missing this time is 'mock' not 'six'; Maybe see about installing the system package for that?

What version of python are you using for this?

from simp_le.

VojtechMyslivec avatar VojtechMyslivec commented on August 25, 2024

If you look at venv.sh log, the first error seems to be

    from six.moves import filter, map
ImportError: No module named six.moves

There are lot of other errors as well (like Failed building wheel for cryptography). So I have focused on these problems.

Default python on Wheezy is 2.7.3

After 2-3 hours of debugging, I have discovered that system package python-six breaks the simp_le installation 😫

./venv.sh is failing anyway but when I run it at least twice, simp_le --help works as expected.

The process to install simp_le on Debian Wheezy:

  1. apt-get -y purge python-six
  2. ./bootstrap.sh
  3. ./venv.sh
  4. ./venv.sh

Anyway It is quite undeterministic, that the script is failing and when you run it twice, simp_le starts to work.

Thanks for the patch but it breaks this workaround actually.

Here is a log of running ./venv.sh and simp_le twice. I hope it will help you because I can't figure out the root of the problem. I have wrap each subcommand with debug message and return code.

EDIT: uploaded new another log version

from simp_le.

zenhack avatar zenhack commented on August 25, 2024

So, when I adopted this project the venv.sh script is one of a handful of things that I thought wasn't really the right way to approach the probem; I'm disinclined to spend a bunch of time debugging it, in favor of coming up with some reliable instructions and scrapping it.

What happens if, instead of running venv.sh, you cd into the source tree and do:

virtualenv venv
source venv/bin/activate
pip install -e .
simp_le --help

from simp_le.

VojtechMyslivec avatar VojtechMyslivec commented on August 25, 2024

Still no luck. It ends with AttributeError: 'module' object has no attribute 'evaluate_marker' this time.

log

from simp_le.

zenhack avatar zenhack commented on August 25, 2024

@VojtechMyslivec, I set up a wheezy vm and think I've solved the problem; can you check out the distribute-fix branch and confirm that the venv.sh script there works for you? If so I'll merge it into master.

from simp_le.

VojtechMyslivec avatar VojtechMyslivec commented on August 25, 2024

Perfect 🎉 Works like a charm. Thanks a lot!

from simp_le.

zenhack avatar zenhack commented on August 25, 2024

Great! It's on master now; once travis finishes running I'll close this.

from simp_le.

VojtechMyslivec avatar VojtechMyslivec commented on August 25, 2024

PS: I have tried it on Debian Jessie (8.7, stable) and Stretch (9.0-rc, future-stable). And it works on both as well.

Thank again.

from simp_le.

zenhack avatar zenhack commented on August 25, 2024

You're welcome! Travis passed as expected, so this has been merged into master. Also, there's a new tag/release on pypi. Closing.

from simp_le.

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.