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

Install mkdocs #1187

Closed
Mariangela opened this issue May 18, 2020 · 10 comments
Closed

Install mkdocs #1187

Mariangela opened this issue May 18, 2020 · 10 comments

Comments

@Mariangela
Copy link
Contributor

Description:
Install mkdocs on my replacement machine based on the guidelines provided in [1].

[1] https://github.com/wso2/docs-apim/blob/master/README.md

@Mariangela Mariangela self-assigned this May 18, 2020
@Mariangela
Copy link
Contributor Author

When running the following command from the master branch
pip install -r requirements.txt
I get the following error

ERROR: Could not find a version that satisfies the requirement vboxapi==1.0 (from -r requirements.txt (line 71)) (from versions: none)
ERROR: No matching distribution found for vboxapi==1.0 (from -r requirements.txt (line 71))

@Mariangela Mariangela added the Docs/in-progress Use this label when a Git issue is in-progress label May 18, 2020
@Mariangela
Copy link
Contributor Author

As instructed I removed the following lines from my local requirements.txt file.

vboxapi==1.0
xattr==0.6.4

When I reran the pip install -r requirements.txt command I get the following error:

  Building wheel for pyOpenSSL (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/x4/14t8r2xj509fsvp04j3fshvr0000gn/T/pip-install-XMsDEc/pyOpenSSL/setup.py'"'"'; __file__='"'"'/private/var/folders/x4/14t8r2xj509fsvp04j3fshvr0000gn/T/pip-install-XMsDEc/pyOpenSSL/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/x4/14t8r2xj509fsvp04j3fshvr0000gn/T/pip-wheel-TLzwUo
       cwd: /private/var/folders/x4/14t8r2xj509fsvp04j3fshvr0000gn/T/pip-install-XMsDEc/pyOpenSSL/
  Complete output (28 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.15-x86_64-2.7
  creating build/lib.macosx-10.15-x86_64-2.7/OpenSSL
  copying OpenSSL/__init__.py -> build/lib.macosx-10.15-x86_64-2.7/OpenSSL
  copying OpenSSL/tsafe.py -> build/lib.macosx-10.15-x86_64-2.7/OpenSSL
  copying OpenSSL/version.py -> build/lib.macosx-10.15-x86_64-2.7/OpenSSL
  creating build/lib.macosx-10.15-x86_64-2.7/OpenSSL/test
  copying OpenSSL/test/__init__.py -> build/lib.macosx-10.15-x86_64-2.7/OpenSSL/test
  copying OpenSSL/test/util.py -> build/lib.macosx-10.15-x86_64-2.7/OpenSSL/test
  copying OpenSSL/test/test_crypto.py -> build/lib.macosx-10.15-x86_64-2.7/OpenSSL/test
  copying OpenSSL/test/test_rand.py -> build/lib.macosx-10.15-x86_64-2.7/OpenSSL/test
  copying OpenSSL/test/test_ssl.py -> build/lib.macosx-10.15-x86_64-2.7/OpenSSL/test
  running build_ext
  building 'OpenSSL.crypto' extension
  creating build/temp.macosx-10.15-x86_64-2.7
  creating build/temp.macosx-10.15-x86_64-2.7/OpenSSL
  creating build/temp.macosx-10.15-x86_64-2.7/OpenSSL/crypto
  cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -iwithsysroot /usr/local/libressl/include -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c OpenSSL/crypto/crypto.c -o build/temp.macosx-10.15-x86_64-2.7/OpenSSL/crypto/crypto.o
  In file included from OpenSSL/crypto/crypto.c:16:
  In file included from OpenSSL/crypto/crypto.h:30:
  OpenSSL/crypto/x509.h:17:10: fatal error: 'openssl/ssl.h' file not found
  #include <openssl/ssl.h>
           ^~~~~~~~~~~~~~~
  1 error generated.
  error: command 'cc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for pyOpenSSL
Failed to build pyOpenSSL
Installing collected packages: backports-abc, Click, futures, htmlmin, MarkupSafe, Jinja2, jsmin, six, singledispatch, tornado, livereload, Markdown, markdown-include, PyYAML, mkdocs, mkdocs-markdownextradata-plugin, pep562, pymdown-extensions, mkdocs-minify-plugin, Pygments, mkdocs-material, pathlib, pyOpenSSL, nose
  WARNING: The script htmlmin is installed in '/Users/wso2/Library/Python/2.7/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The script livereload is installed in '/Users/wso2/Library/Python/2.7/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The script markdown_py is installed in '/Users/wso2/Library/Python/2.7/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The script mkdocs is installed in '/Users/wso2/Library/Python/2.7/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: The script pygmentize is installed in '/Users/wso2/Library/Python/2.7/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
    Running setup.py install for pyOpenSSL ... error
    ERROR: Command errored out with exit status 1:
     command: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/x4/14t8r2xj509fsvp04j3fshvr0000gn/T/pip-install-XMsDEc/pyOpenSSL/setup.py'"'"'; __file__='"'"'/private/var/folders/x4/14t8r2xj509fsvp04j3fshvr0000gn/T/pip-install-XMsDEc/pyOpenSSL/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/x4/14t8r2xj509fsvp04j3fshvr0000gn/T/pip-record-s1AVeR/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /Users/wso2/Library/Python/2.7/include/python2.7/pyOpenSSL
         cwd: /private/var/folders/x4/14t8r2xj509fsvp04j3fshvr0000gn/T/pip-install-XMsDEc/pyOpenSSL/
    Complete output (28 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.15-x86_64-2.7
    creating build/lib.macosx-10.15-x86_64-2.7/OpenSSL
    copying OpenSSL/__init__.py -> build/lib.macosx-10.15-x86_64-2.7/OpenSSL
    copying OpenSSL/tsafe.py -> build/lib.macosx-10.15-x86_64-2.7/OpenSSL
    copying OpenSSL/version.py -> build/lib.macosx-10.15-x86_64-2.7/OpenSSL
    creating build/lib.macosx-10.15-x86_64-2.7/OpenSSL/test
    copying OpenSSL/test/__init__.py -> build/lib.macosx-10.15-x86_64-2.7/OpenSSL/test
    copying OpenSSL/test/util.py -> build/lib.macosx-10.15-x86_64-2.7/OpenSSL/test
    copying OpenSSL/test/test_crypto.py -> build/lib.macosx-10.15-x86_64-2.7/OpenSSL/test
    copying OpenSSL/test/test_rand.py -> build/lib.macosx-10.15-x86_64-2.7/OpenSSL/test
    copying OpenSSL/test/test_ssl.py -> build/lib.macosx-10.15-x86_64-2.7/OpenSSL/test
    running build_ext
    building 'OpenSSL.crypto' extension
    creating build/temp.macosx-10.15-x86_64-2.7
    creating build/temp.macosx-10.15-x86_64-2.7/OpenSSL
    creating build/temp.macosx-10.15-x86_64-2.7/OpenSSL/crypto
    cc -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -iwithsysroot /usr/local/libressl/include -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c OpenSSL/crypto/crypto.c -o build/temp.macosx-10.15-x86_64-2.7/OpenSSL/crypto/crypto.o
    In file included from OpenSSL/crypto/crypto.c:16:
    In file included from OpenSSL/crypto/crypto.h:30:
    OpenSSL/crypto/x509.h:17:10: fatal error: 'openssl/ssl.h' file not found
    #include <openssl/ssl.h>
             ^~~~~~~~~~~~~~~
    1 error generated.
    error: command 'cc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/x4/14t8r2xj509fsvp04j3fshvr0000gn/T/pip-install-XMsDEc/pyOpenSSL/setup.py'"'"'; __file__='"'"'/private/var/folders/x4/14t8r2xj509fsvp04j3fshvr0000gn/T/pip-install-XMsDEc/pyOpenSSL/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/x4/14t8r2xj509fsvp04j3fshvr0000gn/T/pip-record-s1AVeR/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /Users/wso2/Library/Python/2.7/include/python2.7/pyOpenSSL Check the logs for full command output.

@Mariangela
Copy link
Contributor Author

When running the following command from the master branch
pip install -r requirements.txt
I get the following error

ERROR: Could not find a version that satisfies the requirement vboxapi==1.0 (from -r requirements.txt (line 71)) (from versions: none)
ERROR: No matching distribution found for vboxapi==1.0 (from -r requirements.txt (line 71))

Initially, based on [1], I used the following command to install vbox pyvbox

$sudo easy_install vbox pyvbox
[1] OpenClovis/SAFplus-Availability-Scalability-Platform#169

@Mariangela
Copy link
Contributor Author

I followed the instructions in [1] and installed Python 3.

[1] https://docs.python-guide.org/starting/install3/osx/

@Mariangela
Copy link
Contributor Author

Followed this link

clover/SandboxMerchantSeedingTool#1

@Mariangela
Copy link
Contributor Author

Got the following error

ERROR: Could not find a version that satisfies the requirement bonjour-py==0.3 (from -r requirements.txt (line 4)) (from versions: none)
ERROR: No matching distribution found for bonjour-py==0.3 (from -r requirements.txt (line 4))

@Mariangela
Copy link
Contributor Author

Replaced bonjour-py==0.3 with bonjour==0.0.3 in the requirements.txt file. Got the following error.

ERROR: Could not find a version that satisfies the requirement futures==3.3.0 (from -r requirements.txt (line 6)) (from versions: 0.2.python3, 0.1, 0.2, 1.0, 2.0, 2.1, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.1.5, 2.1.6, 2.2.0, 3.0.0, 3.0.1, 3.0.2, 3.0.3, 3.0.4, 3.0.5, 3.1.0, 3.1.1)
ERROR: No matching distribution found for futures==3.3.0 (from -r requirements.txt (line 6))

@Mariangela
Copy link
Contributor Author

When testing out the mkdocs serve command, I got the following error message.
zsh: command not found: mkdocs

@Mariangela
Copy link
Contributor Author

Replaced content in the requirements.txt file from [1] to [2] based on the content that is available in the Jenkins and based on Shani's request and the build was successful.

[1]

altgraph==0.10.2
backports-abc==0.5
bdist-mpkg==0.5.0
bonjour-py==0.3
Click==7.0
futures==3.3.0
htmlmin==0.1.12
Jinja2==2.10.3
jsmin==2.2.2
livereload==2.6.1
macholib==1.5.1
Markdown==3.1.1
markdown-include==0.5.1
MarkupSafe==1.1.1
matplotlib==1.3.1
mkdocs==1.0.4
mkdocs-markdownextradata-plugin==0.0.6
mkdocs-material==4.4.3
mkdocs-minify-plugin==0.2.1
modulegraph==0.10.4
numpy==1.8.0rc1
pathlib==1.0.1
pep562==1.0
py2app==0.7.3
Pygments==2.4.2
pymdown-extensions==6.1
pyobjc-core==2.5.1
pyobjc-framework-Accounts==2.5.1
pyobjc-framework-AddressBook==2.5.1
pyobjc-framework-AppleScriptKit==2.5.1
pyobjc-framework-AppleScriptObjC==2.5.1
pyobjc-framework-Automator==2.5.1
pyobjc-framework-CFNetwork==2.5.1
pyobjc-framework-Cocoa==2.5.1
pyobjc-framework-Collaboration==2.5.1
pyobjc-framework-CoreData==2.5.1
pyobjc-framework-CoreLocation==2.5.1
pyobjc-framework-CoreText==2.5.1
pyobjc-framework-DictionaryServices==2.5.1
pyobjc-framework-EventKit==2.5.1
pyobjc-framework-ExceptionHandling==2.5.1
pyobjc-framework-FSEvents==2.5.1
pyobjc-framework-InputMethodKit==2.5.1
pyobjc-framework-InstallerPlugins==2.5.1
pyobjc-framework-InstantMessage==2.5.1
pyobjc-framework-LatentSemanticMapping==2.5.1
pyobjc-framework-LaunchServices==2.5.1
pyobjc-framework-Message==2.5.1
pyobjc-framework-OpenDirectory==2.5.1
pyobjc-framework-PreferencePanes==2.5.1
pyobjc-framework-PubSub==2.5.1
pyobjc-framework-QTKit==2.5.1
pyobjc-framework-Quartz==2.5.1
pyobjc-framework-ScreenSaver==2.5.1
pyobjc-framework-ScriptingBridge==2.5.1
pyobjc-framework-SearchKit==2.5.1
pyobjc-framework-ServiceManagement==2.5.1
pyobjc-framework-Social==2.5.1
pyobjc-framework-SyncServices==2.5.1
pyobjc-framework-SystemConfiguration==2.5.1
pyobjc-framework-WebKit==2.5.1
pyOpenSSL==0.13.1
pyparsing==2.0.1
python-dateutil==1.5
pytz==2013.7
PyYAML==5.1.2
scipy==0.13.0b1
singledispatch==3.4.0.3
six==1.4.1
tornado==5.1.1
vboxapi==1.0
xattr==0.6.4

[2]

mkdocs==1.0.4
Pygments==2.5.2
pymdown-extensions==6.2
mkdocs-minify-plugin==0.2.1
mkdocs-markdownextradata-plugin==0.1.1
mkdocs-redirects==1.0.0
pathlib==1.0.1
mkdocs-material==4.5.1
markdown-include==0.5.1
markdown==3.1
mkdocs-redirects==1.0.0
mkdocs-exclude==1.0.2

This was referenced May 19, 2020
@Mariangela
Copy link
Contributor Author

Fixed in

#1197 master
#1204 3.1.0
#1207 3.0.0

@Mariangela Mariangela added Resolution/Fixed and removed Docs/in-progress Use this label when a Git issue is in-progress labels May 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant