FPGAwars / icestudio

:snowflake: Visual editor for open FPGA boards
https://icestudio.io
GNU General Public License v2.0
1.72k stars 247 forks source link

Verify design on network share fails #543

Open Stereocheck opened 3 years ago

Stereocheck commented 3 years ago

The same design copied to a local share verifies fine.

OS: Windows 10

Error: "TypeError: write() argument must be str, not bytes:"

Command output and stack trace:

set APIO_HOME_DIR="C:\Users\philm.icestudio\apio"& "C:\Users\philm.icestudio\venv\Scripts\apio.exe" verify --board TinyFPGA-BX -p "\Eriapus\Data1\Data\User\Phil\Dev\IceStudio\tiny_soc\blocks\ice-build\bram_512x8_pdp_ice40"

(DEBUG) Profile path: C:\Users\philm.icestudio\apio\profile.json (DEBUG) Home_dir: C:\Users\philm.icestudio\apio TypeError: write() argument must be str, not bytes: File "C:\Users\philm.icestudio\apio\packages\tool-scons\script..\engine\SCons\Script\Main.py", line 1361: _exec_main(parser, values) File "C:\Users\philm.icestudio\apio\packages\tool-scons\script..\engine\SCons\Script\Main.py", line 1324: _main(parser) File "C:\Users\philm.icestudio\apio\packages\tool-scons\script..\engine\SCons\Script\Main.py", line 1006: SCons.Script._SConscript._SConscript(fs, script) File "C:\Users\philm.icestudio\apio\packages\tool-scons\script..\engine\SCons\Script\SConscript.py", line 282: rdir._create() # Make sure there's a directory there. File "C:\Users\philm.icestudio\apio\packages\tool-scons\script..\engine\SCons\Node\FS.py", line 1799: SCons.Node.Node.build(dirnode) File "C:\Users\philm.icestudio\apio\packages\tool-scons\script..\engine\SCons\Node__init__.py", line 750: self.get_executor()(self, kw) File "C:\Users\philm.icestudio\apio\packages\tool-scons\script..\engine\SCons\Executor.py", line 396: return _do_execute_map[self._do_execute](self, target, kw) File "C:\Users\philm.icestudio\apio\packages\tool-scons\script..\engine\SCons\Executor.py", line 122: env = obj.get_build_env() File "C:\Users\philm.icestudio\apio\packages\tool-scons\script..\engine\SCons\Executor.py", line 366: env = self.env or SCons.Defaults.DefaultEnvironment() File "C:\Users\philm.icestudio\apio\packages\tool-scons\script..\engine\SCons\Defaults.py", line 88: _default_env = SCons.Environment.Environment(*args, *kw) File "C:\Users\philm.icestudio\apio\packages\tool-scons\script..\engine\SCons\Environment.py", line 982: apply_tools(self, tools, toolpath) File "C:\Users\philm.icestudio\apio\packages\tool-scons\script..\engine\SCons\Environment.py", line 107: env.Tool(tool) File "C:\Users\philm.icestudio\apio\packages\tool-scons\script..\engine\SCons\Environment.py", line 1789: tool(self) File "C:\Users\philm.icestudio\apio\packages\tool-scons\script..\engine\SCons\Tool__init__.py", line 298: self.generate(env, args, kw) File "C:\Users\philm.icestudio\apio\packages\tool-scons\script..\engine\SCons\Tool\default.py", line 41: SCons.Tool.Tool(t)(env) File "C:\Users\philm.icestudio\apio\packages\tool-scons\script..\engine\SCons\Tool__init__.py", line 298: self.generate(env, *args, **kw) File "C:\Users\philm.icestudio\apio\packages\tool-scons\script..\engine\SCons\Tool\mslink.py", line 313: msvc_setup_env_once(env) File "C:\Users\philm.icestudio\apio\packages\tool-scons\script..\engine\SCons\Tool\MSCommon\vc.py", line 439: msvc_setup_env(env) File "C:\Users\philm.icestudio\apio\packages\tool-scons\script..\engine\SCons\Tool\MSCommon\vc.py", line 554: d = msvc_find_valid_batch_script(env,version) File "C:\Users\philm.icestudio\apio\packages\tool-scons\script..\engine\SCons\Tool\MSCommon\vc.py", line 504: d = script_env(vc_script, args=arg) File "C:\Users\philm.icestudio\apio\packages\tool-scons\script..\engine\SCons\Tool\MSCommon\vc.py", line 385: stdout = common.get_output(script, args) File "C:\Users\philm.icestudio\apio\packages\tool-scons\script..\engine\SCons\Tool\MSCommon\common.py", line 202: sys.stderr.write(stderr) File "C:\Users\philm.icestudio\apio\packages\tool-scons\script..\engine\SCons\Util.py", line 1397: self.file.write(arg) ========================= [ ERROR ] Took 1.85 seconds =========================

Obijuan commented 2 years ago

I think this issue has been fixed in the latest icestudio wip. Could you please install it and try?

0.9.2w202205020505

You can download from here:

https://downloads.icestudio.io/

Stereocheck commented 2 years ago

Fails differently now.

"CMD.EXE was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows directory."

Still verifies fine locally.

It's possible I'm doing something wrong as I haven't looked at this for some time. Probably not that important. :)

set APIO_HOME_DIR="C:\Users\Phil.icestudio\apio"& set PATH=C:\Users\Phil.icestudio\venv\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\PuTTY\;C:\Program Files\Git\cmd;;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\dotnet\;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Ruby31-x64\bin;C:\Users\Phil\AppData\Local\Programs\Python\Python38\Scripts\;C:\Users\Phil\AppData\Local\Programs\Python\Python38\;C:\Users\Phil\AppData\Local\Microsoft\WindowsApps;C:\Users\Phil.dotnet\tools;C:\Users\Phil\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\CMake\bin& "C:\Users\Phil.icestudio\venv\Scripts\apio.exe" verify --board TinyFPGA-BX -p "\narvi\Data1\Data\User\Phil\Dev\IceStudio\tiny_soc\blocks\ice-build\bram_512x8_pdp_ice40"

(DEBUG) Profile path: C:\Users\Phil.icestudio\apio\profile.json (DEBUG) Home_dir: C:\Users\Phil.icestudio\apio

PATH: C:\Users\Phil.icestudio\apio\packages\tools-oss-cad-suite\bin;C:\Users\Phil.icestudio\apio\packages\tools-oss-cad-suite\lib;bin;C:\Users\Phil.icestudio\venv\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\PuTTY\;C:\Program Files\Git\cmd;;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\dotnet\;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Ruby31-x64\bin;C:\Users\Phil\AppData\Local\Programs\Python\Python38\Scripts\;C:\Users\Phil\AppData\Local\Programs\Python\Python38\;C:\Users\Phil\AppData\Local\Microsoft\WindowsApps;C:\Users\Phil.dotnet\tools;C:\Users\Phil\AppData\Local\Programs\Microsoft VS Code\bin;C:\Program Files\CMake\bin

---> WARNING: no PCF file found (.pcf)

iverilog -o hardware.out -D VCD_OUTPUT= -D NO_ICE40_DEFAULT_ASSIGNMENTS "C:\Users\Phil.icestudio\apio\packages\tools-oss-cad-suite\share\yosys/ice40/cells_sim.v" main.v '\narvi\Data1\Data\User\Phil\Dev\IceStudio\tiny_soc\blocks\ice-build\bram_512x8_pdp_ice40'

main.v: No such file or directory Preprocessor failed with 1 errors. scons: *** [hardware.out] Error 1