Git Product home page Git Product logo

Comments (3)

rchl avatar rchl commented on August 29, 2024

os.getresuid() is not available on Mac.

Traceback (most recent call last):
  File "install.py", line 113, in <module>
    cwd=installation.root_dir).strip():
  File "/Users/rchlodnicki/workspace/critic/installation/utils.py", line 116, in run_git
    return subprocess.check_output(args, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/contextlib.py", line 24, in __exit__
    self.gen.next()
  File "/Users/rchlodnicki/workspace/critic/installation/utils.py", line 280, in as_effective_user_from_path
    os.seteuid(os.getresuid()[0])
AttributeError: 'module' object has no attribute 'getresuid'

from critic.

jacobrask avatar jacobrask commented on August 29, 2024

While not exactly the same thing, I got Critic running in Docker on my Mac. Docker is a light weight Linux runtime, and on Mac also includes a VM with very little overhead.

I manage it through a little shell script that will install, start and update/upgrade Critic. This script should work just the same on Linux, but I haven't tried it there.

On Mac, install Docker + Boot2Docker. They are available as homebrew recipes:

brew install docker
brew install boot2docker

boot2docker init
boot2docker up
boot2docker shellinit

Then use critic-docker:

cd critic
critic-docker install
critic-docker run

hack, commit

critic-docker update

One caveat is that you currently can't specify a custom postgres host/port as an installation parameter, and I didn't bother to fix that, so you need to add "host": "postgres" to data["installation.database.parameters"] in installation/database.py. (In the critic-docker setup, postgres is run in a separate Docker container exposed with the hostname postgres to the main Critic container.)

from critic.

jjgod avatar jjgod commented on August 29, 2024

See isislovecruft/python-gnupg#28

from critic.

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.