[chirp_devel] New developer - some obstacles
Hello Chirp team,
I'm playing with the Chirp code for the Yaesu VX- 8 driver for about two weeks now, and I think I have fixes for issues #1615 (NFM not working), #129 and #1735 (incorrect initializations causing frequency offsets). Using "python chirpw", these fixes appear to work.
However, I can't get past two items before I commit my first patches.
1) I'm not able to run tox. The output on freshly downloaded from repository Chirp code is:
F:\Programming\CHiRP\chirp.hg\chirp>tox GLOB sdist-make: F:\Programming\CHiRP\chirp.hg\setup.py unit inst-nodeps: F:\Programming\CHiRP\chirp.hg.tox.tmp\package\1\UNKNOWN-0.0.0.zip ERROR: invocation failed (exit code 1), logfile: F:\Programming\CHiRP\chirp.hg.tox\unit\log\unit-7.log ================================== log start ================================== 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 Processing f:\programming\chirp\chirp.hg.tox.tmp\package\1\unknown-0.0.0.zip ERROR: Command errored out with exit status 1: command: 'F:\Programming\CHiRP\chirp.hg.tox\unit\Scripts\python.EXE' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\users\dl4mhk\appdata\local\temp\pip-req-build-6t1qd5\setup.py'"'"'; __file__='"'"'c:\users\dl4mhk\appdata\local\temp\pip-req-build-6t1qd5\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\dl4mhk\appdata\local\temp\pip-req-build-6t1qd5\pip-egg-info' cwd: c:\users\dl4mhk\appdata\local\temp\pip-req-build-6t1qd5\ Complete output (5 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "c:\users\dl4mhk\appdata\local\temp\pip-req-build-6t1qd5\setup.py", line 5, in <module> from chirp import CHIRP_VERSION ImportError: No module named chirp ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
=================================== log end =================================== driver inst-nodeps: F:\Programming\CHiRP\chirp.hg.tox.tmp\package\1\UNKNOWN-0.0.0.zip ERROR: invocation failed (exit code 1), logfile: F:\Programming\CHiRP\chirp.hg.tox\driver\log\driver-7.log ================================== log start ================================== 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 Processing f:\programming\chirp\chirp.hg.tox.tmp\package\1\unknown-0.0.0.zip ERROR: Command errored out with exit status 1: command: 'F:\Programming\CHiRP\chirp.hg.tox\driver\Scripts\python.EXE' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\users\dl4mhk\appdata\local\temp\pip-req-build-ddeyne\setup.py'"'"'; __file__='"'"'c:\users\dl4mhk\appdata\local\temp\pip-req-build-ddeyne\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\dl4mhk\appdata\local\temp\pip-req-build-ddeyne\pip-egg-info' cwd: c:\users\dl4mhk\appdata\local\temp\pip-req-build-ddeyne\ Complete output (5 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "c:\users\dl4mhk\appdata\local\temp\pip-req-build-ddeyne\setup.py", line 5, in <module> from chirp import CHIRP_VERSION ImportError: No module named chirp ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
=================================== log end =================================== style inst-nodeps: F:\Programming\CHiRP\chirp.hg.tox.tmp\package\1\UNKNOWN-0.0.0.zip ERROR: invocation failed (exit code 1), logfile: F:\Programming\CHiRP\chirp.hg.tox\style\log\style-7.log ================================== log start ================================== 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 Processing f:\programming\chirp\chirp.hg.tox.tmp\package\1\unknown-0.0.0.zip ERROR: Command errored out with exit status 1: command: 'F:\Programming\CHiRP\chirp.hg.tox\style\Scripts\python.EXE' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\users\dl4mhk\appdata\local\temp\pip-req-build-rk6uht\setup.py'"'"'; __file__='"'"'c:\users\dl4mhk\appdata\local\temp\pip-req-build-rk6uht\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\dl4mhk\appdata\local\temp\pip-req-build-rk6uht\pip-egg-info' cwd: c:\users\dl4mhk\appdata\local\temp\pip-req-build-rk6uht\ Complete output (5 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "c:\users\dl4mhk\appdata\local\temp\pip-req-build-rk6uht\setup.py", line 5, in <module> from chirp import CHIRP_VERSION ImportError: No module named chirp ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
=================================== log end =================================== ___________________________________ summary ___________________________________ ERROR: unit: InvocationError for command 'F:\Programming\CHiRP\chirp.hg.tox\unit\Scripts\python.EXE' -m pip install --no-deps -U '.tox.tmp\package\1\UNKNOWN-0.0.0.zip' (exited with code 1) ERROR: driver: InvocationError for command 'F:\Programming\CHiRP\chirp.hg.tox\driver\Scripts\python.EXE' -m pip install --no-deps -U '.tox.tmp\package\1\UNKNOWN-0.0.0.zip' (exited with code 1) ERROR: style: InvocationError for command 'F:\Programming\CHiRP\chirp.hg.tox\style\Scripts\python.EXE' -m pip install --no-deps -U '.tox.tmp\package\1\UNKNOWN-0.0.0.zip' (exited with code 1)
No module named chirp? What did I miss to do?
2) When trying to create a Windows executable using "run ./build/make_Win32_build.sh", it fails: this script is not present.
Running Python 2.7.17 on Windows 10.
Any input would be appreciated!
73, Bernhard AE6YN
However, I can't get past two items before I commit my first patches.
- I'm not able to run tox. The output on freshly downloaded from repository Chirp code is:
F:\Programming\CHiRP\chirp.hg\chirp>tox
You should be running this from the directory above (chirp.hg not chirp.hg/chirp).
- When trying to create a Windows executable using "run ./build/make_Win32_build.sh", it fails: this script is not present.
I removed this script a while ago as it was no longer useful or correct. You don't need to run it before or in order to submit your patch. If it says (or implies) so somewhere, let me know and I'll fix it.
Thanks!
--Dan
Hi Dan, all,
On 12/23/19 8:02 AM, Dan Smith via chirp_devel wrote:
However, I can't get past two items before I commit my first patches.
- I'm not able to run tox. The output on freshly downloaded from
repository Chirp code is: F:\Programming\CHiRP\chirp.hg\chirp>tox
You should be running this from the directory above (chirp.hg not chirp.hg/chirp).
Exactly the same output, and that was what I tried originally - see below for another test run in the correct directory. (The tox output in my previous mail came from a second test I did in the chirp subdirectory, but it's really the same thing.)
- When trying to create a Windows executable using "run
./build/make_Win32_build.sh", it fails: this script is not present.
I removed this script a while ago as it was no longer useful or correct. You don't need to run it before or in order to submit your patch. If it says (or implies) so somewhere, let me know and I'll fix it.
This can be found on https://chirp.danplanet.com/projects/chirp/wiki/DevelopersWin32Environment.
73 Bernhard AE6YN
F:\Programming\CHiRP\chirp.hg>tox GLOB sdist-make: F:\Programming\CHiRP\chirp.hg\setup.py unit inst-nodeps: F:\Programming\CHiRP\chirp.hg.tox.tmp\package\1\UNKNOWN-0.0.0.zip ERROR: invocation failed (exit code 1), logfile: F:\Programming\CHiRP\chirp.hg.tox\unit\log\unit-8.log ================================== log start ================================== 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 Processing f:\programming\chirp\chirp.hg.tox.tmp\package\1\unknown-0.0.0.zip ERROR: Command errored out with exit status 1: command: 'F:\Programming\CHiRP\chirp.hg.tox\unit\Scripts\python.EXE' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\users\dl4mhk\appdata\local\temp\pip-req-build-1zunen\setup.py'"'"'; __file__='"'"'c:\users\dl4mhk\appdata\local\temp\pip-req-build-1zunen\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\dl4mhk\appdata\local\temp\pip-req-build-1zunen\pip-egg-info' cwd: c:\users\dl4mhk\appdata\local\temp\pip-req-build-1zunen\ Complete output (5 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "c:\users\dl4mhk\appdata\local\temp\pip-req-build-1zunen\setup.py", line 5, in <module> from chirp import CHIRP_VERSION ImportError: No module named chirp ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
=================================== log end =================================== driver inst-nodeps: F:\Programming\CHiRP\chirp.hg.tox.tmp\package\1\UNKNOWN-0.0.0.zip ERROR: invocation failed (exit code 1), logfile: F:\Programming\CHiRP\chirp.hg.tox\driver\log\driver-8.log ================================== log start ================================== 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 Processing f:\programming\chirp\chirp.hg.tox.tmp\package\1\unknown-0.0.0.zip ERROR: Command errored out with exit status 1: command: 'F:\Programming\CHiRP\chirp.hg.tox\driver\Scripts\python.EXE' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\users\dl4mhk\appdata\local\temp\pip-req-build-h1dlry\setup.py'"'"'; __file__='"'"'c:\users\dl4mhk\appdata\local\temp\pip-req-build-h1dlry\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\dl4mhk\appdata\local\temp\pip-req-build-h1dlry\pip-egg-info' cwd: c:\users\dl4mhk\appdata\local\temp\pip-req-build-h1dlry\ Complete output (5 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "c:\users\dl4mhk\appdata\local\temp\pip-req-build-h1dlry\setup.py", line 5, in <module> from chirp import CHIRP_VERSION ImportError: No module named chirp ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
=================================== log end =================================== style inst-nodeps: F:\Programming\CHiRP\chirp.hg.tox.tmp\package\1\UNKNOWN-0.0.0.zip ERROR: invocation failed (exit code 1), logfile: F:\Programming\CHiRP\chirp.hg.tox\style\log\style-8.log ================================== log start ================================== 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 Processing f:\programming\chirp\chirp.hg.tox.tmp\package\1\unknown-0.0.0.zip ERROR: Command errored out with exit status 1: command: 'F:\Programming\CHiRP\chirp.hg.tox\style\Scripts\python.EXE' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'c:\users\dl4mhk\appdata\local\temp\pip-req-build-h5eqfu\setup.py'"'"'; __file__='"'"'c:\users\dl4mhk\appdata\local\temp\pip-req-build-h5eqfu\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\dl4mhk\appdata\local\temp\pip-req-build-h5eqfu\pip-egg-info' cwd: c:\users\dl4mhk\appdata\local\temp\pip-req-build-h5eqfu\ Complete output (5 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "c:\users\dl4mhk\appdata\local\temp\pip-req-build-h5eqfu\setup.py", line 5, in <module> from chirp import CHIRP_VERSION ImportError: No module named chirp ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
=================================== log end =================================== ___________________________________ summary ___________________________________ ERROR: unit: InvocationError for command 'F:\Programming\CHiRP\chirp.hg.tox\unit\Scripts\python.EXE' -m pip install --no-deps -U '.tox.tmp\package\1\UNKNOWN-0.0.0.zip' (exited with code 1) ERROR: driver: InvocationError for command 'F:\Programming\CHiRP\chirp.hg.tox\driver\Scripts\python.EXE' -m pip install --no-deps -U '.tox.tmp\package\1\UNKNOWN-0.0.0.zip' (exited with code 1) ERROR: style: InvocationError for command 'F:\Programming\CHiRP\chirp.hg.tox\style\Scripts\python.EXE' -m pip install --no-deps -U '.tox.tmp\package\1\UNKNOWN-0.0.0.zip' (exited with code 1)
F:\Programming\CHiRP\chirp.hg>
Exactly the same output, and that was what I tried originally - see below for another test run in the correct directory. (The tox output in my previous mail came from a second test I did in the chirp subdirectory, but it's really the same thing.)
Ack, well, maybe related to the setup.py path differences for py2exe to work on win32. I've honestly never tried on Windows, but since tox does an sdist, that might be related.
You can still run the driver tests using tests/run_tests.py although that won't work forever.
This can be found on https://chirp.danplanet.com/projects/chirp/wiki/DevelopersWin32Environment.
Just to be clear, that isn't related to actually submitting patches, just documentation about how that process works (worked) if you want. However, it's pretty outdated, obviously, so I nuked it.
--Dan
participants (2)
-
Bernhard Hailer
-
Dan Smith