Skip to content

Importing inputstreamhelper to dev environment #212

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

Closed
ivankokan opened this issue Oct 15, 2019 · 18 comments
Closed

Importing inputstreamhelper to dev environment #212

ivankokan opened this issue Oct 15, 2019 · 18 comments

Comments

@ivankokan
Copy link

Hi. How can one easily import inputstreamhelper to its development environment so the message Unable to import 'inputstreamhelper' does not appear?

@dagwieers
Copy link
Collaborator

What we do for testing, is add this to requirements.txt:

git+git://github.com/emilsvennesson/script.module.inputstreamhelper.git@master#egg=inputstreamhelper

Or if you prefer to stick to a specific version, you can do:

git+git://github.com/emilsvennesson/[email protected]#egg=inputstreamhelper

Then you can pull this automatically into your dev environment using:

pip install -r requirements.txt

And this works for e.g. Travis as well to get your dependencies installed.

Take a look at the VRT NU add-on to see how we do this integration for testing: https://github.com/pietje666/plugin.video.vrt.nu

@ivankokan
Copy link
Author

Thanks @dagwieers. Actually, I need only "inputstreamhelper stubs" (something like Kodistubs https://romanvm.github.io/Kodistubs/using.html), not the full library. I guess your answer will do. :)

@ivankokan
Copy link
Author

PS C:\Projects\xbmc.plugin.video.nba> pip install -r requirements.txt
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting inputstreamhelper
  Cloning git://github.com/emilsvennesson/script.module.inputstreamhelper.git (to revision master) to c:\users\user\appdata\local\temp\pip-install-eyba7k\inputstreamhelper
  Running command git clone -q git://github.com/emilsvennesson/script.module.inputstreamhelper.git 'c:\users\user\appdata\local\temp\pip-install-eyba7k\inputstreamhelper'
Installing collected packages: inputstreamhelper
    Running setup.py install for inputstreamhelper ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\python27\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\user\\appdata\\local\\temp\\pip-install-eyba7k\\inputstreamhelper\\setup.py'"'"'; __file__='"'"'c:\\users\\user\\appdata\\local\\temp\\pip-install-eyba7k\\inputstreamhelper\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'c:\users\user\appdata\local\temp\pip-record-fd86bi\install-record.txt' --single-version-externally-managed --compile
         cwd: c:\users\user\appdata\local\temp\pip-install-eyba7k\inputstreamhelper\
    Complete output (24 lines):
    running install
    running build
    running build_py
    creating build
    creating build\lib
    creating build\lib\inputstreamhelper
    copying lib\inputstreamhelper\api.py -> build\lib\inputstreamhelper
    copying lib\inputstreamhelper\config.py -> build\lib\inputstreamhelper
    copying lib\inputstreamhelper\kodiutils.py -> build\lib\inputstreamhelper
    copying lib\inputstreamhelper\unicodehelper.py -> build\lib\inputstreamhelper
    copying lib\inputstreamhelper\__init__.py -> build\lib\inputstreamhelper
    running install_lib
    copying build\lib\inputstreamhelper\api.py -> c:\python27\Lib\site-packages\inputstreamhelper
    copying build\lib\inputstreamhelper\config.py -> c:\python27\Lib\site-packages\inputstreamhelper
    copying build\lib\inputstreamhelper\kodiutils.py -> c:\python27\Lib\site-packages\inputstreamhelper
    copying build\lib\inputstreamhelper\unicodehelper.py -> c:\python27\Lib\site-packages\inputstreamhelper
    copying build\lib\inputstreamhelper\__init__.py -> c:\python27\Lib\site-packages\inputstreamhelper
    byte-compiling c:\python27\Lib\site-packages\inputstreamhelper\api.py to api.pyc
    byte-compiling c:\python27\Lib\site-packages\inputstreamhelper\config.py to config.pyc
    byte-compiling c:\python27\Lib\site-packages\inputstreamhelper\kodiutils.py to kodiutils.pyc
    byte-compiling c:\python27\Lib\site-packages\inputstreamhelper\unicodehelper.py to unicodehelper.pyc
    byte-compiling c:\python27\Lib\site-packages\inputstreamhelper\__init__.py to __init__.pyc
    running install_egg_info
    error: 'egg_base' must be a directory name (got `lib`)
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\python27\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\user\\appdata\\local\\temp\\pip-install-eyba7k\\inputstreamhelper\\setup.py'"'"'; __file__='"'"'c:\\users\\user\\appdata\\local\\temp\\pip-install-eyba7k\\inputstreamhelper\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'c:\users\user\appdata\local\temp\pip-record-fd86bi\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.

Not sure how to resolve this...

@dagwieers
Copy link
Collaborator

dagwieers commented Oct 16, 2019

What version of pip did you use?

It complains that egg_base must be a directory name, and it got 'lib', but lib is a directory name 🙄
So maybe your version of python setuptools/pip expects a trailing slash?

@ivankokan
Copy link
Author

PS C:\Projects\xbmc.plugin.video.nba> pip --version
pip 19.3 from c:\python27\lib\site-packages\pip (python 2.7)
PS C:\Projects\xbmc.plugin.video.nba> python -m pip install --upgrade pip
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Requirement already up-to-date: pip in c:\python27\lib\site-packages (19.3)
PS C:\Projects\xbmc.plugin.video.nba> pip --version
pip 19.3 from c:\python27\lib\site-packages\pip (python 2.7)
PS C:\Projects\xbmc.plugin.video.nba>

@dagwieers
Copy link
Collaborator

dagwieers commented Oct 16, 2019

I need to know the version of setuptools, because that is the likely cause of this issue.

Also see: pypa/setuptools#1136

@dagwieers
Copy link
Collaborator

So for me using setuptools v41.2.0 on Python 2.7 it seems to work.

[root@moria plugin.video.vrt.nu]# pip install --upgrade git+git://github.com/emilsvennesson/script.module.inputstreamhelper.git@master#egg=inputstreamhelper
Collecting inputstreamhelper from git+git://github.com/emilsvennesson/script.module.inputstreamhelper.git@master#egg=inputstreamhelper
  Cloning git://github.com/emilsvennesson/script.module.inputstreamhelper.git (to master) to /tmp/pip-build-USIqYQ/inputstreamhelper
Installing collected packages: inputstreamhelper
  Found existing installation: inputstreamhelper 0.4.3
    Uninstalling inputstreamhelper-0.4.3:
      Successfully uninstalled inputstreamhelper-0.4.3
  Running setup.py install for inputstreamhelper ... done
Successfully installed inputstreamhelper-0.4.3

@ivankokan
Copy link
Author

PS C:\Projects\xbmc.plugin.video.nba> pip list
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Package                       Version
----------------------------- -------
astroid                       1.6.6
autopep8                      1.4.4
backports.functools-lru-cache 1.5
colorama                      0.4.1
configparser                  4.0.2
enum34                        1.1.6
futures                       3.3.0
isort                         4.3.21
Kodistubs                     18.0.0
lazy-object-proxy             1.4.2
mccabe                        0.6.1
pip                           19.3
pycodestyle                   2.5.0
pylint                        1.9.5
setuptools                    40.6.2
singledispatch                3.4.0.3
six                           1.12.0
typing                        3.7.4.1
wrapt                         1.11.2

@dagwieers
Copy link
Collaborator

Try doing: pip install --upgrade setuptools and then try again.

@dagwieers
Copy link
Collaborator

I added a page to the wiki with the information we already learned:
https://github.com/emilsvennesson/script.module.inputstreamhelper/wiki/Testing

Also read the Integration page carefully, because we recommend to import inputstreamhelper in the routing that needs it, rather than importing it at the top.

@ivankokan
Copy link
Author

Great, thank you @dagwieers!

PS C:\Projects\xbmc.plugin.video.nba> pip list
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Package                       Version
----------------------------- -------
astroid                       1.6.6
autopep8                      1.4.4
backports.functools-lru-cache 1.5
colorama                      0.4.1
configparser                  4.0.2
enum34                        1.1.6
futures                       3.3.0
isort                         4.3.21
PS C:\Projects\xbmc.plugin.video.nba> pip install --upgrade setuptools
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting setuptools
  Downloading https://files.pythonhosted.org/packages/6a/9a/50fadfd53ec909e4399b67c74cc7f4e883488035cfcdb90b685758fa8b34/setuptools-41.4.0-py2.py3-none-any.whl (580kB)
     |################################| 583kB 1.1MB/s
Installing collected packages: setuptools
  Found existing installation: setuptools 40.6.2
    Uninstalling setuptools-40.6.2:
      Successfully uninstalled setuptools-40.6.2
Successfully installed setuptools-41.4.0
PS C:\Projects\xbmc.plugin.video.nba> pip list
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Package                       Version
----------------------------- -------
astroid                       1.6.6
autopep8                      1.4.4
backports.functools-lru-cache 1.5
colorama                      0.4.1
configparser                  4.0.2
enum34                        1.1.6
futures                       3.3.0
isort                         4.3.21
Kodistubs                     18.0.0
lazy-object-proxy             1.4.2
mccabe                        0.6.1
pip                           19.3
pycodestyle                   2.5.0
pylint                        1.9.5
setuptools                    41.4.0
singledispatch                3.4.0.3
six                           1.12.0
typing                        3.7.4.1
wrapt                         1.11.2
PS C:\Projects\xbmc.plugin.video.nba> python -m pip install --upgrade pip
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Requirement already up-to-date: pip in c:\python27\lib\site-packages (19.3)
PS C:\Projects\xbmc.plugin.video.nba> pip install -r requirements.txt
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting inputstreamhelper
  Cloning git://github.com/emilsvennesson/script.module.inputstreamhelper.git (to revision master) to c:\users\user\appdata\local\temp\pip-install-_fdkn6\inputstreamhelper
  Running command git clone -q git://github.com/emilsvennesson/script.module.inputstreamhelper.git 'c:\users\user\appdata\local\temp\pip-install-_fdkn6\inputstreamhelper'
Installing collected packages: inputstreamhelper
    Running setup.py install for inputstreamhelper ... done
Successfully installed inputstreamhelper-0.4.3

It could be useful to have this procedure under Wiki as well.

Kind regards, Ivan

@dagwieers
Copy link
Collaborator

I am going to close this. Thanks @ivankokan for helping improve our documentation!

@ivankokan
Copy link
Author

Well done! Now I can develop much easier, resolve all errors and warnings in my workspace, and also improve the xbmc.plugin.video.nba add-on with all suggestions on how to specify dependencies.

(I feel like a lot of recent changes under Wiki are motivated by the status in the mentioned add-on. :))

@ivankokan
Copy link
Author

Hi @dagwieers. I was trying to make clean setup in my project:

python -m pip install --user --upgrade "pylint<2.0.0"
python -m pip install --user --upgrade autopep8
python -m pip install --user --upgrade pip
pip --version
pip list
python -m pip install --user --upgrade setuptools
pip list
python -m pip install --user --upgrade Kodistubs
pip list
python -m pip install --user -r requirements.txt
pip list

...but something is missing:

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

PS C:\Projects\xbmc.plugin.video.nba> python -m pip install --user --upgrade "pylint<2.0.0"
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting pylint<2.0.0
  Using cached https://files.pythonhosted.org/packages/36/3b/fa4025a424adafd85c6195001b1c130ecb8d8b30784a1c4cb68e7b5e5ae7/pylint-1.9.5-py2.py3-none-any.whl
Collecting singledispatch; python_version < "3.4"
  Using cached https://files.pythonhosted.org/packages/c5/10/369f50bcd4621b263927b0a1519987a04383d4a98fb10438042ad410cf88/singledispatch-3.4.0.3-py2.py3-none-any.whl
Collecting mccabe
  Using cached https://files.pythonhosted.org/packages/87/89/479dc97e18549e21354893e4ee4ef36db1d237534982482c3681ee6e7b57/mccabe-0.6.1-py2.py3-none-any.whl
Collecting backports.functools-lru-cache; python_version == "2.7"
  Using cached https://files.pythonhosted.org/packages/03/8e/2424c0e65c4a066e28f539364deee49b6451f8fcd4f718fefa50cc3dcf48/backports.functools_lru_cache-1.5-py2.py3-none-any.whl
Collecting astroid<2.0,>=1.6
  Using cached https://files.pythonhosted.org/packages/8b/29/0f7ec6fbf28a158886b7de49aee3a77a8a47a7e24c60e9fd6ec98ee2ec02/astroid-1.6.6-py2.py3-none-any.whl
Collecting colorama; sys_platform == "win32"
  Using cached https://files.pythonhosted.org/packages/4f/a6/728666f39bfff1719fc94c481890b2106837da9318031f71a8424b662e12/colorama-0.4.1-py2.py3-none-any.whl
Collecting six
  Using cached https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Collecting isort>=4.2.5
  Using cached https://files.pythonhosted.org/packages/e5/b0/c121fd1fa3419ea9bfd55c7f9c4fedfec5143208d8c7ad3ce3db6c623c21/isort-4.3.21-py2.py3-none-any.whl
Collecting configparser; python_version == "2.7"
  Using cached https://files.pythonhosted.org/packages/7a/2a/95ed0501cf5d8709490b1d3a3f9b5cf340da6c433f896bbe9ce08dbe6785/configparser-4.0.2-py2.py3-none-any.whl
Collecting enum34>=1.1.3; python_version < "3.4"
  Using cached https://files.pythonhosted.org/packages/c5/db/e56e6b4bbac7c4a06de1c50de6fe1ef3810018ae11732a50f15f62c7d050/enum34-1.1.6-py2-none-any.whl
Collecting lazy-object-proxy
  Using cached https://files.pythonhosted.org/packages/71/0f/7b266ef296511461e0794e1ee0a6ddd6787f262038ff23ddcb0c451f2674/lazy_object_proxy-1.4.2-cp27-cp27m-win_amd64.whl
Collecting wrapt
  Using cached https://files.pythonhosted.org/packages/23/84/323c2415280bc4fc880ac5050dddfb3c8062c2552b34c2e512eb4aa68f79/wrapt-1.11.2.tar.gz
Collecting futures; python_version < "3.2"
  Using cached https://files.pythonhosted.org/packages/d8/a6/f46ae3f1da0cd4361c344888f59ec2f5785e69c872e175a748ef6071cdb5/futures-3.3.0-py2-none-any.whl
Installing collected packages: six, singledispatch, mccabe, backports.functools-lru-cache, enum34, lazy-object-proxy, wrapt, astroid, colorama, futures, isort, configparser, pylint
    Running setup.py install for wrapt ... done
  WARNING: The script isort.exe is installed in 'C:\Users\ekokiva\AppData\Roaming\Python\Scripts' 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 scripts epylint.exe, pylint.exe, pyreverse.exe and symilar.exe are installed in 'C:\Users\ekokiva\AppData\Roaming\Python\Scripts' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed astroid-1.6.6 backports.functools-lru-cache-1.5 colorama-0.4.1 configparser-4.0.2 enum34-1.1.6 futures-3.3.0 isort-4.3.21 lazy-object-proxy-1.4.2
mccabe-0.6.1 pylint-1.9.5 singledispatch-3.4.0.3 six-1.12.0 wrapt-1.11.2
PS C:\Projects\xbmc.plugin.video.nba> python -m pip install --user --upgrade autopep8
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting autopep8
  Using cached https://files.pythonhosted.org/packages/45/f3/24b437da561b6af4840c871fbbda32889ca304fc1f7b6cc3ada8b09f394a/autopep8-1.4.4.tar.gz
Collecting pycodestyle>=2.4.0
  Using cached https://files.pythonhosted.org/packages/0e/0c/04a353e104d2f324f8ee5f4b32012618c1c86dd79e52a433b64fceed511b/pycodestyle-2.5.0-py2.py3-none-any.whl
Installing collected packages: pycodestyle, autopep8
  WARNING: The script pycodestyle.exe is installed in 'C:\Users\ekokiva\AppData\Roaming\Python\Scripts' 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 autopep8 ... done
Successfully installed autopep8-1.4.4 pycodestyle-2.5.0
PS C:\Projects\xbmc.plugin.video.nba> python -m pip install --user --upgrade pip
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Requirement already up-to-date: pip in c:\python27\lib\site-packages (19.3.1)
PS C:\Projects\xbmc.plugin.video.nba> pip --version
pip 19.3.1 from c:\python27\lib\site-packages\pip (python 2.7)
PS C:\Projects\xbmc.plugin.video.nba> pip list
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Package                       Version
----------------------------- -------
astroid                       1.6.6
autopep8                      1.4.4
backports.functools-lru-cache 1.5
colorama                      0.4.1
configparser                  4.0.2
enum34                        1.1.6
futures                       3.3.0
isort                         4.3.21
lazy-object-proxy             1.4.2
mccabe                        0.6.1
pip                           19.3.1
pycodestyle                   2.5.0
pylint                        1.9.5
setuptools                    41.4.0
singledispatch                3.4.0.3
six                           1.12.0
wrapt                         1.11.2
PS C:\Projects\xbmc.plugin.video.nba> python -m pip install --user --upgrade setuptools
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Requirement already up-to-date: setuptools in c:\python27\lib\site-packages (41.4.0)
PS C:\Projects\xbmc.plugin.video.nba> python -m pip install --user --upgrade Kodistubs
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting Kodistubs
  Using cached https://files.pythonhosted.org/packages/7c/2a/55785ae519e936af655f72a98e69e1a20e1daea7ea186e1ca3abeea762c0/Kodistubs-18.0.0-py2-none-any.whl
Collecting typing
  Using cached https://files.pythonhosted.org/packages/22/30/64ca29543375759dc589ade14a6cd36382abf2bec17d67de8481bc9814d7/typing-3.7.4.1-py2-none-any.whl
Installing collected packages: typing, Kodistubs
Successfully installed Kodistubs-18.0.0 typing-3.7.4.1
PS C:\Projects\xbmc.plugin.video.nba> python -m pip install --user -r requirements.txt
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting inputstreamhelper
  Cloning git://github.com/emilsvennesson/script.module.inputstreamhelper.git (to revision v0.3.3) to c:\users\ekokiva\appdata\local\temp\pip-install-ovahl8\inputstreamhelper
  Running command git clone -q git://github.com/emilsvennesson/script.module.inputstreamhelper.git 'c:\users\ekokiva\appdata\local\temp\pip-install-ovahl8\inputstreamhelper'
  Running command git checkout -q c41476939e4ee27b3f2fbec089c7772c3bc24009
    ERROR: Command errored out with exit status 1:
     command: 'C:\Python27\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\\users\\ekokiva\\appdata\\local\\temp\\pip-install-ovahl8\\inputstreamhelper\\setup.py'"'"'; __file__='"'"'c:\\users\\ekokiva\\appdata\\local\\temp\\pip-install-ovahl8\\inputstreamhelper\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'c:\users\ekokiva\appdata\local\temp\pip-install-ovahl8\inputstreamhelper\pip-egg-info'
         cwd: c:\users\ekokiva\appdata\local\temp\pip-install-ovahl8\inputstreamhelper\
    Complete output (3 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    IOError: [Errno 2] No such file or directory: 'c:\\users\\ekokiva\\appdata\\local\\temp\\pip-install-ovahl8\\inputstreamhelper\\setup.py'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
PS C:\Projects\xbmc.plugin.video.nba>

Can you please help once again?

@dagwieers
Copy link
Collaborator

What does this look like: c:\users\ekokiva\appdata\local\temp\pip-install-ovahl8\inputstreamhelper\ ?

@dagwieers dagwieers reopened this Oct 21, 2019
@ivankokan
Copy link
Author

ivankokan commented Oct 23, 2019

What does this look like: c:\users\ekokiva\appdata\local\temp\pip-install-ovahl8\inputstreamhelper\ ?

It does not exist anymore. Whenever the last command is executed (referring to v0.3.3), several folders appear under ...\AppData\Local\Temp\ - but disappear in a second.

Doing the same referring to master branch does not generate any issue.

It could be that v0.3.3 is not so compatible with setuptools 41.4.0.

(I wanted to start with v0.3.3, the current version listed in addon.xml https://github.com/ivankokan/xbmc.plugin.video.nba/blob/master/addon.xml - but it is time to upgrade everything, master or some explicit newer version will do.)

@dagwieers
Copy link
Collaborator

Aha, this is v0.3.3? So no, it does not have a setup.py yet.
Why would you do this for v0.3.3 specifically?

@ivankokan
Copy link
Author

ivankokan commented Oct 23, 2019

Aha, this is v0.3.3? So no, it does not have a setup.py yet.
Why would you do this for v0.3.3 specifically?

Just to have the environment synced with the code itself. :) Nevermind, it is time for upgrade!

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

2 participants