Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

about the conversion to rst #2

Open
arademaker opened this issue Jan 9, 2021 · 3 comments
Open

about the conversion to rst #2

arademaker opened this issue Jan 9, 2021 · 3 comments

Comments

@arademaker
Copy link

arademaker commented Jan 9, 2021

In the docs, it says that we need a running MoinMoin to convert. After installing MoinMoin with

pip install moin
% pip list
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Package                                Version
-------------------------------------- --------
...
moin                                   1.9.11
...

what are the next steps? The moin2git script runs but printing messages like

revision 00000001
revision 00000002
revision 00000003
Couldn't convert LtgOslo(2f)MajaBuljan to rst
### Creating LtgOslo/MajaBuljan.rst

I followed the steps in the https://github.com/mgaitan/moin2git#workarounds section, but besides copying my files to the necessary directory structure, should I start MoinMoin? How? Maybe I am missing something and pip didn't install all MoinMoin files...

PS: doing it in a MacOS system, Big Sur, with Python2

@arademaker arademaker changed the title about the conversion to rest about the conversion to rst Jan 9, 2021
@mgaitan
Copy link
Owner

mgaitan commented Jan 9, 2021 via email

@arademaker
Copy link
Author

Thank you so much!!

It seems that it is not a problem with the version. I was able to execute:

python moin2rst.py -u http://moin.delph-in.net/wiki/% -d ~/Downloads/moin/ltg/moin/delphin FrontPage

and it converted the page FrontPage in my local dump:

% pwd
/Users/ar/Downloads/moin
ar@leme moin % ll ltg/moin/delphin/data/pages/FrontPage
total 32
drwxrwx---@  4 ar  staff   128 Dec 28 15:44 cache
-rw-rw----@  1 ar  staff     9 Oct 15 18:02 current
-rw-rw----@  1 ar  staff  9758 Oct 15 18:02 edit-log
drwxrwx---@ 86 ar  staff  2752 Oct 15 18:02 revisions

From the original (still running in read-only mode in a remote server that I don't have direct access http://moin.delph-in.net/wiki/FrontPage)

But the command

python moin2git.py migrate ~/Downloads/moin/ltg/moin/delphin/data delphin2.wiki --convert-to-rst --users-file users.delphin

are still printing Couldn't convert LkbLtdb to rst.

@arademaker
Copy link
Author

Problem is that using the explicit call to moin2git.py after the initial migration with moin2git.py script, I could not preserve the links in the final GitHub wiki...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants