*.xhtml and tahoe.css are not copied from web directory on Windows #1033
Labels
No Label
0.2.0
0.3.0
0.4.0
0.5.0
0.5.1
0.6.0
0.6.1
0.7.0
0.8.0
0.9.0
1.0.0
1.1.0
1.10.0
1.10.1
1.10.2
1.10a2
1.11.0
1.12.0
1.12.1
1.13.0
1.14.0
1.15.0
1.15.1
1.2.0
1.3.0
1.4.1
1.5.0
1.6.0
1.6.1
1.7.0
1.7.1
1.7β
1.8.0
1.8.1
1.8.2
1.8.3
1.8β
1.9.0
1.9.0-s3branch
1.9.0a1
1.9.0a2
1.9.0b1
1.9.1
1.9.2
1.9.2a1
LeastAuthority.com automation
blocker
cannot reproduce
cloud-branch
code
code-dirnodes
code-encoding
code-frontend
code-frontend-cli
code-frontend-ftp-sftp
code-frontend-magic-folder
code-frontend-web
code-mutable
code-network
code-nodeadmin
code-peerselection
code-storage
contrib
critical
defect
dev-infrastructure
documentation
duplicate
enhancement
fixed
invalid
major
minor
n/a
normal
operational
packaging
somebody else's problem
supercritical
task
trivial
unknown
was already fixed
website
wontfix
worksforme
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Reference: tahoe-lafs/trac-2024-07-25#1033
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When Tahoe is installed using
setup.py install
from a darcs checkout, the *.xhtml and tahoe.css from web directory are not copied to lib/allmydata/web.The result is that the web interface cannot be used, because of the missing files.
This issue occurs only on Windows.
It works in these cases (Windows):
bin/tahoe
from the source directoryTested with python2.6
External link:
http://mail.python.org/pipermail/distutils-sig/2006-October/006740.html
Attachment xhtml_and_tahoe.css_not_included.darcspatch.txt (5291 bytes) added
*.xhtml and tahoe.css are not copied from web directoryto *.xhtml and tahoe.css are not copied from web directory on WindowsLet's add a test of this behavior. Let's see, if everything is working then we should get a string containg
'html xmlns'
from calling [getxmlfile()]source:src/allmydata/web/common.py@4193#L19 with argument'directory.xhtml'
.Test added in changeset:6037df55b372beb6. In addition I've attempted to program the buildbots so that a few of them, including FreeStorm's, run the unit tests from installed locations, but I doubt that I succeeded at that.
Attachment run_trial.darcspath.txt (5082 bytes) added
I wrote the patch for run_trial.py,
I copied into build/misc/run_trial.py on my buildbot.
And after run:
python -c "import
glob,os,subprocess,sys;os.chdir('egginstalldir');os.environ['PATH']=os.getcwd()+os.pathsep+os.environ['PATH'];os.environ['PYTHONPATH']=os.pathsep.join(glob.glob('*.egg'))+os.pathsep+os.environ.get('PYTHONPATH','');sys.exit(subprocess.call(['python','../misc/run_trial.py',
'allmydata.test'], env=os.environ))"
and it work :-)
Maybe, we can do: os.chdir('../'); before calling subprocess and
simply calling 'python','misc/run_trial.py'
Fred
Okay we have automated tests of this issue now.
Here is a build step that is producing the .egg on Kyle's OpenBSD and it succeeds:
http://tahoe-lafs.org/buildbot/builders/Kyle%20OpenBSD-4.6%20amd64/builds/146/steps/create-egg/logs/stdio
You can see that it is including the xhtml files in the .egg.
Here is the same step on FreeStorm's WinXP which doesn't mention any xhtml files:
http://tahoe-lafs.org/buildbot/builders/FreeStorm%20WinXP-x86%20py2.6/builds/14/steps/create-egg/logs/stdio
Then here is the step which runs the unit tests from the installed location after installing from the egg that it built. The tests pass on Kyle's OpenBSD:
http://tahoe-lafs.org/buildbot/builders/Kyle%20OpenBSD-4.6%20amd64/builds/146/steps/test-from-egg/logs/stdio
and fail on FreeStorm's WinXP:
http://tahoe-lafs.org/buildbot/builders/FreeStorm%20WinXP-x86%20py2.6/builds/14/steps/test-from-egg/logs/stdio
(We also have comparable tests of installing and running from the installed version that doesn't use .egg format, that also passes on Kyle's and fails on FreeStorm's.)
Here are the "versions of tools" steps that say what versions of everything are installed on the respective buildslaves:
http://tahoe-lafs.org/buildbot/builders/Kyle%20OpenBSD-4.6%20amd64/builds/146/steps/show-tool-versions/logs/stdio
http://tahoe-lafs.org/buildbot/builders/FreeStorm%20WinXP-x86%20py2.6/builds/14/steps/show-tool-versions/logs/stdio
Okay now we can tell if we fix this issue! I would like to fix it by figuring out why the
include_package_data=True
and the setuptools_darcs features that works on most systems doesn't work on WinXP rather than by applying the patch to manually specify package data.Oh, I'll bet there is a bug in setuptools_darcs having to do with Windows vs. Unix path separators...
Attachment path_reparator_change_for_windows.darcs.txt (1144 bytes) added
I've attached the patch for setuptools_darcs/setuptools_darcs.py.
> path_reparator_change_for_windows.darcs.txt
This patch changes the path separator of "darcs show manifest" output to be correctly processed by setuptools on Windows.
Fred
Okay this is fixed by setuptools_darcs-1.2.9.