Failing in installing bob.bio packages.

1,653 views
Skip to first unread message

Jinfang Wang

unread,
May 13, 2017, 4:21:25 AM5/13/17
to bob-devel
I am installing bob.bio packages after setting up the python environment according to the command sequence,
$ pip search bob.bio
$ pip install bob.bio.base

But failed with the following message. Could you tell how to solve the problem?

=================================================================

root@hunfoo:/home/jfw/AnacondaProjects# pip install bob.bio.base
Collecting bob.bio.base
  Using cached bob.bio.base-3.1.0.zip
Collecting bob.blitz (from bob.bio.base)
  Using cached bob.blitz-2.0.12.zip
    Complete output from command python setup.py egg_info:
    
    Installed /tmp/pip-build-Rj2zHg/bob.blitz/.eggs/bob.extension-2.3.11-py2.7.egg
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-Rj2zHg/bob.blitz/setup.py", line 70, in <module>
        system_include_dirs=system_include_dirs,
      File "/tmp/pip-build-Rj2zHg/bob.blitz/.eggs/bob.extension-2.3.11-py2.7.egg/bob/extension/__init__.py", line 356, in __init__
        boost_pkg = boost(boost_req.replace('boost', '').strip())
      File "/tmp/pip-build-Rj2zHg/bob.blitz/.eggs/bob.extension-2.3.11-py2.7.egg/bob/extension/boost.py", line 69, in __init__
        raise RuntimeError("could not find boost's `version.hpp' - have you installed Boost on this machine?")
    RuntimeError: could not find boost's `version.hpp' - have you installed Boost on this machine?
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-Rj2zHg/bob.blitz/

=================================================================

Thank you.

Amir Mohammadi

unread,
May 13, 2017, 6:04:21 AM5/13/17
to bob-devel

You need to install bob first.

conda install bob

Try to read and follow bob installation instructions first.

Best,
Amir


--
-- You received this message because you are subscribed to the Google Groups bob-devel group. To post to this group, send email to bob-...@googlegroups.com. To unsubscribe from this group, send email to bob-devel+...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/bob-devel or directly the project website at http://idiap.github.com/bob/
---
You received this message because you are subscribed to the Google Groups "bob-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bob-devel+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Message has been deleted

Jinfang Wang

unread,
May 14, 2017, 4:15:25 AM5/14/17
to bob-devel
Thank you for the advice.
I use the command,"pip search bob.bio", to list the related packages and install bob.bio.spear和bob.bio.gmm by the command"pip install ...". Could you tell me whether there is a test script to verify the installation? Concretely, run the script running a testing for each of the bob.bio packages?
Again thanks.

Amir Mohammadi

unread,
May 14, 2017, 4:54:41 AM5/14/17
to bob-devel
Hi,

You need to install nose:
conda install nose

Then, you can run the nosetests like:
nosetestes -sv bob.bio

Let me know if it works.
Thanks,
Amir

--

Jinfang Wang

unread,
May 16, 2017, 4:55:19 AM5/16/17
to bob-devel
(bob_py27) root@hunfoo:/home/jfw# pip search bob.bio
bob.bio.base (3.1.0)                      - Tools for running biometric recognition experiments
  INSTALLED: 3.1.0 (latest)
bob.bio.caffe_face (1.0.0)                - Tools for running face recognition experiments using VGG face model
bob.bio.csu (2.0.4)                       - Wrapper classes to use the PythonFaceEvaluation classes from the CSU Face Recognition Resources
bob.bio.face (3.1.0)                      - Tools for running face recognition experiments
bob.bio.gmm (3.0.1)                       - Tools for running biometric recognition experiments using GMM-based approximation
  INSTALLED: 3.0.1 (latest)
bob.bio.pericrosseye_competition (1.0.2)  - This package contains the scripts to reproduce the experiments of the 2nd Cross-Spectrum
                                            Iris/Periocular Recognition competition
bob.bio.spear (3.0.1)                     - Tools for running speaker recognition experiments
  INSTALLED: 3.0.1 (latest)
bob.bio.video (3.1.0)                     - Run biometric recognition algorithms on videos

-------------------------------------The following is the results by running nosetests------------------------------

(bob_py27) root@hunfoo:/home/jfw# nosetests -sv bob.bio
bob.bio.base@2017-05-16 16:16:23,400 -- WARNING: Downloading the AT&T database from 'http://www.cl.cam.ac.uk/Research/DTG/attarchive/pub/data/att_faces.zip' to '/tmp/atnt_db_FSv6g4' ...
bob.bio.base@2017-05-16 16:16:23,401 -- WARNING: To avoid this, please download the database manually, extract the data and set the ATNT_DATABASE_DIRECTORY environment variable to this directory.
bob.bio.base.test.test_algorithms.test_pca ... bob.bio.base@2017-05-16 16:16:36,596 -- INFO:   -> Training LinearMachine using PCA
bob.bio.base@2017-05-16 16:16:37,152 -- INFO:     ... Keeping 5 PCA dimensions
bob.bio.base@2017-05-16 16:16:37,259 -- INFO:   -> Training LinearMachine using PCA
bob.bio.base@2017-05-16 16:16:37,309 -- INFO:     ... Keeping 140 PCA dimensions
ok
bob.bio.base.test.test_algorithms.test_lda ... bob.bio.base@2017-05-16 16:16:37,352 -- INFO:   -> Training Linear Machine using PCA
bob.bio.base@2017-05-16 16:16:37,394 -- INFO:   ... Limiting PCA subspace to 10 dimensions
bob.bio.base@2017-05-16 16:16:37,395 -- INFO:   -> Projecting training data to PCA subspace
bob.bio.base@2017-05-16 16:16:37,397 -- INFO:   -> Training Linear Machine using LDA
bob.bio.base@2017-05-16 16:16:37,455 -- INFO:   -> Training Linear Machine using PCA
bob.bio.base@2017-05-16 16:16:37,503 -- INFO:   ... Limiting PCA subspace to 132 dimensions
bob.bio.base@2017-05-16 16:16:37,503 -- INFO:   -> Projecting training data to PCA subspace
bob.bio.base@2017-05-16 16:16:37,533 -- INFO:   -> Training Linear Machine using LDA
ok
bob.bio.base.test.test_algorithms.test_distance ... ok
bob.bio.base.test.test_algorithms.test_bic ... bob.bio.base@2017-05-16 16:16:37,637 -- INFO:   -> Computing pairs
bob.bio.base@2017-05-16 16:16:37,642 -- INFO:   -> Limiting intrapersonal pairs from 450 to 100
bob.bio.base@2017-05-16 16:16:37,643 -- INFO:   -> Limiting extrapersonal pairs from 4500 to 100
bob.bio.base@2017-05-16 16:16:37,643 -- INFO:   -> Computing 100 intrapersonal results
bob.bio.base@2017-05-16 16:16:37,644 -- INFO:   -> Computing 100 extrapersonal results
bob.bio.base@2017-05-16 16:16:37,644 -- INFO:   -> Training BIC machine
bob.bio.base@2017-05-16 16:16:37,674 -- INFO:   -> Computing pairs
bob.bio.base@2017-05-16 16:16:37,674 -- INFO:   -> Limiting intrapersonal pairs from 450 to 100
bob.bio.base@2017-05-16 16:16:37,675 -- INFO:   -> Limiting extrapersonal pairs from 4500 to 100
bob.bio.base@2017-05-16 16:16:37,679 -- INFO:   -> Computing 100 intrapersonal results
bob.bio.base@2017-05-16 16:16:37,679 -- INFO:   -> Computing 100 extrapersonal results
bob.bio.base@2017-05-16 16:16:37,679 -- INFO:   -> Training BIC machine
ok
bob.bio.base.test.test_algorithms.test_plda ... bob.bio.base@2017-05-16 16:16:37,729 -- INFO:   -> Training LinearMachine using PCA 
bob.bio.base@2017-05-16 16:16:37,775 -- INFO:   -> limiting PCA subspace to 10 dimensions
bob.bio.base@2017-05-16 16:16:37,776 -- INFO:   -> Training PLDA base machine
bob.learn.em@2017-05-16 16:16:37,784 -- INFO: Iteration = 0/1
ok
bob.bio.base.test.test_algorithms.test_plda_nopca ... bob.bio.base@2017-05-16 16:16:37,836 -- INFO:   -> Training PLDA base machine
bob.learn.em@2017-05-16 16:16:37,887 -- INFO: Iteration = 0/1
ok
bob.bio.base.test.test_config_file.test_basic ... ok
bob.bio.base.test.test_config_file.test_compare_to_cmdline_basic ... ok
bob.bio.base.test.test_config_file.test_compare_to_cmdline_resources ... ok
bob.bio.base.test.test_config_file.test_compare_to_cmdline_skip ... ok
bob.bio.base.test.test_config_file.test_from_resource ... ok
bob.bio.base.test.test_config_file.test_from_module ... ok
bob.bio.base.test.test_config_file.test_order ... ok
bob.bio.base.test.test_config_file.test_order_inverse ... ok
bob.bio.base.test.test_extractor.test_linearize ... ok
bob.bio.base.test.test_filelist.test_query ... ok
bob.bio.base.test.test_filelist.test_query_protocol ... ok
bob.bio.base.test.test_filelist.test_query_dense ... ok
bob.bio.base.test.test_filelist.test_annotation ... ok
bob.bio.base.test.test_filelist.test_multiple_extensions ... ok
bob.bio.base.test.test_filelist.test_driver_api ... ok
bob.bio.base.test.test_preprocessor.test_filename ... ok
bob.bio.base.test.test_scripts.test_grid_search ... SKIP: Skipping test since gridtk is not available: No module named gridtk
bob.bio.base.test.test_scripts.test_verify_parallel ... SKIP: Skipping test since gridtk is not available: No module named gridtk
bob.bio.base.test.test_scripts.test_verify_config ... ok
bob.bio.base.test.test_scripts.test_verify_algorithm_noprojection ... ok
bob.bio.base.test.test_scripts.test_verify_resources ... ok
bob.bio.base.test.test_scripts.test_verify_commandline ... ok
bob.bio.base.test.test_scripts.test_verify_compressed ... ok
bob.bio.base.test.test_scripts.test_verify_calibrate ... ok
bob.bio.base.test.test_scripts.test_verify_fileset ... ok
bob.bio.base.test.test_scripts.test_verify_filelist ... ok
bob.bio.base.test.test_scripts.test_verify_missing ... bob.bio.base@2017-05-16 16:17:11,440 -- ERROR: There are NaN scores inside one of the score files for group dev; ZT-Norm will not work
ok
bob.bio.base.test.test_scripts.test_verify_execute_only ... Would have executed task 'preprocess' with no parameters
Would have executed task 'compute-scores' with group='dev' and score-type='A' 
Would have executed task 'compute-scores' with group='dev' and score-type='B' 
Would have executed task 'compute-scores' with group='dev' and score-type='C' 
Would have executed task 'compute-scores' with group='dev' and score-type='D' 
Would have executed task 'compute-scores' with group='dev' and score-type='Z' 
ok
bob.bio.base.test.test_scripts.test_internal_raises ... bob.bio.base@2017-05-16 16:17:11,605 -- ERROR: During the execution, an exception was raised: The option --group is an internal option and cannot be used to define experiments; did you mean to use --groups?
bob.bio.base@2017-05-16 16:17:11,637 -- ERROR: During the execution, an exception was raised: The option --model-type is an internal option and cannot be used to define experiments
bob.bio.base@2017-05-16 16:17:11,675 -- ERROR: During the execution, an exception was raised: The option --score-type is an internal option and cannot be used to define experiments
ok
bob.bio.base.test.test_scripts.test_fusion ... ok
bob.bio.base.test.test_scripts.test_evaluate ... /usr/local/anaconda2/envs/bob_py27/lib/python2.7/site-packages/matplotlib/font_manager.py:280: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
The HTER of the development set of 'no norm' is 50.000%
The HTER of the evaluation set of 'no norm' is 50.000%
The HTER of the development set of 'ZT norm' is 50.000%
The HTER of the evaluation set of 'ZT norm' is 50.000%
sh: latex: 未找到命令
ERROR
bob.bio.base.test.test_scripts.test_resources ... ok
bob.bio.base.test.test_scripts.test_collect_results ... ok
bob.bio.base.test.test_scripts.test_scripts ... ok
bob.bio.base.test.test_tools.test_file_selector ... ok
bob.bio.base.test.test_utils.test_resources ... ok
bob.bio.base.test.test_utils.test_grid ... bob.bio.base@2017-05-16 16:17:38,334 -- WARNING: Under the desired name 'demanding', there are multiple entry points defined, we return the first one: ['bob.bio.base.config.grid.demanding', 'bob.bio.spear.config.grid.demanding']
ok
bob.bio.base.test.test_utils.test_io ... ok
bob.bio.base.test.test_utils.test_sampling ... ok
bob.bio.gmm.test.test_algorithms.test_gmm ... ok
bob.bio.gmm.test.test_algorithms.test_gmm_regular ... ok
bob.bio.gmm.test.test_algorithms.test_isv ... ok
bob.bio.gmm.test.test_algorithms.test_jfa ... ok
bob.bio.gmm.test.test_algorithms.test_ivector_cosine ... ok
bob.bio.gmm.test.test_algorithms.test_ivector_plda ... ok
bob.bio.gmm.test.test_algorithms.test_ivector_lda_wccn_plda ... ok
bob.bio.gmm.test.test_scripts.test_gmm_parallel ... SKIP: Skipping test since gridtk is not available: No module named gridtk
bob.bio.gmm.test.test_scripts.test_isv_parallel ... SKIP: Skipping test since gridtk is not available: No module named gridtk
bob.bio.gmm.test.test_scripts.test_ivector_cosine_parallel ... SKIP: Skipping test since gridtk is not available: No module named gridtk
bob.bio.gmm.test.test_scripts.test_ivector_lda_wccn_plda_parallel ... SKIP: Skipping test since gridtk is not available: No module named gridtk
bob.bio.gmm.test.test_scripts.test_gmm_sequential ... ok
bob.bio.gmm.test.test_scripts.test_isv_sequential ... ok
bob.bio.gmm.test.test_scripts.test_ivector_cosine_sequential ... ok
bob.bio.gmm.test.test_scripts.test_ivector_lda_wccn_plda_sequential ... ok
bob.bio.gmm.test.test_scripts.test_internal_raises ... bob.bio.gmm@2017-05-16 16:17:57,409 -- ERROR: During the execution, an exception was raised: The option --iteration is an internal option and cannot be used to define experiments
bob.bio.gmm@2017-05-16 16:17:57,433 -- ERROR: During the execution, an exception was raised: The option --group is an internal option and cannot be used to define experiments; did you mean to use --groups?
bob.bio.gmm@2017-05-16 16:17:57,468 -- ERROR: During the execution, an exception was raised: The option --model-type is an internal option and cannot be used to define experiments
bob.bio.gmm@2017-05-16 16:17:57,504 -- ERROR: During the execution, an exception was raised: The option --score-type is an internal option and cannot be used to define experiments
bob.bio.gmm@2017-05-16 16:17:57,541 -- ERROR: During the execution, an exception was raised: The option --iteration is an internal option and cannot be used to define experiments
bob.bio.gmm@2017-05-16 16:17:57,576 -- ERROR: During the execution, an exception was raised: The option --group is an internal option and cannot be used to define experiments; did you mean to use --groups?
bob.bio.gmm@2017-05-16 16:17:57,612 -- ERROR: During the execution, an exception was raised: The option --model-type is an internal option and cannot be used to define experiments
bob.bio.gmm@2017-05-16 16:17:57,653 -- ERROR: During the execution, an exception was raised: The option --score-type is an internal option and cannot be used to define experiments
bob.bio.gmm@2017-05-16 16:17:57,678 -- ERROR: During the execution, an exception was raised: The option --iteration is an internal option and cannot be used to define experiments
bob.bio.gmm@2017-05-16 16:17:57,709 -- ERROR: During the execution, an exception was raised: The option --group is an internal option and cannot be used to define experiments; did you mean to use --groups?
bob.bio.gmm@2017-05-16 16:17:57,749 -- ERROR: During the execution, an exception was raised: The option --model-type is an internal option and cannot be used to define experiments
bob.bio.gmm@2017-05-16 16:17:57,778 -- ERROR: During the execution, an exception was raised: The option --score-type is an internal option and cannot be used to define experiments
ok
bob.bio.spear.test.test_databases.test_asvspoof_licit ... SKIP: Skipping test since the database bob.db.asvspoof seems not to be available: No module named asvspoof
bob.bio.spear.test.test_databases.test_asvspoof_spoof ... SKIP: Skipping test since the database bob.db.asvspoof seems not to be available: No module named asvspoof
bob.bio.spear.test.test_databases.test_avspoof_licit ... SKIP: Skipping test since the database bob.db.avspoof seems not to be available: No module named avspoof
bob.bio.spear.test.test_databases.test_avspoof_spoof ... SKIP: Skipping test since the database bob.db.avspoof seems not to be available: No module named avspoof
bob.bio.spear.test.test_databases.test_mobio ... SKIP: Skipping test since the database bob.db.mobio seems not to be available: No module named mobio
bob.bio.spear.test.test_databases.test_voicepa_licit ... SKIP: Skipping test since the database bob.db.voicepa seems not to be available: No module named voicepa
bob.bio.spear.test.test_databases.test_voicepa_spoof ... SKIP: Skipping test since the database bob.db.voicepa seems not to be available: No module named voicepa
bob.bio.spear.test.test_databases.test_timit ... ok
bob.bio.spear.test.test_databases.test_banca ... ok
bob.bio.spear.test.test_extractors.test_mfcc ... bob.bio.spear@2017-05-16 16:17:58,309 -- INFO: After 2 Gaussian Energy-based VAD there are 370 frames remaining over 485
ok
bob.bio.spear.test.test_extractors.test_lfcc ... bob.bio.spear@2017-05-16 16:17:58,577 -- INFO: After 2 Gaussian Energy-based VAD there are 370 frames remaining over 485
ok
bob.bio.spear.test.test_preprocessors.test_energy_2gauss ... bob.bio.spear@2017-05-16 16:17:58,845 -- INFO: After 2 Gaussian Energy-based VAD there are 370 frames remaining over 485
ok
bob.bio.spear.test.test_preprocessors.test_energy_thr ... bob.bio.spear@2017-05-16 16:17:58,900 -- INFO: After thresholded Energy-based VAD there are 165 frames remaining over 485
ok
bob.bio.spear.test.test_preprocessors.test_mod_4hz ... bob.bio.spear@2017-05-16 16:17:58,981 -- INFO: After Mod-4Hz based VAD there are 263 frames remaining over 485
ok

======================================================================
ERROR: bob.bio.base.test.test_scripts.test_evaluate
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/anaconda2/envs/bob_py27/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/usr/local/anaconda2/envs/bob_py27/lib/python2.7/site-packages/bob/bio/base/test/test_scripts.py", line 400, in test_evaluate
    main(parameters)
  File "/usr/local/anaconda2/envs/bob_py27/lib/python2.7/site-packages/bob/bio/base/script/evaluate.py", line 282, in main
    raise RuntimeError("During plotting of ROC curves, the following exception occured:\n%s\nUsually this happens when the label contains characters that LaTeX cannot parse." % e)
RuntimeError: During plotting of ROC curves, the following exception occured:
LaTeX was not able to process the following string:
'lp'
Here is the full report generated by LaTeX: 


Usually this happens when the label contains characters that LaTeX cannot parse.

----------------------------------------------------------------------
Ran 75 tests in 82.622s

FAILED (SKIP=13, errors=1)

----------------------------------------------------------------------------------------------------------------

Hi, Amir,
How can I do? Please give me some advice. Thank you.

Amir Mohammadi

unread,
May 16, 2017, 5:08:06 AM5/16/17
to bob-devel

Hi,

Your installation is working. It's ok if some of the tests are failing. (You don't have latex installed).

You can continue using the packages.

Best,
Amir


--

Manuel Günther

unread,
May 16, 2017, 3:47:45 PM5/16/17
to bob-devel
Dear Jinfang,

indeed, the installation works fine. Note, however, that you'll need to have latex installed in order to generate plots (i.e, using evaluate.py).

@amir: how difficult is it to add latex to the requirements in the CONDA installation? Is it possible at all? Could you do that, so that installing bob packages automatically installs latex?

Manuel

Amir Mohammadi

unread,
May 16, 2017, 4:26:20 PM5/16/17
to bob-devel

Hi Manuel,

Latex is very difficult to package through conda. I don't think it will be available anytime soon.

Best,
Amir


--

Jinfang Wang

unread,
May 17, 2017, 5:03:52 AM5/17/17
to bob-devel
Thanks for Amir and Manuel's guidance.

Although I have read the related functions of trainers and machines for speaker recognition carefully, I can't form a complete implementation flow until now. Could you tell me whether there is a complete example? Where can I find it? Because I have just touched Anaconda, bob.bio.spear is seemingly lost in the directory. I'm so sorry for such an ignorant question.

Again thanks.

Amir Mohammadi

unread,
May 17, 2017, 1:23:20 PM5/17/17
to bob-devel

Hi,

You can start by reading the documentation of bob.bio.base. Please let us know if you have more questions after.

Thanks,
Amir


--

Jinfang Wang

unread,
May 28, 2017, 5:24:05 AM5/28/17
to bob-devel
Hi,

I am trying to understand verify.py by spyder. But when executing the line of "from bob.bio.base.script.verify import main", "ImportError: 'No module named bob.bio.base.script.verify'" occurred. Could you give me some advice on it?

Thank you.


Amir Mohammadi

unread,
May 28, 2017, 1:02:15 PM5/28/17
to bob-devel

Hi,

You are running the script with Python from your root environment probably while bob.bio.base is installed in your bob_py27 environment.

Your problem is very basic. Try to ask a friend who has some experience working with Python to help you if you are stuck.

Best,
Amir


Manuel Günther

unread,
May 29, 2017, 1:04:53 PM5/29/17
to bob-devel
Indeed, you have to tell spyder, where the bob packages are installed. The easiest way, IMHO, would be to start spyder from the command line, i.e., after activating the conda environment:

$ conda activate bob_py27 # or whatever your conda environment is
$ spyder
<file_to_open>.py

There might be other ways, e.g., defining the PYTHONPATH=/usr/local/anaconda2/evns/bob_py27 variable inside spyder, but I have never used spyder myself, so I cannot tell you, how to do that.

Anyways, running `verify.py` inside spider might not be the best choice -- this has not been tested by us. Running it on the command line for sure works.

Manuel

Jinfang Wang

unread,
May 31, 2017, 5:06:17 AM5/31/17
to bob-devel
Hi,

Thank you for your advice about Spyder.

1) I ran databases.py for a list of known databases. But "TypeError: object.__init__() takes no parameters" occurred. I guess that there is something wrong with the contents or format of "~/.bob_bio_databases.txt". The downloaded Voxforge database is put into the directory,"/media/sf_winshare/Voxforge_bob_bio_spear".

2) I also attempted to run the command, "verify.py -d voxforge -p energy-2gauss -e mfcc-60 -a gmm-voxforge -s ubm_gmm --groups {dev,eval}" but without success.

Could you give me some advice?

Again thanks.

-------------------------------------------------------------

(bob_py27) jfw@hunfoo:/usr/local/anaconda2/envs/bob_py27/bin$ cat ~/.bob_bio_databases.txt
[YOUR_ATNT_DIRECTORY] = /media/sf_winshare/Voxforge_bob_bio_spear

(bob_py27) jfw@hunfoo:/usr/local/anaconda2/envs/bob_py27/bin$ databases.py
Traceback (most recent call last):
  File "/usr/local/anaconda2/envs/bob_py27/bin/databases.py", line 6, in <module>
    sys.exit(bob.bio.base.script.resources.databases())
  File "/usr/local/anaconda2/envs/bob_py27/lib/python2.7/site-packages/bob/bio/base/script/resources.py", line 66, in databases
    databases = bob.bio.base.utils.resources.database_directories(replacements=args.database_directories_file)
  File "/usr/local/anaconda2/envs/bob_py27/lib/python2.7/site-packages/bob/bio/base/utils/resources.py", line 284, in database_directories
    db = load_resource(entry_point.name, 'database')
  File "/usr/local/anaconda2/envs/bob_py27/lib/python2.7/site-packages/bob/bio/base/utils/resources.py", line 180, in load_resource
    return entry_points[0].load()
  File "/usr/local/anaconda2/envs/bob_py27/lib/python2.7/site-packages/setuptools-27.2.0-py2.7.egg/pkg_resources/__init__.py", line 2258, in load
  File "/usr/local/anaconda2/envs/bob_py27/lib/python2.7/site-packages/setuptools-27.2.0-py2.7.egg/pkg_resources/__init__.py", line 2264, in resolve
  File "/usr/local/anaconda2/envs/bob_py27/lib/python2.7/site-packages/bob/bio/spear/config/database/asvspoof.py", line 15, in <module>
    training_depends_on_protocol=True,
  File "/usr/local/anaconda2/envs/bob_py27/lib/python2.7/site-packages/bob/bio/spear/database/asvspoof.py", line 35, in __init__
    super(ASVspoofBioDatabase, self).__init__(name='asvspoof', **kwargs)
  File "/usr/local/anaconda2/envs/bob_py27/lib/python2.7/site-packages/bob/bio/base/database/database.py", line 93, in __init__
    original_extension=original_extension)
TypeError: object.__init__() takes no parameters

(bob_py27) jfw@hunfoo:/usr/local/anaconda2/envs/bob_py27/bin$ verify.py -d voxforge -p energy-2gauss -e mfcc-60 -a gmm-voxforge -s ubm_gmm --groups {dev,eval}
bob.bio.base@2017-05-31 16:11:02,332 -- ERROR: During the execution, an exception was raised: object.__init__() takes no parameters
Traceback (most recent call last):
  File "/usr/local/anaconda2/envs/bob_py27/bin/verify.py", line 6, in <module>
    sys.exit(bob.bio.base.script.verify.main())
  File "/usr/local/anaconda2/envs/bob_py27/lib/python2.7/site-packages/bob/bio/base/script/verify.py", line 451, in main
    args = parse_arguments(command_line_parameters)
  File "/usr/local/anaconda2/envs/bob_py27/lib/python2.7/site-packages/bob/bio/base/script/verify.py", line 34, in parse_arguments
    skips = ['preprocessing', 'extractor-training', 'extraction', 'projector-training', 'projection', 'enroller-training', 'enrollment', 'score-computation', 'concatenation', 'calibration'])
  File "/usr/local/anaconda2/envs/bob_py27/lib/python2.7/site-packages/bob/bio/base/tools/command_line.py", line 422, in initialize
    args = parse_config_file(parsers, args, args_dictionary, keywords, skips)
  File "/usr/local/anaconda2/envs/bob_py27/lib/python2.7/site-packages/bob/bio/base/tools/command_line.py", line 291, in parse_config_file
    parser.get_default(keyword))
  File "/usr/local/anaconda2/envs/bob_py27/lib/python2.7/site-packages/bob/bio/base/tools/command_line.py", line 239, in take_from_config_or_command_line
    preferred_package=args.preferred_package))
  File "/usr/local/anaconda2/envs/bob_py27/lib/python2.7/site-packages/bob/bio/base/utils/resources.py", line 180, in load_resource
    return entry_points[0].load()
  File "/usr/local/anaconda2/envs/bob_py27/lib/python2.7/site-packages/setuptools-27.2.0-py2.7.egg/pkg_resources/__init__.py", line 2258, in load
  File "/usr/local/anaconda2/envs/bob_py27/lib/python2.7/site-packages/setuptools-27.2.0-py2.7.egg/pkg_resources/__init__.py", line 2264, in resolve
  File "/usr/local/anaconda2/envs/bob_py27/lib/python2.7/site-packages/bob/db/voxforge/config.py", line 9, in <module>
    original_extension=".wav",
  File "/usr/local/anaconda2/envs/bob_py27/lib/python2.7/site-packages/bob/db/voxforge/query.py", line 35, in __init__
    original_extension=original_extension)
  File "/usr/local/anaconda2/envs/bob_py27/lib/python2.7/site-packages/bob/bio/base/database/filelist/query.py", line 150, in __init__
    **kwargs)
  File "/usr/local/anaconda2/envs/bob_py27/lib/python2.7/site-packages/bob/bio/base/database/database.py", line 579, in __init__
    super(ZTBioDatabase, self).__init__(name, **kwargs)
  File "/usr/local/anaconda2/envs/bob_py27/lib/python2.7/site-packages/bob/bio/base/database/database.py", line 93, in __init__
    original_extension=original_extension)
TypeError: object.__init__() takes no parameters

Amir Mohammadi

unread,
May 31, 2017, 5:19:54 AM5/31/17
to bob-devel
Hi your versions seem to be incompatible.
Could you please update your bob packages?

conda remove bob  # the bob package will stop you from upgrading core packages.
conda update --all

This is Pavel's fault. He only released one core package "bob.db.base" and then released bob.bio.base and bob.bio.spear which depended on that package. He should have released a new version of bob instead.
We have measures to prevent people from doing this but he even silently disabled some tests: https://gitlab.idiap.ch/bob/bob.bio.spear/issues/26 to make his release happen.
Now, people will install the bob package  which pins down bob.db.base to an old version but will install the latest bob.bio.base and bob.bio.spear which are incompatible with an old version of bob.db.base.

I expect every new installation will be broken until we have a new release of Bob.
For the time being you can use the commands above for a workaround.

Best,
Amir

André Anjos

unread,
May 31, 2017, 5:44:56 AM5/31/17
to bob-...@googlegroups.com
Hello,

We have one issue/MR holding back release 2.7.x of Bob:


Once that is fixed we can proceed with the release. Patches are accepted at this point

Best, A

--
-- You received this message because you are subscribed to the Google Groups bob-devel group. To post to this group, send email to bob-...@googlegroups.com. To unsubscribe from this group, send email to bob-devel+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/bob-devel or directly the project website at http://idiap.github.com/bob/

---
You received this message because you are subscribed to the Google Groups "bob-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bob-devel+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
-- You received this message because you are subscribed to the Google Groups bob-devel group. To post to this group, send email to bob-...@googlegroups.com. To unsubscribe from this group, send email to bob-devel+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/bob-devel or directly the project website at http://idiap.github.com/bob/

---
You received this message because you are subscribed to the Google Groups "bob-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bob-devel+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Dr. André Anjos
Idiap Research Institute
Centre du Parc - rue Marconi 19
CH-1920 Martigny, Suisse
Phone: +41 27 721 7763
Fax: +41 27 721 7712
http://andreanjos.org

Jinfang Wang

unread,
Jun 1, 2017, 5:43:26 AM6/1/17
to bob-devel
Hi, Amir,

Your advice is the right solution, but a new issue comes. I have retrieved the similar problems and answers here and found some files might be missing. If my guess is right, could you give me some advice on the contents and format of the related files?

Thanks,

Jinfang

------------------------------------------------------------------------------------------

(bob_py27) root@hunfoo:/home/jfw# verify.py -d voxforge -p energy-2gauss -e mfcc-60 -a gmm-voxforge -s ubm_gmm --groups {dev,eval}
bob.bio.base@2017-06-01 17:22:30,618 -- ERROR: During the execution, an exception was raised: [Errno 2] No such file or directory: '[YOUR_VOXFORGE_DIRECTORY]/ColinBeckingham-20091029-hfv/wav/a0001.wav'
Traceback (most recent call last):
  File "/usr/local/anaconda2/envs/bob_py27/bin/verify.py", line 6, in <module> sys.exit(bob.bio.base.script.verify.main())
  File "/usr/local/anaconda2/envs/bob_py27/lib/python2.7/site-packages/bob/bio/base/script/verify.py", line 454, in main verify(args, command_line_parameters)
  File "/usr/local/anaconda2/envs/bob_py27/lib/python2.7/site-packages/bob/bio/base/script/verify.py", line 434, in verify if not execute(args):
  File "/usr/local/anaconda2/envs/bob_py27/lib/python2.7/site-packages/bob/bio/base/script/verify.py", line 264, in execute force = args.force)
  File "/usr/local/anaconda2/envs/bob_py27/lib/python2.7/site-packages/bob/bio/base/tools/preprocessor.py", line 71, in preprocess
    data = preprocessor.read_original_data(file_object, original_directory, original_extension)
  File "/usr/local/anaconda2/envs/bob_py27/lib/python2.7/site-packages/bob/bio/base/utils/io.py", line 79, in read_original_data return biofile.load(directory, extension)
  File "/usr/local/anaconda2/envs/bob_py27/lib/python2.7/site-packages/bob/bio/spear/database/database.py", line 20, in load
    rate, audio = scipy.io.wavfile.read(self.make_path(directory, extension))
  File "/usr/local/anaconda2/envs/bob_py27/lib/python2.7/site-packages/scipy/io/wavfile.py", line 233, in read fid = open(filename, 'rb')
IOError: [Errno 2] No such file or directory: '[YOUR_VOXFORGE_DIRECTORY]/ColinBeckingham-20091029-hfv/wav/a0001.wav'

Amir Mohammadi

unread,
Jun 1, 2017, 6:59:18 AM6/1/17
to bob-devel

Hi please read the docs, here

http://pythonhosted.org/bob.bio.base/installation.html#databases

Thanks,
Amir


--
-- You received this message because you are subscribed to the Google Groups bob-devel group. To post to this group, send email to bob-...@googlegroups.com. To unsubscribe from this group, send email to bob-devel+...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/bob-devel or directly the project website at http://idiap.github.com/bob/

---
You received this message because you are subscribed to the Google Groups "bob-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bob-devel+...@googlegroups.com.

Jinfang Wang

unread,
Jun 2, 2017, 5:08:25 AM6/2/17
to bob-devel
Hi, Amir and Manuel,

During Spyder debugging, the two errors always come. Could you tell me which IDE you are using for Bob? Which version? And the downloaded address?

Thank you.

-----------------------------------------------------

bob.bio.base@2017-06-02 16:50:09,917 -- ERROR: Could not write the experimental setup into file 'results/ubm_gmm/None/Experiment.info'

bob.bio.base@2017-06-02 16:44:59,744 -- ERROR: During the execution, an exception was raised: Invalid group '{dev,eval}'. Valid values are ['dev', 'eval', 'world', 'optional_world_1', 'optional_world_2'], or lists/tuples of those

André Anjos

unread,
Jun 2, 2017, 5:11:31 AM6/2/17
to bob-...@googlegroups.com

On Fri, Jun 2, 2017 at 11:08 AM, Jinfang Wang <wangj...@gmail.com> wrote:
During Spyder debugging, the two errors always come. Could you tell me which IDE you are using for Bob? Which version? And the downloaded address?

I'm using vim - it works very well: http://www.vim.org
I've been also told that neovim is doing a decent job: https://neovim.io

Best, André

Manuel Günther

unread,
Jun 2, 2017, 11:21:33 PM6/2/17
to bob-devel
I am not using any IDE. For me, a normal text editor (gedit for example) and the command line is sufficient. I don't get code auto-completion in my editor, though.

@andre: proposing vi to some-one who is using Spyder is IMHO a bit strange. But I don't want to go into that political discussion once again ;-)

Manuel
Message has been deleted

Jinfang Wang

unread,
Jun 3, 2017, 4:26:18 AM6/3/17
to bob-devel
Hi, Amir,

I am reinstalling anaconda2 and is more familiar with python 2.7 than python 3. Could you tell me how to change the related commands of the new version Bob in the following updated "Installation Instructions" (https://pythonhosted.org/bob/install.html)? 

---------------------------------------------
$ conda update -n root conda
$ conda config --set show_channel_urls True
$ conda config --add channels defaults
$ conda config --add channels https://www.idiap.ch/software/bob/conda

$ conda create -n bob_py3 --override-channels \
  -c defaults \
  python=3 bob
$ source activate bob_py3
$ python -c 'import bob.io.base'
---------------------------------------------

I hope to continue to install and use Bob with python 2.7. Also 4 packages, bob.learn.em, bob.bio.gmm, bob.bio. spear, bob.bio.base.

Thank you.

Amir Mohammadi

unread,
Jun 3, 2017, 5:08:22 AM6/3/17
to bob-devel

Hi,

Replace python=3 with python=2

Best,
Amir


--

Jinfang Wang

unread,
Jun 3, 2017, 5:09:12 AM6/3/17
to bob-devel
Thank André and Manuel.

Both your advice is very important for a newcomer of python. In fact, I can't express my wondering exactly. I prefer an IDE (It's not important by itself) equipped with good debugging capabilities. You must know that we are accustomed to manipulating matlab for a long time, especially its debugger.

Jinfang Wang

unread,
Jun 4, 2017, 5:28:51 AM6/4/17
to bob-devel
Hi, Amir,

This the 2nd installation and testing for Bob. Is the installation working again?

Thank you.

----------------------------------------------------------------------------------------------------------------
(bob_py27) jfw@hunfoo:~$ nosetests -sv bob.bio
bob.bio.base@2017-06-04 16:59:26,961 -- WARNING: Downloading the AT&T database from 'http://www.cl.cam.ac.uk/Research/DTG/attarchive/pub/data/att_faces.zip' to '/tmp/atnt_db_tYvgMN' ...
bob.bio.base@2017-06-04 16:59:26,962 -- WARNING: To avoid this, please download the database manually, extract the data and set the ATNT_DATABASE_DIRECTORY environment variable to this directory.
bob.bio.base.test.test_algorithms.test_pca ... bob.bio.base@2017-06-04 16:59:46,564 -- INFO:   -> Training LinearMachine using PCA
bob.bio.base@2017-06-04 16:59:47,090 -- INFO:     ... Keeping 5 PCA dimensions
bob.bio.base@2017-06-04 16:59:47,157 -- INFO:   -> Training LinearMachine using PCA
bob.bio.base@2017-06-04 16:59:47,201 -- INFO:     ... Keeping 140 PCA dimensions
ok
bob.bio.base.test.test_algorithms.test_lda ... bob.bio.base@2017-06-04 16:59:47,249 -- INFO:   -> Training Linear Machine using PCA
bob.bio.base@2017-06-04 16:59:47,306 -- INFO:   ... Limiting PCA subspace to 10 dimensions
bob.bio.base@2017-06-04 16:59:47,307 -- INFO:   -> Projecting training data to PCA subspace
bob.bio.base@2017-06-04 16:59:47,309 -- INFO:   -> Training Linear Machine using LDA
bob.bio.base@2017-06-04 16:59:47,355 -- INFO:   -> Training Linear Machine using PCA
bob.bio.base@2017-06-04 16:59:47,406 -- INFO:   ... Limiting PCA subspace to 132 dimensions
bob.bio.base@2017-06-04 16:59:47,413 -- INFO:   -> Projecting training data to PCA subspace
bob.bio.base@2017-06-04 16:59:47,453 -- INFO:   -> Training Linear Machine using LDA
ok
bob.bio.base.test.test_algorithms.test_distance ... ok
bob.bio.base.test.test_algorithms.test_bic ... bob.bio.base@2017-06-04 16:59:47,524 -- INFO:   -> Computing pairs
bob.bio.base@2017-06-04 16:59:47,527 -- INFO:   -> Limiting intrapersonal pairs from 450 to 100
bob.bio.base@2017-06-04 16:59:47,529 -- INFO:   -> Limiting extrapersonal pairs from 4500 to 100
bob.bio.base@2017-06-04 16:59:47,529 -- INFO:   -> Computing 100 intrapersonal results
bob.bio.base@2017-06-04 16:59:47,533 -- INFO:   -> Computing 100 extrapersonal results
bob.bio.base@2017-06-04 16:59:47,534 -- INFO:   -> Training BIC machine
bob.bio.base@2017-06-04 16:59:47,561 -- INFO:   -> Computing pairs
bob.bio.base@2017-06-04 16:59:47,562 -- INFO:   -> Limiting intrapersonal pairs from 450 to 100
bob.bio.base@2017-06-04 16:59:47,565 -- INFO:   -> Limiting extrapersonal pairs from 4500 to 100
bob.bio.base@2017-06-04 16:59:47,566 -- INFO:   -> Computing 100 intrapersonal results
bob.bio.base@2017-06-04 16:59:47,566 -- INFO:   -> Computing 100 extrapersonal results
bob.bio.base@2017-06-04 16:59:47,567 -- INFO:   -> Training BIC machine
ok
bob.bio.base.test.test_algorithms.test_plda ... bob.bio.base@2017-06-04 16:59:47,604 -- INFO:   -> Training LinearMachine using PCA 
bob.bio.base@2017-06-04 16:59:47,653 -- INFO:   -> limiting PCA subspace to 10 dimensions
bob.bio.base@2017-06-04 16:59:47,655 -- INFO:   -> Training PLDA base machine
bob.learn.em@2017-06-04 16:59:47,665 -- INFO: Iteration = 0/1
ok
bob.bio.base.test.test_algorithms.test_plda_nopca ... bob.bio.base@2017-06-04 16:59:47,712 -- INFO:   -> Training PLDA base machine
bob.learn.em@2017-06-04 16:59:47,763 -- INFO: Iteration = 0/1
ok
bob.bio.base.test.test_config_file.test_basic ... ok
bob.bio.base.test.test_config_file.test_compare_to_cmdline_basic ... ok
bob.bio.base.test.test_config_file.test_compare_to_cmdline_resources ... ok
bob.bio.base.test.test_config_file.test_compare_to_cmdline_skip ... ok
bob.bio.base.test.test_config_file.test_from_resource ... ok
bob.bio.base.test.test_config_file.test_from_module ... ok
bob.bio.base.test.test_config_file.test_order ... ok
bob.bio.base.test.test_config_file.test_order_inverse ... ok
bob.bio.base.test.test_extractor.test_linearize ... ok
bob.bio.base.test.test_filelist.test_query ... ok
bob.bio.base.test.test_filelist.test_query_protocol ... ok
bob.bio.base.test.test_filelist.test_query_dense ... ok
bob.bio.base.test.test_filelist.test_annotation ... ok
bob.bio.base.test.test_filelist.test_multiple_extensions ... ok
bob.bio.base.test.test_filelist.test_driver_api ... ok
bob.bio.base.test.test_preprocessor.test_filename ... ok
bob.bio.base.test.test_scripts.test_grid_search ... ok
bob.bio.base.test.test_scripts.test_verify_parallel ... ok
bob.bio.base.test.test_scripts.test_verify_config ... ok
bob.bio.base.test.test_scripts.test_verify_algorithm_noprojection ... ok
bob.bio.base.test.test_scripts.test_verify_resources ... ok
bob.bio.base.test.test_scripts.test_verify_commandline ... ok
bob.bio.base.test.test_scripts.test_verify_compressed ... ok
bob.bio.base.test.test_scripts.test_verify_calibrate ... ok
bob.bio.base.test.test_scripts.test_verify_fileset ... ok
bob.bio.base.test.test_scripts.test_verify_filelist ... ok
bob.bio.base.test.test_scripts.test_verify_missing ... bob.bio.base@2017-06-04 17:00:47,419 -- ERROR: There are NaN scores inside one of the score files for group dev; ZT-Norm will not work
ok
bob.bio.base.test.test_scripts.test_verify_execute_only ... Would have executed task 'preprocess' with no parameters
Would have executed task 'compute-scores' with group='dev' and score-type='A' 
Would have executed task 'compute-scores' with group='dev' and score-type='B' 
Would have executed task 'compute-scores' with group='dev' and score-type='C' 
Would have executed task 'compute-scores' with group='dev' and score-type='D' 
Would have executed task 'compute-scores' with group='dev' and score-type='Z' 
ok
bob.bio.base.test.test_scripts.test_internal_raises ... bob.bio.base@2017-06-04 17:00:47,628 -- ERROR: During the execution, an exception was raised: The option --group is an internal option and cannot be used to define experiments; did you mean to use --groups?
bob.bio.base@2017-06-04 17:00:47,664 -- ERROR: During the execution, an exception was raised: The option --model-type is an internal option and cannot be used to define experiments
bob.bio.base@2017-06-04 17:00:47,710 -- ERROR: During the execution, an exception was raised: The option --score-type is an internal option and cannot be used to define experiments
ok
bob.bio.base.test.test_scripts.test_fusion ... ok
bob.bio.base.test.test_scripts.test_evaluate ... The HTER of the development set of 'no norm' is 50.000%
The HTER of the evaluation set of 'no norm' is 50.000%
The HTER of the development set of 'ZT norm' is 50.000%
The HTER of the evaluation set of 'ZT norm' is 50.000%
sh: latex: 未找到命令
ERROR
bob.bio.base.test.test_scripts.test_resources ... ok
bob.bio.base.test.test_scripts.test_collect_results ... ok
bob.bio.base.test.test_scripts.test_scripts ... ok
bob.bio.base.test.test_tools.test_file_selector ... ok
bob.bio.base.test.test_utils.test_resources ... ok
bob.bio.base.test.test_utils.test_grid ... bob.bio.base@2017-06-04 17:00:49,225 -- WARNING: Under the desired name 'demanding', there are multiple entry points defined, we return the first one: ['bob.bio.base.config.grid.demanding', 'bob.bio.spear.config.grid.demanding']
ok
bob.bio.base.test.test_utils.test_io ... ok
bob.bio.base.test.test_utils.test_sampling ... ok
bob.bio.gmm.test.test_algorithms.test_gmm ... ok
bob.bio.gmm.test.test_algorithms.test_gmm_regular ... ok
bob.bio.gmm.test.test_algorithms.test_isv ... ok
bob.bio.gmm.test.test_algorithms.test_jfa ... ok
bob.bio.gmm.test.test_algorithms.test_ivector_cosine ... ok
bob.bio.gmm.test.test_algorithms.test_ivector_plda ... ok
bob.bio.gmm.test.test_algorithms.test_ivector_lda_wccn_plda ... ok
bob.bio.gmm.test.test_scripts.test_gmm_parallel ... ok
bob.bio.gmm.test.test_scripts.test_isv_parallel ... ok
bob.bio.gmm.test.test_scripts.test_ivector_cosine_parallel ... ok
bob.bio.gmm.test.test_scripts.test_ivector_lda_wccn_plda_parallel ... ok
bob.bio.gmm.test.test_scripts.test_gmm_sequential ... ok
bob.bio.gmm.test.test_scripts.test_isv_sequential ... ok
bob.bio.gmm.test.test_scripts.test_ivector_cosine_sequential ... ok
bob.bio.gmm.test.test_scripts.test_ivector_lda_wccn_plda_sequential ... ok
bob.bio.gmm.test.test_scripts.test_internal_raises ... bob.bio.gmm@2017-06-04 17:04:30,959 -- ERROR: During the execution, an exception was raised: The option --iteration is an internal option and cannot be used to define experiments
bob.bio.gmm@2017-06-04 17:04:30,988 -- ERROR: During the execution, an exception was raised: The option --group is an internal option and cannot be used to define experiments; did you mean to use --groups?
bob.bio.gmm@2017-06-04 17:04:31,023 -- ERROR: During the execution, an exception was raised: The option --model-type is an internal option and cannot be used to define experiments
bob.bio.gmm@2017-06-04 17:04:31,060 -- ERROR: During the execution, an exception was raised: The option --score-type is an internal option and cannot be used to define experiments
bob.bio.gmm@2017-06-04 17:04:31,102 -- ERROR: During the execution, an exception was raised: The option --iteration is an internal option and cannot be used to define experiments
bob.bio.gmm@2017-06-04 17:04:31,146 -- ERROR: During the execution, an exception was raised: The option --group is an internal option and cannot be used to define experiments; did you mean to use --groups?
bob.bio.gmm@2017-06-04 17:04:31,188 -- ERROR: During the execution, an exception was raised: The option --model-type is an internal option and cannot be used to define experiments
bob.bio.gmm@2017-06-04 17:04:31,225 -- ERROR: During the execution, an exception was raised: The option --score-type is an internal option and cannot be used to define experiments
bob.bio.gmm@2017-06-04 17:04:31,269 -- ERROR: During the execution, an exception was raised: The option --iteration is an internal option and cannot be used to define experiments
bob.bio.gmm@2017-06-04 17:04:31,295 -- ERROR: During the execution, an exception was raised: The option --group is an internal option and cannot be used to define experiments; did you mean to use --groups?
bob.bio.gmm@2017-06-04 17:04:31,342 -- ERROR: During the execution, an exception was raised: The option --model-type is an internal option and cannot be used to define experiments
bob.bio.gmm@2017-06-04 17:04:31,370 -- ERROR: During the execution, an exception was raised: The option --score-type is an internal option and cannot be used to define experiments
ok
bob.bio.spear.test.test_databases.test_asvspoof_licit ... SKIP: Skipping test since the database bob.db.asvspoof seems not to be available: No module named asvspoof
bob.bio.spear.test.test_databases.test_asvspoof_spoof ... SKIP: Skipping test since the database bob.db.asvspoof seems not to be available: No module named asvspoof
bob.bio.spear.test.test_databases.test_avspoof_licit ... SKIP: Skipping test since the database bob.db.avspoof seems not to be available: No module named avspoof
bob.bio.spear.test.test_databases.test_avspoof_spoof ... SKIP: Skipping test since the database bob.db.avspoof seems not to be available: No module named avspoof
bob.bio.spear.test.test_databases.test_mobio ... SKIP: Skipping test since the database bob.db.mobio seems not to be available: No module named mobio
bob.bio.spear.test.test_databases.test_voicepa_licit ... SKIP: Skipping test since the database bob.db.voicepa seems not to be available: No module named voicepa
bob.bio.spear.test.test_databases.test_voicepa_spoof ... SKIP: Skipping test since the database bob.db.voicepa seems not to be available: No module named voicepa
bob.bio.spear.test.test_databases.test_timit ... ok
bob.bio.spear.test.test_extractors.test_mfcc ... bob.bio.spear@2017-06-04 17:04:32,104 -- INFO: After 2 Gaussian Energy-based VAD there are 370 frames remaining over 485
ok
bob.bio.spear.test.test_extractors.test_lfcc ... bob.bio.spear@2017-06-04 17:04:32,381 -- INFO: After 2 Gaussian Energy-based VAD there are 370 frames remaining over 485
ok
bob.bio.spear.test.test_preprocessors.test_energy_2gauss ... bob.bio.spear@2017-06-04 17:04:32,679 -- INFO: After 2 Gaussian Energy-based VAD there are 370 frames remaining over 485
ok
bob.bio.spear.test.test_preprocessors.test_energy_thr ... bob.bio.spear@2017-06-04 17:04:32,717 -- INFO: After thresholded Energy-based VAD there are 165 frames remaining over 485
ok
bob.bio.spear.test.test_preprocessors.test_mod_4hz ... bob.bio.spear@2017-06-04 17:04:32,794 -- INFO: After Mod-4Hz based VAD there are 263 frames remaining over 485
ok

======================================================================
ERROR: bob.bio.base.test.test_scripts.test_evaluate
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jfw/anaconda2/envs/bob_py27/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/jfw/anaconda2/envs/bob_py27/lib/python2.7/site-packages/bob/bio/base/test/test_scripts.py", line 400, in test_evaluate
    main(parameters)
  File "/home/jfw/anaconda2/envs/bob_py27/lib/python2.7/site-packages/bob/bio/base/script/evaluate.py", line 282, in main
    raise RuntimeError("During plotting of ROC curves, the following exception occured:\n%s\nUsually this happens when the label contains characters that LaTeX cannot parse." % e)
RuntimeError: During plotting of ROC curves, the following exception occured:
LaTeX was not able to process the following string:
'lp'
Here is the full report generated by LaTeX: 


Usually this happens when the label contains characters that LaTeX cannot parse.

----------------------------------------------------------------------
Ran 74 tests in 286.313s

FAILED (SKIP=7, errors=1)

Jinfang Wang

unread,
Jun 4, 2017, 11:18:22 PM6/4/17
to bob-devel
Hi,

When running databases.py, no Voxforge is registered. When running "verify.py -d voxforge -p energy-2gauss -e mfcc-60 -a gmm-voxforge -s ubm_gmm --groups {dev,eval}", the error happens. I guess the variable, [YOUR_VOXFORGE_DIRECTORY], might be not right. Could you give me some solutions?

Thank you.

Jinfang

------------------------------------------------------------------------------------------

(bob_py27) jfw@hunfoo:~$ cat .bob_bio_databases.txt
[YOUR_VOXFORGE_DIRECTORY] = /media/sf_winshare/Voxforge_bob_bio_spear

(bob_py27) jfw@hunfoo:~$ databases.py

timit:
Original data: [YOUR_TIMIT_WAV_DIRECTORY]

(bob_py27) jfw@hunfoo:~$ verify.py -d voxforge -p energy-2gauss -e mfcc-60 -a gmm-voxforge -s ubm_gmm --groups {dev,eval}
bob.bio.base@2017-06-05 10:59:45,054 -- ERROR: During the execution, an exception was raised: The given command line option 'voxforge' is neither a resource for a 'database', nor an existing configuration file, nor could be interpreted as a command (error: name 'voxforge' is not defined)
Traceback (most recent call last):
  File "/home/jfw/anaconda2/envs/bob_py27/bin/verify.py", line 6, in <module>
    sys.exit(bob.bio.base.script.verify.main())
  File "/home/jfw/anaconda2/envs/bob_py27/lib/python2.7/site-packages/bob/bio/base/script/verify.py", line 451, in main
    args = parse_arguments(command_line_parameters)
  File "/home/jfw/anaconda2/envs/bob_py27/lib/python2.7/site-packages/bob/bio/base/script/verify.py", line 34, in parse_arguments
    skips = ['preprocessing', 'extractor-training', 'extraction', 'projector-training', 'projection', 'enroller-training', 'enrollment', 'score-computation', 'concatenation', 'calibration'])
  File "/home/jfw/anaconda2/envs/bob_py27/lib/python2.7/site-packages/bob/bio/base/tools/command_line.py", line 422, in initialize
    args = parse_config_file(parsers, args, args_dictionary, keywords, skips)
  File "/home/jfw/anaconda2/envs/bob_py27/lib/python2.7/site-packages/bob/bio/base/tools/command_line.py", line 291, in parse_config_file
    parser.get_default(keyword))
  File "/home/jfw/anaconda2/envs/bob_py27/lib/python2.7/site-packages/bob/bio/base/tools/command_line.py", line 239, in take_from_config_or_command_line
    preferred_package=args.preferred_package))
  File "/home/jfw/anaconda2/envs/bob_py27/lib/python2.7/site-packages/bob/bio/base/utils/resources.py", line 219, in load_resource
    raise ImportError("The given command line option '%s' is neither a resource for a '%s', nor an existing configuration file, nor could be interpreted as a command (error: %s)"%(resource, keyword, str(e)))
ImportError: The given command line option 'voxforge' is neither a resource for a 'database', nor an existing configuration file, nor could be interpreted as a command (error: name 'voxforge' is not defined)

Manuel Günther

unread,
Jun 5, 2017, 11:26:35 AM6/5/17
to bob-devel
This looks like the voxforge database is not registered under the name "voxforge". Could you please run 
resources.py --types database
to see, which databases are registered as resources?

Manuel

Jinfang Wang

unread,
Jun 5, 2017, 11:16:53 PM6/5/17
to bob-devel
Hi, Manuel,

How to solve the issue? I can't find the related commands.

Thank you.

------------------------------------------------

(bob_py27) jfw@hunfoo:~$ resources.py --types database

List of registered databases:

- bob.bio.spear 3.1.0 @ /home/jfw/anaconda2/envs/bob_py27/lib/python2.7/site-packages: 
  + asvspoof-licit     --> bob.bio.spear.config.database.asvspoof: database_licit
  + asvspoof-spoof     --> bob.bio.spear.config.database.asvspoof: database_spoof
  + asvspoof2017-licit --> bob.bio.spear.config.database.asvspoof2017: database_licit
  + asvspoof2017-spoof --> bob.bio.spear.config.database.asvspoof2017: database_spoof
  + avspoof-licit      --> bob.bio.spear.config.database.avspoof: database_licit
  + avspoof-spoof      --> bob.bio.spear.config.database.avspoof: database_spoof
  + mobio-audio-female --> bob.bio.spear.config.database.mobio_audio_female: database
  + mobio-audio-male   --> bob.bio.spear.config.database.mobio_audio_male: database
  + timit              --> bob.bio.spear.config.database.timit: database
  + voicepa-licit      --> bob.bio.spear.config.database.voicepa: database_licit
  + voicepa-spoof      --> bob.bio.spear.config.database.voicepa: database_spoof

Manuel Günther

unread,
Jun 6, 2017, 1:44:04 PM6/6/17
to bob-devel
Indeed, the voxforge dataset has been removed, with this commit: https://gitlab.idiap.ch/bob/bob.bio.spear/commit/1124460ac441ed4d4b6a252533ef9f78b03e92b8 by Amir.

@Amir, could you please have a look at this? Why was the voxforge dataset removed?

Manuel

Amir Mohammadi

unread,
Jun 6, 2017, 3:50:51 PM6/6/17
to bob-devel
You just need to install bob.db.voxforge if you want to use it.

conda install bob.db.voxforge

Best,
Amir

--

Jinfang Wang

unread,
Jun 7, 2017, 3:51:29 AM6/7/17
to bob-devel
Hi,

In the "speech" databases commonly used for recognition or verification experiments in IDIAP, which databases are suitable for evaluating the performance of the channel compensation techniques to the greatest extent? For example, Voxforge or any others? Hope that the databases are free. I know that the databases of NIST SRE 2012 are more expensive.

Thank you.

Jinfang

Pavel Korshunov

unread,
Jun 7, 2017, 4:12:13 AM6/7/17
to bob-...@googlegroups.com
Hi,

We do not have that many databases for speaker verification. Voxforge is not a serious database that should be used in research. It is more for demonstration of bob.bio.spear capabilities. 

You can look into MOBIO database (audio part): https://www.idiap.ch/dataset/mobio
And you can look into AVspoof database as well: https://www.idiap.ch/dataset/avspoof 
Although it was created for presentation attack detection, part of it (genuine samples) can be used in verification experiments.

You can always create Bob's database interface for any other database you like. It is especially easy to do by using filelists (as an example, see bob.db.voxforge package and here: http://pythonhosted.org/bob.bio.base/filelist-guide.html for the formats of the filelists). But in a nutshell, you can create a new database from the existing file lists in the required format following this example:

import bob.bio.base
from bob.bio.spear.database import AudioBioFile

class MyBeautyDB(bob.bio.base.database.FileListBioDatabase):
  """Wrapper class for MyBeautyDB speaker database.
  """

  def __init__(self, original_directory="[MyBeautyDB_DATA_DIRECTORY]", original_extension=".wav"):
    # call base class constructor
    from pkg_resources import resource_filename
    folder = resource_filename(__name__, '../folder_filelists')
    super(MyBeautyDB, self).__init__(folder, 'db_name', bio_file_class=AudioBioFile,
                                   original_directory=original_directory,
                                   original_extension=original_extension)

database = MyBeautyDB()

Now, you can use 'database' object inside your configuration scripts that you can pass to verify.py or train.py (or train_gmm.py, train_isv.py, etc) of bob.bio.spear.

Best,
Pavel


--
-- You received this message because you are subscribed to the Google Groups bob-devel group. To post to this group, send email to bob-...@googlegroups.com. To unsubscribe from this group, send email to bob-devel+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/bob-devel or directly the project website at http://idiap.github.com/bob/

---
You received this message because you are subscribed to the Google Groups "bob-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bob-devel+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Dr. Pavel Korshunov
Biometric group
Idiap Research Institute
Rue Marconi 19
CH - 1920 Martigny
Switzerland

Room: 207

Jinfang Wang

unread,
Jun 8, 2017, 5:11:15 AM6/8/17
to bob-devel
Hi,

1.When computing the value HTER of the evaluation set, is it required that the optional arguments, "--dev-files DEV_FILES" must be given? Could you explain why?
------------------------------------------------------
(bob_py27) jfw@hunfoo:~/analyseBob/command1/results/ubm_gmm/None/nonorm$ evaluate.py --eval-files /home/jfw/analyseBob/command1/results/ubm_gmm/None/nonorm/scores-eval --legends voxforge --criterion HTER -vv
usage: evaluate.py [-h] -d DEV_FILES [DEV_FILES ...]
                   [-e EVAL_FILES [EVAL_FILES ...]] [-s DIRECTORY]
                   [-c {EER,HTER,FAR}] [-f FAR_VALUE] [-x] [-m] [--cost COST]
                   [-r] [-t THRESHOLDS [THRESHOLDS ...]]
                   [-l LEGENDS [LEGENDS ...]] [-F LEGEND_FONT_SIZE]
                   [-P LEGEND_POSITION] [-T TITLE [TITLE ...]] [-R ROC]
                   [-D DET] [-C CMC] [-E EPC] [--parser {4column,5column}]
                   [-v]
evaluate.py: error: argument -d/--dev-files is required
------------------------------------------------------

2.Are two command lines about "evaluate.py" correct expressions? I suspect their correct.

1) EER for the development set
evaluate.py --dev-files scores-dev --directory /home/jfw/analyseBob/command1/results/ubm_gmm/None/nonorm --legends voxforge --criterion EER -vv
--------------------------------
bob.bio.base@2017-06-08 15:57:55,655 -- INFO: Loading 1 score files of the development set
bob.bio.base@2017-06-08 15:57:55,659 -- INFO: Computing EER on the development set
The EER of the development set of 'voxforge' is 1.981%

2) HTER for the evaluation set
evaluate.py --dev-files scores-dev --eval-files scores-eval --directory /home/jfw/analyseBob/command1/results/ubm_gmm/None/nonorm --legends voxforge --criterion HTER -vv
--------------------------------
bob.bio.base@2017-06-08 15:50:06,716 -- INFO: Loading 1 score files of the development set
bob.bio.base@2017-06-08 15:50:06,720 -- INFO: Loading 1 score files of the evaluation set
bob.bio.base@2017-06-08 15:50:06,724 -- INFO: Computing HTER on the development and HTER on the evaluation set
The HTER of the development set of 'voxforge' is 1.593%
The HTER of the evaluation set of 'voxforge' is 5.519%

Thank you.

Jinfang

Manuel Günther

unread,
Jun 8, 2017, 1:04:43 PM6/8/17
to bob-devel
1. The development set files are required to compute the threshold, for which the HTER on the evaluation set is computed.

2. The two commands are not identical. The difference is the --criterion. The --criterion defines, which kind of criterion should be used to compute the threshold on the development set (see 1.). On the evaluation set, the HTER is computed, throughout.

Hope this helps
Manuel

Jinfang Wang

unread,
Jun 27, 2017, 5:23:45 AM6/27/17
to bob-devel
Hi,

In the function "parse_config_file()" of "~/anaconda2/envs/bob_py27/lib/python2.7/site-packages/bob/bio/base/tools/command_line.py", although I can know that "utils" is from module 'bob.bio.base.utils', I can't find the help documentation about the usage of "utils.read_config_file()". Could you tell me where to find it?
-----------------------------------------------------
(Pdb) utils
<module 'bob.bio.base.utils' from '/home/jfw/anaconda2/envs/bob_py27/lib/python2.7/site-packages/bob/bio/base/utils/__init__.pyc'>

Thank you.

Jinfang
Reply all
Reply to author
Forward
0 new messages