"easy_install -U rhodecode" does not work for version 1.1.8

Issue #263 resolved
Former user created an issue

If I run "easy_install -U rhodecode" my console shows this: {{{ #!console

C:\Program Files>easy_install -U rhodecode Processing rhodecode Running setup.py -q bdist_egg --dist-dir C:\Program Files\rhodecode\egg-dist-tmp-j_zo8b rhodecode 1.1.8 is already the active version in easy-install.pth

Installed c:\python27\lib\site-packages\rhodecode-1.1.8-py2.7.egg Processing dependencies for rhodecode==1.1.8 Finished processing dependencies for rhodecode==1.1.8 }}}

I think rhodecode 1.1.8 should not be the "active version"?!?

Cowabunga!

Comments (8)

  1. Marcin Kuzminski repo owner

    Because it sees rhodecode as an folder, when you run it from program files, it detects a folder named rhodcode exists and runs setup from it.

    run this command from outside program files

  2. Former user Account Deleted
    • changed status to open

    OK, seems to work.

    But now I get this:

    C:\compile>easy_install -U rhodecode
    Searching for rhodecode
    Reading http://pypi.python.org/simple/rhodecode/
    Reading http://rhodecode.org
    Reading http://hg.python-works.com
    Best match: rhodecode 1.2.1
    Processing rhodecode-1.2.1-py2.7.egg
    rhodecode 1.2.1 is already the active version in easy-install.pth
    
    Using c:\python27\lib\site-packages\rhodecode-1.2.1-py2.7.egg
    Processing dependencies for rhodecode
    Searching for py-bcrypt
    Reading http://pypi.python.org/simple/py-bcrypt/
    Reading http://www.mindrot.org/projects/py-bcrypt/
    Reading http://www.mindrot.org/py-bcrypt.html
    Best match: py-bcrypt 0.2
    Downloading http://www.mindrot.org/files/py-bcrypt/py-bcrypt-0.2.tar.gz
    Processing py-bcrypt-0.2.tar.gz
    Running py-bcrypt-0.2\setup.py -q bdist_egg --dist-dir c:\users\webadm~1\appdata\local\temp\easy_install-pcdj8d\py-bcrypt-0.2\egg-dist-tmp-b6o2hj
    bcrypt/bcrypt_python.c:29:26: error: expected declaration specifiers or '...' before 'u_int8_t'
    bcrypt/bcrypt_python.c:29:38: error: expected declaration specifiers or '...' before 'u_int16_t'
    bcrypt/bcrypt_python.c:29:49: error: expected declaration specifiers or '...' before 'u_int8_t'
    bcrypt/bcrypt_python.c: In function 'bcrypt_encode_salt':
    bcrypt/bcrypt_python.c:56:2: error: too many arguments to function 'encode_salt'
    bcrypt/bcrypt_python.c:29:6: note: declared here
    error: Setup script exited with error: command 'gcc' failed with exit status 1
    

    I tried to fix this by doing the things written in #154, but it does not seem to work for me :-/

  3. Former user Account Deleted

    Does not work:

    C:\compile>easy_install -U http://pypi.python.org/packages/source/R/RhodeCode/RhodeCode-1.2.1.tar.gz#md5=d264c2feb681223ff8ebc65cb36273eb
    Downloading http://pypi.python.org/packages/source/R/RhodeCode/RhodeCode-1.2.1.tar.gz#md5=d264c2feb681223ff8ebc65cb36273eb
    Processing RhodeCode-1.2.1.tar.gz
    Running RhodeCode-1.2.1\setup.py -q bdist_egg --dist-dir c:\users\webadm~1\appdata\local\temp\easy_install-ouj4c5\RhodeCode-1.2.1\egg-dist-tmp-8gtmcb
    Traceback (most recent call last):
      File "C:\Python27\Scripts\easy_install-script.py", line 8, in <module>
        load_entry_point('setuptools==0.6c11', 'console_scripts', 'easy_install')()
      File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 1712, in main
        with_ei_usage(lambda:
      File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 1700, in with_ei_usage
        return f()
      File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 1716, in <lambda>
        distclass=DistributionWithoutHelpCommands, **kw
      File "C:\Python27\lib\distutils\core.py", line 152, in setup
        dist.run_commands()
      File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands
        self.run_command(cmd)
      File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
        cmd_obj.run()
      File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 211, in run
        self.easy_install(spec, not self.no_deps)
      File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 422, in easy_install
        return self.install_item(None, download, tmpdir, deps, True)
      File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 476, in install_item
        dists = self.install_eggs(spec, download, tmpdir)
      File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 655, in install_eggs
        return self.build_and_install(setup_script, setup_base)
      File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 930, in build_and_install
        self.run_setup(setup_script, setup_base, args)
      File "C:\Python27\lib\site-packages\setuptools\command\easy_install.py", line 919, in run_setup
        run_setup(setup_script, args)
      File "C:\Python27\lib\site-packages\setuptools\sandbox.py", line 62, in run_setup
        lambda: execfile(
      File "C:\Python27\lib\site-packages\setuptools\sandbox.py", line 105, in run
        return func()
      File "C:\Python27\lib\site-packages\setuptools\sandbox.py", line 64, in <lambda>
        {'__file__':setup_script, '__name__':'__main__'}
      File "setup.py", line 2, in <module>
      File "c:\users\webadm~1\appdata\local\temp\easy_install-ouj4c5\RhodeCode-1.2.1\rhodecode\__init__.py", line 38, in <module>
      File "c:\users\webadm~1\appdata\local\temp\easy_install-ouj4c5\RhodeCode-1.2.1\rhodecode\lib\utils.py", line 48, in <module>
      File "c:\users\webadm~1\appdata\local\temp\easy_install-ouj4c5\RhodeCode-1.2.1\rhodecode\model\db.py", line 138, in <module>
      File "C:\Python27\lib\site-packages\sqlalchemy\ext\declarative.py", line 1167, in __init__
        _as_declarative(cls, classname, cls.__dict__)
      File "C:\Python27\lib\site-packages\sqlalchemy\ext\declarative.py", line 1058, in _as_declarative
        **table_kw)
      File "C:\Python27\lib\site-packages\sqlalchemy\schema.py", line 210, in __new__
        table._init(name, metadata, *args, **kw)
      File "C:\Python27\lib\site-packages\sqlalchemy\schema.py", line 250, in _init
        self._extra_kwargs(**kwargs)
      File "C:\Python27\lib\site-packages\sqlalchemy\schema.py", line 306, in _extra_kwargs
        "Invalid argument(s) for Table: %r" % kwargs.keys())
    TypeError: Invalid argument(s) for Table: ['extend_existing']
    
  4. Marcin Kuzminski repo owner
    • changed version to 1.2.0

    :) update your sqlalchemy version, to 0.7 I removed eggs from pypi it's more trouble i guess.

  5. Marcin Kuzminski repo owner

    I fixed this bug with extend_existing, next version should upgrade without need to firstly update sqlalchemy.

  6. Log in to comment