GithubHelp home page GithubHelp logo

idemenv's People

Stargazers

 avatar  avatar

Watchers

 avatar

idemenv's Issues

macOS idem install does not copy to '~/.idemenv/bin' dir + errors in [14269] Failed to execute script 'idem' due to unhandled exception!

The idem install latest followed by idem use latest does not create a ~/.idemenv/bin dir nor does it copy the specified idem binary there.

So I have tried duplicating the output of idem exec test.version that is shown on the github page by instead entering the direct path to the binary in ~/.idemenv/versions but that does not like the command either?

Typing gives me:

~/.idemenv/versions/idem-v18.10.3 exec test.version
[14268] WARNING: file already exists but should not: /var/folders/rh/gz_zx7rs21d0yvw21xgxsplm0000gn/T/_MEIJ1NmZj/aiokafka/record/_crecords/cutil.cpython-39-darwin.so
[14268] WARNING: file already exists but should not: /var/folders/rh/gz_zx7rs21d0yvw21xgxsplm0000gn/T/_MEIJ1NmZj/aiokafka/record/_crecords/default_records.cpython-39-darwin.so
[14268] WARNING: file already exists but should not: /var/folders/rh/gz_zx7rs21d0yvw21xgxsplm0000gn/T/_MEIJ1NmZj/aiokafka/record/_crecords/legacy_records.cpython-39-darwin.so
[14268] WARNING: file already exists but should not: /var/folders/rh/gz_zx7rs21d0yvw21xgxsplm0000gn/T/_MEIJ1NmZj/aiokafka/record/_crecords/memory_records.cpython-39-darwin.so
[14268] WARNING: file already exists but should not: /var/folders/rh/gz_zx7rs21d0yvw21xgxsplm0000gn/T/_MEIJ1NmZj/cryptography/hazmat/bindings/_openssl.abi3.so
[14268] WARNING: file already exists but should not: /var/folders/rh/gz_zx7rs21d0yvw21xgxsplm0000gn/T/_MEIJ1NmZj/cryptography/hazmat/bindings/_rust.abi3.so
[14268] WARNING: file already exists but should not: /var/folders/rh/gz_zx7rs21d0yvw21xgxsplm0000gn/T/_MEIJ1NmZj/lazy_object_proxy/cext.cpython-39-darwin.so
[14268] WARNING: file already exists but should not: /var/folders/rh/gz_zx7rs21d0yvw21xgxsplm0000gn/T/_MEIJ1NmZj/markupsafe/_speedups.cpython-39-darwin.so
[14268] WARNING: file already exists but should not: /var/folders/rh/gz_zx7rs21d0yvw21xgxsplm0000gn/T/_MEIJ1NmZj/msgpack/_cmsgpack.cpython-39-darwin.so
[14268] WARNING: file already exists but should not: /var/folders/rh/gz_zx7rs21d0yvw21xgxsplm0000gn/T/_MEIJ1NmZj/multidict/_multidict.cpython-39-darwin.so
[14268] WARNING: file already exists but should not: /var/folders/rh/gz_zx7rs21d0yvw21xgxsplm0000gn/T/_MEIJ1NmZj/yaml/_yaml.cpython-39-darwin.so
[14268] WARNING: file already exists but should not: /var/folders/rh/gz_zx7rs21d0yvw21xgxsplm0000gn/T/_MEIJ1NmZj/yarl/_quoting_c.cpython-39-darwin.so
Traceback (most recent call last):
  File "/private/var/folders/c6/10qfzy9x1qx7zhyc97t_yv_40000gn/T/tmpwgbqfwdl/bin/idem", line 44, in <module>
  File "idem/scripts.py", line 8, in start
  File "pop/contract.py", line 210, in __call__
  File "/var/folders/rh/gz_zx7rs21d0yvw21xgxsplm0000gn/T/_MEIJ1NmZj/idem/idem/init.py", line 43, in cli
    retcode = hub.pop.Loop.run_until_complete(hub.idem.init.cli_apply())
  File "asyncio/base_events.py", line 647, in run_until_complete
  File "pop/contract.py", line 292, in __call__
  File "/var/folders/rh/gz_zx7rs21d0yvw21xgxsplm0000gn/T/_MEIJ1NmZj/idem/idem/init.py", line 81, in cli_apply
    return await hub.idem.cli.exec()
  File "pop/contract.py", line 292, in __call__
  File "/var/folders/rh/gz_zx7rs21d0yvw21xgxsplm0000gn/T/_MEIJ1NmZj/idem/idem/cli.py", line 107, in exec_
    ret = await hub.idem.ex.run(
  File "pop/contract.py", line 292, in __call__
  File "/var/folders/rh/gz_zx7rs21d0yvw21xgxsplm0000gn/T/_MEIJ1NmZj/idem/idem/ex.py", line 28, in run
    func = hub[path]
  File "pop/hub.py", line 183, in __getitem__
  File "pop/hub.py", line 173, in __getattr__
  File "pop/contract.py", line 210, in __call__
  File "/var/folders/rh/gz_zx7rs21d0yvw21xgxsplm0000gn/T/_MEIJ1NmZj/pop/mods/pop/ref.py", line 14, in last
    return hub.pop.ref.path(ref)[-1]
  File "pop/contract.py", line 210, in __call__
  File "/var/folders/rh/gz_zx7rs21d0yvw21xgxsplm0000gn/T/_MEIJ1NmZj/pop/mods/pop/ref.py", line 25, in path
    ret.append(getattr(ret[-1], chunk))
  File "pop/loader.py", line 426, in __getattr__
AttributeError: version
[14269] Failed to execute script 'idem' due to unhandled exception!

I recognise the various lines of WARNING: file already exists but should not: as something akin to the upstream idem issues
on the vmware idem gitlab repo.
On macOS https://gitlab.com/vmware/idem/idem/-/issues/46
On linux https://gitlab.com/vmware/idem/idem/-/issues/43
On windows https://gitlab.com/vmware/idem/idem/-/issues/45

But the rest of the unhandled expecption looks different to me.

windows AttributeError: 'idemenv' has no attribute 'init'

When I follow the instructions on windows and try to run the first idemenv cmd idemenv list-remote it fails with:

(saltenv) PS C:\temp\idemenv> idemenv list-remote
Traceback (most recent call last):
  File "C:\temp\idemenv\.venv\Scripts\idemenv-script.py", line 33, in <module>
    sys.exit(load_entry_point('idemenv', 'console_scripts', 'idemenv')())
  File "c:\temp\idemenv\idemenv\scripts.py", line 8, in start
    hub["idemenv"].init.cli()
  File "C:\temp\idemenv\.venv\lib\site-packages\pop\hub.py", line 411, in __getattr__
    raise AttributeError(f"'{self._subname}' has no attribute '{item}'")
AttributeError: 'idemenv' has no attribute 'init'

Here is a bit of history to show what I did before this happened:

(saltenv) PS C:\temp\idemenv> "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\Tools\VsMSBuildCmd.bat"
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\Tools\VsMSBuildCmd.bat
(saltenv) PS C:\temp\idemenv> pip install -e .
Obtaining file:///C:/temp/idemenv
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: pop>=17.0 in c:\temp\idemenv\.venv\lib\site-packages (from idemenv==0.2.0) (21.0.2)
Requirement already satisfied: bs4 in c:\temp\idemenv\.venv\lib\site-packages (from idemenv==0.2.0) (0.0.1)
Requirement already satisfied: pop-aiohttp in c:\temp\idemenv\.venv\lib\site-packages (from idemenv==0.2.0) (1.1.0)
Requirement already satisfied: lazy-object-proxy in c:\temp\idemenv\.venv\lib\site-packages (from pop>=17.0->idemenv==0.2.0) (1.7.1)
Requirement already satisfied: PyYAML in c:\temp\idemenv\.venv\lib\site-packages (from pop>=17.0->idemenv==0.2.0) (6.0)
Requirement already satisfied: pop-config>=8.0.2 in c:\temp\idemenv\.venv\lib\site-packages (from pop>=17.0->idemenv==0.2.0) (9.0.0)
Requirement already satisfied: pop-loop>=1.0.3 in c:\temp\idemenv\.venv\lib\site-packages (from pop>=17.0->idemenv==0.2.0) (1.0.4)
Requirement already satisfied: dict-toolbox>=2.1.2 in c:\temp\idemenv\.venv\lib\site-packages (from pop>=17.0->idemenv==0.2.0) (2.3.0)
Requirement already satisfied: beautifulsoup4 in c:\temp\idemenv\.venv\lib\site-packages (from bs4->idemenv==0.2.0) (4.11.1)
Requirement already satisfied: acct>=6.4.1 in c:\temp\idemenv\.venv\lib\site-packages (from pop-aiohttp->idemenv==0.2.0) (8.2.1)
Requirement already satisfied: aiohttp[speedups] in c:\temp\idemenv\.venv\lib\site-packages (from pop-aiohttp->idemenv==0.2.0) (3.8.1)
Requirement already satisfied: pop-serial>=1.0.0 in c:\temp\idemenv\.venv\lib\site-packages (from acct>=6.4.1->pop-aiohttp->idemenv==0.2.0) (1.1.0)
Requirement already satisfied: aiofiles in c:\temp\idemenv\.venv\lib\site-packages (from acct>=6.4.1->pop-aiohttp->idemenv==0.2.0) (0.8.0)
Requirement already satisfied: rend>=6.3.1 in c:\temp\idemenv\.venv\lib\site-packages (from acct>=6.4.1->pop-aiohttp->idemenv==0.2.0) (6.4.4)
Requirement already satisfied: cryptography in c:\temp\idemenv\.venv\lib\site-packages (from acct>=6.4.1->pop-aiohttp->idemenv==0.2.0) (37.0.4)
Requirement already satisfied: msgpack!=0.5.5,>=0.5 in c:\temp\idemenv\.venv\lib\site-packages (from dict-toolbox>=2.1.2->pop>=17.0->idemenv==0.2.0) (1.0.4)
Requirement already satisfied: sniffio in c:\temp\idemenv\.venv\lib\site-packages (from pop-loop>=1.0.3->pop>=17.0->idemenv==0.2.0) (1.2.0)
Requirement already satisfied: nest-asyncio in c:\temp\idemenv\.venv\lib\site-packages (from pop-loop>=1.0.3->pop>=17.0->idemenv==0.2.0) (1.5.5)
Requirement already satisfied: attrs>=17.3.0 in c:\temp\idemenv\.venv\lib\site-packages (from aiohttp[speedups]->pop-aiohttp->idemenv==0.2.0) (21.4.0)
Requirement already satisfied: yarl<2.0,>=1.0 in c:\temp\idemenv\.venv\lib\site-packages (from aiohttp[speedups]->pop-aiohttp->idemenv==0.2.0) (1.7.2)
Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in c:\temp\idemenv\.venv\lib\site-packages (from aiohttp[speedups]->pop-aiohttp->idemenv==0.2.0) (4.0.2)
Requirement already satisfied: charset-normalizer<3.0,>=2.0 in c:\temp\idemenv\.venv\lib\site-packages (from aiohttp[speedups]->pop-aiohttp->idemenv==0.2.0) (2.1.0)
Requirement already satisfied: frozenlist>=1.1.1 in c:\temp\idemenv\.venv\lib\site-packages (from aiohttp[speedups]->pop-aiohttp->idemenv==0.2.0) (1.3.0)
Requirement already satisfied: multidict<7.0,>=4.5 in c:\temp\idemenv\.venv\lib\site-packages (from aiohttp[speedups]->pop-aiohttp->idemenv==0.2.0) (6.0.2)
Requirement already satisfied: aiosignal>=1.1.2 in c:\temp\idemenv\.venv\lib\site-packages (from aiohttp[speedups]->pop-aiohttp->idemenv==0.2.0) (1.2.0)
Requirement already satisfied: Brotli in c:\temp\idemenv\.venv\lib\site-packages (from aiohttp[speedups]->pop-aiohttp->idemenv==0.2.0) (1.0.9)
Requirement already satisfied: cchardet in c:\temp\idemenv\.venv\lib\site-packages (from aiohttp[speedups]->pop-aiohttp->idemenv==0.2.0) (2.1.7)
Requirement already satisfied: aiodns in c:\temp\idemenv\.venv\lib\site-packages (from aiohttp[speedups]->pop-aiohttp->idemenv==0.2.0) (3.0.0)
Requirement already satisfied: soupsieve>1.2 in c:\temp\idemenv\.venv\lib\site-packages (from beautifulsoup4->bs4->idemenv==0.2.0) (2.3.2.post1)
Requirement already satisfied: jinja2>=3.0.1 in c:\temp\idemenv\.venv\lib\site-packages (from rend>=6.3.1->acct>=6.4.1->pop-aiohttp->idemenv==0.2.0) (3.1.2)
Requirement already satisfied: toml in c:\temp\idemenv\.venv\lib\site-packages (from rend>=6.3.1->acct>=6.4.1->pop-aiohttp->idemenv==0.2.0) (0.10.2)
Requirement already satisfied: colored in c:\temp\idemenv\.venv\lib\site-packages (from rend>=6.3.1->acct>=6.4.1->pop-aiohttp->idemenv==0.2.0) (1.4.3)
Requirement already satisfied: idna>=2.0 in c:\temp\idemenv\.venv\lib\site-packages (from yarl<2.0,>=1.0->aiohttp[speedups]->pop-aiohttp->idemenv==0.2.0) (3.3)
Requirement already satisfied: pycares>=4.0.0 in c:\temp\idemenv\.venv\lib\site-packages (from aiodns->aiohttp[speedups]->pop-aiohttp->idemenv==0.2.0) (4.2.1)
Requirement already satisfied: cffi>=1.12 in c:\temp\idemenv\.venv\lib\site-packages (from cryptography->acct>=6.4.1->pop-aiohttp->idemenv==0.2.0) (1.15.1)
Requirement already satisfied: pycparser in c:\temp\idemenv\.venv\lib\site-packages (from cffi>=1.12->cryptography->acct>=6.4.1->pop-aiohttp->idemenv==0.2.0) (2.21)
Requirement already satisfied: MarkupSafe>=2.0 in c:\temp\idemenv\.venv\lib\site-packages (from jinja2>=3.0.1->rend>=6.3.1->acct>=6.4.1->pop-aiohttp->idemenv==0.2.0) (2.1.1)
Installing collected packages: idemenv
  Attempting uninstall: idemenv
    Found existing installation: idemenv 0.2.0
    Uninstalling idemenv-0.2.0:
      Successfully uninstalled idemenv-0.2.0
  Running setup.py develop for idemenv
Successfully installed idemenv-0.2.0
(saltenv) PS C:\temp\idemenv>
(saltenv) PS C:\temp\idemenv> which idemenv
C:\temp\idemenv\.venv\Scripts\idemenv.exe
(saltenv) PS C:\temp\idemenv> idemenv list-remote
Traceback (most recent call last):
  File "C:\temp\idemenv\.venv\Scripts\idemenv-script.py", line 33, in <module>
    sys.exit(load_entry_point('idemenv', 'console_scripts', 'idemenv')())
  File "c:\temp\idemenv\idemenv\scripts.py", line 8, in start
    hub["idemenv"].init.cli()
  File "C:\temp\idemenv\.venv\lib\site-packages\pop\hub.py", line 411, in __getattr__
    raise AttributeError(f"'{self._subname}' has no attribute '{item}'")
AttributeError: 'idemenv' has no attribute 'init'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.