futuregrid / cloud-metrics

Project to create usage statistics from IaaS such as OpenStack, Eucalyptus, and Nimbus
2 stars 3 forks source link

Python Importing error #58

Closed lee212 closed 11 years ago

lee212 commented 11 years ago

Gregor reported an Python import error when he is trying to run make force. The error messages look like "can not find a module 'futuregrid.cloud.metric.FGAnalyzer' ".

Investigation just started.

Some possible causes observed.

  1. missing files on the site-packages directory. Normally, python looks up the 'site-packages' directory to import a particular module. For example, if it is working fine, the machine should have like this:

/usr/local/lib/python2.7/site-packages/futuregrid/cloud/metric$ ls -al total 360 drwxr-xr-x 2 root root 4096 2012-09-12 14:00 . drwxr-xr-x 3 root root 4096 2012-09-12 14:00 .. -rw-r--r-- 1 root root 45583 2012-09-12 14:00 FGAnalyzer.py -rw-r--r-- 1 root root 40854 2012-09-12 14:00 FGAnalyzer.pyc -rw-r--r-- 1 root root 1984 2012-09-12 14:00 FGCharts.py -rw-r--r-- 1 root root 3568 2012-09-12 14:00 FGCharts.pyc -rw-r--r-- 1 root root 5938 2012-09-12 14:00 FGConverter.py -rw-r--r-- 1 root root 6481 2012-09-12 14:00 FGConverter.pyc -rw-r--r-- 1 root root 10821 2012-09-12 14:00 FGEucaGatherLogFiles.py -rw-r--r-- 1 root root 11874 2012-09-12 14:00 FGEucaGatherLogFiles.pyc -rw-r--r-- 1 root root 25932 2012-09-12 14:00 FGEucaMetricsDB.py -rw-r--r-- 1 root root 23362 2012-09-12 14:00 FGEucaMetricsDB.pyc -rw-r--r-- 1 root root 4383 2012-09-12 14:00 FGGoogleMotionChart.py -rw-r--r-- 1 root root 3658 2012-09-12 14:00 FGGoogleMotionChart.pyc -rw-r--r-- 1 root root 18438 2012-09-12 14:00 FGHighcharts.py -rw-r--r-- 1 root root 22117 2012-09-12 14:00 FGHighcharts.pyc -rw-r--r-- 1 root root 2658 2012-09-12 14:00 FGNovaDB.py -rw-r--r-- 1 root root 3283 2012-09-12 14:00 FGNovaDB.pyc -rw-r--r-- 1 root root 3362 2012-09-12 14:00 FGNovaMetric.py -rw-r--r-- 1 root root 3505 2012-09-12 14:00 FGNovaMetric.pyc -rw-r--r-- 1 root root 32253 2012-09-12 14:00 FGParser.py -rw-r--r-- 1 root root 29549 2012-09-12 14:00 FGParser.pyc -rw-r--r-- 1 root root 2800 2012-09-12 14:00 FGPygooglechart.py -rw-r--r-- 1 root root 4088 2012-09-12 14:00 FGPygooglechart.pyc -rw-r--r-- 1 root root 3205 2012-09-12 14:00 FGStats.py -rw-r--r-- 1 root root 3727 2012-09-12 14:00 FGStats.pyc -rw-r--r-- 1 root root 331 2012-09-12 14:00 FGUtility.py -rw-r--r-- 1 root root 1012 2012-09-12 14:00 FGUtility.pyc -rw-r--r-- 1 root root 0 2012-09-12 14:00 init.py -rw-r--r-- 1 root root 161 2012-09-12 14:00 init.pyc

And the information of those files are managed on ./futuregrid.cloud.metric-2.1.5-py2.7.egg-info on the site-packages directory.

lee212 commented 11 years ago

It was an issue about the package naming conflict. We have changed the package name from 'futuregrid-cloud-metrics' to 'cloud-metrics'. commit: 06658913d2b2e920ea80109977b510a3a3ba837e