ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • mblock - ‘get_shield’κ°€ μ—†μŠ΅λ‹ˆλ‹€.
    SW/mBlock 2022. 7. 27. 21:09

      μ΅œμ‹ λ²„μ „μ˜ mBlock v5.4.0을 μ‹€ν–‰ μ‹œ 2022λ…„ 2μ›” 8일에 μΆœμ‹œλœ μ‚¬μ΄λ²„νŒŒμ΄ 버전 0.0.7이 μ„€μΉ˜λ˜μ–΄ μžˆμ–΄ 일뢀 였λ₯˜κ°€ λ°œμƒν•˜κ³  μžˆμŠ΅λ‹ˆλ‹€. ‘cyberpi.get_shield’ 였λ₯˜μ˜ 해결책은 버그가 μˆ˜μ •λ˜κΈ° μ „κΉŒμ§€λŠ” μ‚¬μ΄λ²„νŒŒμ΄ 버전 0.0.5둜 λŒμ•„κ°€λŠ” κ²ƒμž…λ‹ˆλ‹€. λ‹€μŒκ³Ό 같은 κ°„λ‹¨ν•œ ν”„λ‘œκ·Έλž¨μ„ μ‹€ν–‰ν•˜μ˜€μ„ λ•Œ μ•„λž˜μ™€ 같은 였λ₯˜λ©”μ‹œμ§€κ°€ λ°œκ²¬λœλ‹€λ©΄ 파이썬 νŽΈμ§‘κΈ°μ—μ„œ ν•΄κ²° 방법에 μ œμ‹œλœ μ„Έ μ€„μ˜ λͺ…λ Ήμ–΄λ₯Ό μž‘μ„±ν•˜κ³  싀행을 ν•˜κ³  λ‹€μ‹œ ν”„λ‘œκ·Έλž¨μ„ μ‹€ν–‰ν•˜μ‹œκΈ° λ°”λžλ‹ˆλ‹€.

     

    import cyberpi

    print('hello world')

     

    였λ₯˜λ©”μ‹œμ§€
    Traceback (most recent call last):
    File "C:\Users\pnaze\.mcode\virtualFS\projects\default\/hellomakeblock/test.py", line 1, in <module>
    import cyberpi
    File "C:\Users\pnaze\.mcode\site-packages\cyberpi\__init__.py", line 11, in <module>
    get_shield=cyberpi.get_shield
    AttributeError: module 'makeblock.modules.cyberpi.api_cyberpi_api' has no attribute 'get_shield'
    ν•΄κ²° 방법
    import subprocess
    import sys
    subprocess.check_call([sys.executable, "-m", "pip", "install", "cyberpi==0.0.5"])

    λŒ“κΈ€

Designed by Tistory.