Hi Àlex,
Thanks for your attached file. I believe, I would have to edit the
[dspace-src]/dspace/modules/pom.xml and [dspace-src]/pom.xml right? Can you
please correct me if I'm wrong with the modifications that I made in
[dspace-src]/dspace/modules/pom.xml?
<!-- The 'additions' module must *always* be built, as it is included
as a dependency in most other modules in [src]/dspace/modules -->
<modules>
<module>additions</module>
<module>../../impact</module>
</modules>
I did not edit the [dspace-src]/pom.xml but I managed to run mvn package
successfully in my vagrant-dspace setup. I asked because there is no
/impact webapps made in the target directory. Another thing I would like to
ask is that if have you ever tried running this from a windows environment?
I never had a successful build when running this in windows 7 and windows
10. Below is part of the log when I use a windows environment to build
dspace:
[INFO] installing requested python libraries
[INFO] running [java, -cp, .;Lib, -Dpython.home=.,
-Dpython.executable=jython, org.python.util.jython,
Lib/site-packages/setuptools-0.6c11-py2.5.egg/easy_install.py,
--build-directory, C:\dspace-src\target\jython-plugins-tmp\build, chardet,
urllib3, requests, six] in target\jython-plugins-tmp
Searching for chardet
Reading http://pypi.python.org/simple/chardet/
Best match: chardet 3.0.2
Downloading
https://pypi.python.org/packages/91/05/28f23094cdf1410fb03533f0d71e6b4aad3c504100e83b8cea6fc899552c/chardet-3.0.2.tar.gz#md5=96e364abdbde20b5f6dbbe2ad9d54d04
Processing chardet-3.0.2.tar.gz
Traceback (most recent call last):
File "Lib/site-packages/setuptools-0.6c11-py2.5.egg/easy_install.py",
line 5, in <module>
main()
File
"C:\dspace-src\target\jython-plugins-tmp\Lib\site-packages\setuptools-0.6c11-py2.5.egg\setuptools\command\easy_install.py",
line 1712, in main
with_ei_usage(lambda:
File
"C:\dspace-src\target\jython-plugins-tmp\Lib\site-packages\setuptools-0.6c11-py2.5.egg\setuptools\command\easy_install.py",
line 1700, in with_ei_usage
return f()
File
"C:\dspace-src\target\jython-plugins-tmp\Lib\site-packages\setuptools-0.6c11-py2.5.egg\setuptools\command\easy_install.py",
line 1712, in <lambda>
with_ei_usage(lambda:
File "C:\dspace-src\target\jython-plugins-tmp\Lib\distutils\core.py",
line 152, in setup
dist.run_commands()
File "C:\dspace-src\target\jython-plugins-tmp\Lib\distutils\core.py",
line 152, in setup
dist.run_commands()
File "C:\dspace-src\target\jython-plugins-tmp\Lib\distutils\dist.py",
line 953, in run_commands
self.run_command(cmd)
File "C:\dspace-src\target\jython-plugins-tmp\Lib\distutils\dist.py",
line 972, in run_command
cmd_obj.run()
File
"C:\dspace-src\target\jython-plugins-tmp\Lib\site-packages\setuptools-0.6c11-py2.5.egg\setuptools\command\easy_install.py",
line 211, in run
self.easy_install(spec, not self.no_deps)
File
"C:\dspace-src\target\jython-plugins-tmp\Lib\site-packages\setuptools-0.6c11-py2.5.egg\setuptools\command\easy_install.py",
line 446, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File
"C:\dspace-src\target\jython-plugins-tmp\Lib\site-packages\setuptools-0.6c11-py2.5.egg\setuptools\command\easy_install.py",
line 476, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File
"C:\dspace-src\target\jython-plugins-tmp\Lib\site-packages\setuptools-0.6c11-py2.5.egg\setuptools\command\easy_install.py",
line 633, in install_eggs
setup_base = self.maybe_move(spec, dist_filename, setup_base)
File
"C:\dspace-src\target\jython-plugins-tmp\Lib\site-packages\setuptools-0.6c11-py2.5.egg\setuptools\command\easy_install.py",
line 565, in maybe_move
ensure_directory(dst); shutil.move(setup_base, dst)
File "C:\dspace-src\target\jython-plugins-tmp\Lib\shutil.py", line 298,
in move
copytree(src, real_dst, symlinks=True)
File "C:\dspace-src\target\jython-plugins-tmp\Lib\shutil.py", line 208,
in copytree
raise Error, errors
shutil.Error:
[('D:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\easy_install-_2vzm3\\chardet-3.0.2\\chardet\\cli',
'C:\\dspace-src\\target\\jython-plugins-tmp\\build\\chardet\\chardet\\cli',
"[Errno 1] Operation not permitted:
'C:\\\\dspace-src\\\\target\\\\jython-plugins-tmp\\\\build\\\\chardet\\\\chardet\\\\cli'"),
I am still searching/learning on how to add the python libraries to the
jython webapp as helix suggested. Hope you can give me some pointers on how
to resolve the errors I stated above and the needed modifications in pom
files that are not included in your attached file.
Thanks in advance and best regards,
euler
On Wednesday, April 19, 2017 at 7:59:00 PM UTC+8, Àlex Magaz Graça wrote:
> That's right, it depends on some Python modules. Apart from requests,
> you may also need to add chardet, urllib3 and six.
>
> You may want to try building it with Maven which will take care of
> installing the modules. I'm attaching the full source tree of the impact
> webapp. Just unpack it into your DSpace source and run Maven. The
> downloading of Jython libraries isn't very reliable. You may have to run
> it more than once until it succeeds.
>
> Cheers,
> Àlex
>
--
You received this message because you are subscribed to the Google Groups
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.