Run tests on Ubuntu 13.04

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Run tests on Ubuntu 13.04

Roman Simakov-2
Hello!

I'm trying to run fbtest on my Ubuntu 13.04 x86_64. I have some
problems and I rely on your help.

1) I cannot install fbtest via pip
===========================================
roman:fbtest_repo$ sudo pip install fbtest
Downloading/unpacking fbtest
  Running setup.py egg_info for package fbtest
    /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown
distribution option: 'entry_points'
      warnings.warn(msg)
    /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown
distribution option: 'use_2to3'
      warnings.warn(msg)
    /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown
distribution option: 'include_package_data'
      warnings.warn(msg)
    /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown
distribution option: 'zip_safe'
      warnings.warn(msg)
    /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown
distribution option: 'test_suite'
      warnings.warn(msg)
    /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown
distribution option: 'install_requires'
      warnings.warn(msg)
    usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
       or: -c --help [cmd1 cmd2 ...]
       or: -c --help-commands
       or: -c cmd --help

    error: invalid command 'egg_info'
    Complete output from command python setup.py egg_info:
    /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown
distribution option: 'entry_points'

  warnings.warn(msg)

/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown
distribution option: 'use_2to3'

  warnings.warn(msg)

/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown
distribution option: 'include_package_data'

  warnings.warn(msg)

/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown
distribution option: 'zip_safe'

  warnings.warn(msg)

/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown
distribution option: 'test_suite'

  warnings.warn(msg)

/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown
distribution option: 'install_requires'

  warnings.warn(msg)

usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]

   or: -c --help [cmd1 cmd2 ...]

   or: -c --help-commands

   or: -c cmd --help



error: invalid command 'egg_info'

----------------------------------------
Command python setup.py egg_info failed with error code 1 in
/tmp/pip-build-root/fbtest
Storing complete log in /home/roman/.pip/pip.log

===========================================
I checked it out from
svn co http://svn.code.sf.net/p/firebird/code/qa/fbtest/trunk/ fbtest
then install manually like this
===========================================
roman:fbtest$ sudo python setup.py install
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown
distribution option: 'entry_points'
  warnings.warn(msg)
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown
distribution option: 'use_2to3'
  warnings.warn(msg)
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown
distribution option: 'include_package_data'
  warnings.warn(msg)
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown
distribution option: 'zip_safe'
  warnings.warn(msg)
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown
distribution option: 'test_suite'
  warnings.warn(msg)
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown
distribution option: 'install_requires'
  warnings.warn(msg)
running install
running build
running install_egg_info
Writing /usr/local/lib/python2.7/dist-packages/fbtest-1.0.egg-info
===========================================

2) Cannot update test repository
=============================================
roman:fbtest_repo$ fbt_update repository
Traceback (most recent call last):
  File "/usr/local/bin/fbt_update", line 9, in <module>
    load_entry_point('fbtest==1.0', 'console_scripts', 'fbt_update')()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line
357, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line
2393, in load_entry_point
    raise ImportError("Entry point %r not found" % ((group,name),))
ImportError: Entry point ('console_scripts', 'fbt_update') not found
================================================

I did it manually

=================================================
roman:prj$ svn co
http://svn.code.sf.net/p/firebird/code/qa/fbt-repository/trunk/
fbtest_repo
A    fbtest_repo/fbk
A    fbtest_repo/fbk/core1006.fbk
...
A    fbtest_repo/fdb/core870.fdb
A    fbtest_repo/fdb/core1331.fdb
Получена редакция 58685.
===============================================

3) Cannot run tests.
=================================================
roman:prj$ fbt_run
Traceback (most recent call last):
  File "/usr/local/bin/fbt_run", line 9, in <module>
    load_entry_point('fbtest==1.0', 'console_scripts', 'fbt_run')()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line
357, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line
2393, in load_entry_point
    raise ImportError("Entry point %r not found" % ((group,name),))
ImportError: Entry point ('console_scripts', 'fbt_run') not found
=============================================

I'm not so familar with python so sorry if it can be fixed trivially.

Thanks.

--
Roman Simakov

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
Firebird-test mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/firebird-test
Reply | Threaded
Open this post in threaded view
|

Re: Run tests on Ubuntu 13.04

philippe makowski-3
Le 03/10/13 13:14, Roman Simakov a écrit :
> Hello!
>
> I'm trying to run fbtest on my Ubuntu 13.04 x86_64. I have some
> problems and I rely on your help.
>
be sure you have python-setuptools
sudo apt-get install python-setuptools

the automated build box (http://ci.ibphoenix.fr) do it mostly like that :


# co python driver for firebird
svn co svn://svn.code.sf.net/p/firebird/code/python/fdb/trunk fdb
# install
pushd fdb
sudo python setup.py install
popd

# co fbtest
svn://svn.code.sf.net/p/firebird/code/qa/fbtest/trunk qa
# install tbtest
pushd qa
sudo python setup.py install
# we need this because setup.py is not correct
sudo cp -f fbtest.py /usr/lib/python2.7/dist-packages/fbtest.py
#
popd

# co fbt-repository
svn co svn://svn.code.sf.net/p/firebird/code/qa/fbt-repository/trunk
fbt-repository

pushd fbt-repository
sudo chmod 666 ./fdb/*.fdb


fbt_run ...







------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
Firebird-test mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/firebird-test
Reply | Threaded
Open this post in threaded view
|

Re: Run tests on Ubuntu 13.04

Roman Simakov-2
Thanks for the quick reply. I did all your instructions but still see
an error of run tests. Full log of my actions you can found here
https://www.dropbox.com/s/1d4m7udc0906nka/fbtest_terminal.txt

An error is:
=========================================
roman:prj$ pushd fbt-repository/
~/prj/fbt-repository ~/prj
roman:fbt-repository$ sudo chmod 666 ./fdb/*.fdb
roman:fbt-repository$ fbt_run
Traceback (most recent call last):
  File "/usr/local/bin/fbt_run", line 9, in <module>
    load_entry_point('fbtest==1.0', 'console_scripts', 'fbt_run')()
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line
357, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line
2393, in load_entry_point
    raise ImportError("Entry point %r not found" % ((group,name),))
ImportError: Entry point ('console_scripts', 'fbt_run') not found
roman:fbt-repository$
=========================================

2013/10/3 Philippe Makowski <[hidden email]>:

> Le 03/10/13 13:14, Roman Simakov a écrit :
>> Hello!
>>
>> I'm trying to run fbtest on my Ubuntu 13.04 x86_64. I have some
>> problems and I rely on your help.
>>
> be sure you have python-setuptools
> sudo apt-get install python-setuptools
>
> the automated build box (http://ci.ibphoenix.fr) do it mostly like that :
>
>
> # co python driver for firebird
> svn co svn://svn.code.sf.net/p/firebird/code/python/fdb/trunk fdb
> # install
> pushd fdb
> sudo python setup.py install
> popd
>
> # co fbtest
> svn://svn.code.sf.net/p/firebird/code/qa/fbtest/trunk qa
> # install tbtest
> pushd qa
> sudo python setup.py install
> # we need this because setup.py is not correct
> sudo cp -f fbtest.py /usr/lib/python2.7/dist-packages/fbtest.py
> #
> popd
>
> # co fbt-repository
> svn co svn://svn.code.sf.net/p/firebird/code/qa/fbt-repository/trunk
> fbt-repository
>
> pushd fbt-repository
> sudo chmod 666 ./fdb/*.fdb
>
>
> fbt_run ...
>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
> _______________________________________________
> Firebird-test mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/firebird-test



--
Roman Simakov

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
Firebird-test mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/firebird-test
Reply | Threaded
Open this post in threaded view
|

Re: Run tests on Ubuntu 13.04

philippe makowski-3
Le 03/10/13 15:42, Roman Simakov a écrit :

> Thanks for the quick reply. I did all your instructions but still see
> an error of run tests. Full log of my actions you can found here
> https://www.dropbox.com/s/1d4m7udc0906nka/fbtest_terminal.txt
>
> An error is:
> =========================================
> roman:prj$ pushd fbt-repository/
> ~/prj/fbt-repository ~/prj
> roman:fbt-repository$ sudo chmod 666 ./fdb/*.fdb
> roman:fbt-repository$ fbt_run
> Traceback (most recent call last):
>    File "/usr/local/bin/fbt_run", line 9, in <module>
>      load_entry_point('fbtest==1.0', 'console_scripts', 'fbt_run')()
>    File "/pkg_resources.py", line
> 357, in load_entry_point
>      return get_distribution(dist).load_entry_point(group, name)
>    File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line
> 2393, in load_entry_point
>      raise ImportError("Entry point %r not found" % ((group,name),))
> ImportError: Entry point ('console_scripts', 'fbt_run') not found
> roman:fbt-repository$
> =========================================
>
ok so copy fbtest.py into /usr/local/lib/python2.7/dist-packages

instead of :
$ sudo cp -f fbtest.py /usr/lib/python2.7/dist-packages/fbtest.py

do

$ sudo cp -f fbtest.py /usr/local/lib/python2.7/dist-packages/fbtest.py


I really don't like Ubuntu :(





------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
Firebird-test mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/firebird-test
Reply | Threaded
Open this post in threaded view
|

Re: Run tests on Ubuntu 13.04

Roman Simakov-2
The same

2013/10/3 Philippe Makowski <[hidden email]>:

> Le 03/10/13 15:42, Roman Simakov a écrit :
>> Thanks for the quick reply. I did all your instructions but still see
>> an error of run tests. Full log of my actions you can found here
>> https://www.dropbox.com/s/1d4m7udc0906nka/fbtest_terminal.txt
>>
>> An error is:
>> =========================================
>> roman:prj$ pushd fbt-repository/
>> ~/prj/fbt-repository ~/prj
>> roman:fbt-repository$ sudo chmod 666 ./fdb/*.fdb
>> roman:fbt-repository$ fbt_run
>> Traceback (most recent call last):
>>    File "/usr/local/bin/fbt_run", line 9, in <module>
>>      load_entry_point('fbtest==1.0', 'console_scripts', 'fbt_run')()
>>    File "/pkg_resources.py", line
>> 357, in load_entry_point
>>      return get_distribution(dist).load_entry_point(group, name)
>>    File "/usr/local/lib/python2.7/dist-packages/pkg_resources.py", line
>> 2393, in load_entry_point
>>      raise ImportError("Entry point %r not found" % ((group,name),))
>> ImportError: Entry point ('console_scripts', 'fbt_run') not found
>> roman:fbt-repository$
>> =========================================
>>
> ok so copy fbtest.py into /usr/local/lib/python2.7/dist-packages
>
> instead of :
> $ sudo cp -f fbtest.py /usr/lib/python2.7/dist-packages/fbtest.py
>
> do
>
> $ sudo cp -f fbtest.py /usr/local/lib/python2.7/dist-packages/fbtest.py
>
>
> I really don't like Ubuntu :(
>
>
>
>
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
> _______________________________________________
> Firebird-test mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/firebird-test



--
Roman Simakov

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
Firebird-test mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/firebird-test
Reply | Threaded
Open this post in threaded view
|

Re: Run tests on Ubuntu 13.04

philippe makowski-3
Roman Simakov  [2013-10-03 20:05] :
> The same
>
same ?

Hard to believe or your Python stack is completly broken







------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
Firebird-test mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/firebird-test