× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
error in demjson setup command: use_2to3 is invalid.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
But now I have this other error and I don’t know how to fix it, does anyone have a suggestion?
TKS
(pipenv) C:\Users\gianf\pipenv\Scripts>aip build --board=wio_terminal
Traceback (most recent call last):
File “C:\Python310\lib\runpy.py”, line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File “C:\Python310\lib\runpy.py”, line 86, in run_code
exec(code, run_globals)
File "C:\Users\gianf\pipenv\Scripts\aip.exe_main.py", line 7, in
File “C:\Users\gianf\pipenv\lib\site-packages\aip\main.py”, line 52, in main
from aip.command import commands_dict, parse_command
File “C:\Users\gianf\pipenv\lib\site-packages\aip\command.py”, line 46, in
from aip.build import buildCommand
File “C:\Users\gianf\pipenv\lib\site-packages\aip\build.py”, line 40, in
from aip.utils import SerialUtils
File “C:\Users\gianf\pipenv\lib\site-packages\aip\utils.py”, line 30, in
import demjson
File “C:\Users\gianf\pipenv\lib\site-packages\demjson.py”, line 645
class json_int( (1L).class ): # Have to specify base this way to satisfy 2to3
^
SyntaxError: invalid decimal literal
Tips to fix -
Make sure that your device has enough space.
Run Windows Update a few times.
Check third-party drivers and download any updates.
Unplug extra hardware.
Check Device Manager for errors.
Remove third-party security software.
Repair hard-drive errors.
Do a clean restart into Windows.
Apparently ardupy-aip is behind on maintenance and the source project has been archived.
I have done a quick-fix that seems to work for Python3 by updating the code to us demjson3
feel free to install version 1.0.0.post1 using pip install -U git+https://github.com/Josverl/ardupy-aip.git
Hi @Josverl, I still have problems installing boards in aip despite using your version. I am attaching the error reported to me by python:
C:\Users\gianf>aip build --board=wio_terminal
Downloading ArduPyCore-samd-1.3.0.tar.bz2…
ERROR: unpack_url() missing 1 required positional argument: ‘verbosity’
ERROR: Exception:
Traceback (most recent call last):
File “C:\Python311\Lib\site-packages\aip\build.py”, line 321, in downloadAll
unpack_url(
TypeError: unpack_url() missing 1 required positional argument: ‘verbosity’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “C:\Python311\Lib\site-packages\pip_internal\cli\base_command.py”, line 160, in exc_logging_wrapper
status = run_func(*args)
^^^^^^^^^^^^^^^
File “C:\Python311\Lib\site-packages\aip\build.py”, line 382, in run
self.downloadAll(seesion)
File “C:\Python311\Lib\site-packages\aip\build.py”, line 329, in downloadAll
os.remove(ardupycoredir)
FileNotFoundError: [WinError 3] Impossibile trovare il percorso specificato: ‘C:\Users\gianf\AppData\Roaming\aip\ardupycore\Seeeduino\hardware\samd\1.3.0\core’
These are the package installed in Python:
C:\Users\gianf>pip list
Package Version
ardupy-aip 1.0.0.post1
ardupy-mpfshell 1.1.2
certifi 2022.12.7
charset-normalizer 3.1.0
colorama 0.4.6
demjson 1.6
demjson3 3.0.6
idna 3.4
pip 23.0.1
pyserial 3.5
pyusb 1.2.1
requests 2.28.2
setuptools 65.5.0
urllib3 1.26.15
websocket-client 1.5.1
can you help me? for me it is important to be able to load the bin directly on WIO_TERMINAL