#74 Cannot build current git master
Closed: Fixed None Opened 11 years ago by orion.

Trying to build current git master with "python setup.py build" I get:

{{{
python setup.py build
Traceback (most recent call last):
File "setup.py", line 7, in <module>
from src.FedoraReview import version
ImportError: No module named src.FedoraReview
}}}

I can fix this with "touch src/init.py". Then I get:

{{{
Traceback (most recent call last):
File "setup.py", line 7, in <module>
from src.FedoraReview import version
File "/export/home/orion/fedora/fedora-review/fedora-review-0.2.0/src/FedoraReview/init.py", line 23, in <module>
from abstract_bug import SettingsError,BugException
File "/export/home/orion/fedora/fedora-review/fedora-review-0.2.0/src/FedoraReview/abstract_bug.py", line 34, in <module>
from srpm_file import SRPMFile
File "/export/home/orion/fedora/fedora-review/fedora-review-0.2.0/src/FedoraReview/srpm_file.py", line 31, in <module>
from review_dirs import ReviewDirs
File "/export/home/orion/fedora/fedora-review/fedora-review-0.2.0/src/FedoraReview/review_dirs.py", line 30, in <module>
from FedoraReview.review_error import FedoraReviewError
ImportError: No module named review_error
}}}

Which I can fix by dropping the "FedoraReview." prefix in review_dirs.py.


That should be:

{{{
touch src/init.py
}}}

Hm, with current branch policy master is really nothing which should be tested. Try branch release-0.2.0
or devel, depending on your needs.

The src/init.py is part of both branches.

running setup.py requires some PYTHONPATH twiddling. Look at invocation in make_release

Indeed, no problems with release-0.2.0.

Login to comment on this ticket.

Metadata