Suggestion: Simple Environment Check in Windows Installer
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
Línea de trabajo
El issue no proporciona ningún archivo fuente del instalador, punto de entrada ni prueba desde la que empezar. Primero reproduce la instalación de Windows con un entorno Python/CadQuery existente y compárala con el resultado en un entorno limpio descrito aquí. Se considera terminado cuando se hayan acordado las condiciones del entorno que se deben detectar y se haya documentado o probado el comportamiento de advertencia resultante.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Hi CQ-editor team,
I'm a noob (as in "eager mechanical engineer and OpenSCAD user with no background in software development") assisted by Cascade (an AI assistant) and I encountered a situation with the Windows installer that I thought might be worth sharing.
Issue:
When I first ran the installer, it somehow picked up an old CadQuery 0.2.1 version instead of 2.4.0. Apparently existing Python/CadQuery installations were affecting the installation process. Maybe because I ran an old installer in the first place?
What Helped:
After succeeding with a Conda install (after many trials and errors and help from Cascade) I came back to the windows installer to see what was wrong and running it in a clean environment (thanks to a script Cascade created for me) solved the issue. The installer then worked perfectly, installing the correct versions.
Suggestion:
Would it be helpful to add an environment check to the installer? Maybe just a simple warning if it detects existing installations that might interfere?
Here is the script created by Cascade to run the installer in a clean environment, but I'm not sure if it will be useful to you as I'm quite new to this (to be saved as a .bat file):
@echo off
setlocal EnableDelayedExpansion
REM Save current PATH
set "ORIGINAL_PATH=%PATH%"
REM Create test directory
set "TEST_DIR=C:\CQ_Editor_Test"
if not exist "%TEST_DIR%" mkdir "%TEST_DIR%"
REM Copy installer to test directory
copy "contributing on CQ-editor Github\CQ-editor-master-Windows-x86_64.exe" "%TEST_DIR%"
REM Save current datetime for log
for /f "tokens=2 delims==" %%I in ('wmic os get localdatetime /value') do set datetime=%%I
set "LOGFILE=%TEST_DIR%\install_log_%datetime:~0,8%_%datetime:~8,6%.txt"
echo Testing CQ-editor installer > "%LOGFILE%"
echo Test started at: %date% %time% >> "%LOGFILE%"
echo Original PATH: %ORIGINAL_PATH% >> "%LOGFILE%"
REM Run installer
echo Running installer...
start /wait "" "%TEST_DIR%\CQ-editor-master-Windows-x86_64.exe"
REM Log post-installation PATH
echo. >> "%LOGFILE%"
echo Post-installation PATH: >> "%LOGFILE%"
echo %PATH% >> "%LOGFILE%"
REM Restore original PATH
set "PATH=%ORIGINAL_PATH%"
echo Test completed. Check %LOGFILE% for details.
echo Your original PATH has been restored.
pause
Note: You'll need to modify the installer path in the script to match where your CQ-editor installer is located on your system.
Thank you for creating such a great tool for the CAD community! I am so glad to finally be able to work with CadQuery after months of just reading the docs ^^U and quite a long journey to find my way to a working CQ-editor.
Please let me know if this contribution is worth at all, or if I could do better. I'll be more than happy to help.
- Lenguaje dominante
- Python
- Estrellas
- 1.3k
- Forks
- 211
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de CadQuery/CQ-editor
-
Dificultad 2/5 Medio día Aptitud para principiantes 78/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
-
Crash on renderAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
-
[Feature Request] Integration of a Visual Scripting Interface (Node-Based Editor) using RyvenAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
Todos los issues de CadQuery/CQ-editor
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
pydot/pydot#601 · 4 comentarios ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
letsencrypt/cp-cps#361 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
CI: startup_failure because callers grant fewer permissions than ledger-app-workflows@v1 declaresPosiblemente ocupada @maykonmichel la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
LedgerHQ/app-boilerplate-rust#227 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
linuxmint/mintupdate#1107 ·