-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help with OS Error #391
Comments
This should be fixed with the next release :
From the README: git clone https://github.com/wireviz/WireViz
cd WireViz
git checkout release/v0.4.1-rc
pip3 install -e . (replaced |
i have installed the development version and when i use prependet file i still get the same error message. it seems to have something to do with the length of the content of the .yml file because if i shorten it it works (even if i only delete comments) |
I can confirm this bug. The exception is raised with WireViz/src/wireviz/wireviz.py Line 419 in ba84c54
Fixed in PR #392 by: if type(e) is OSError and e.errno not in (EINVAL, ENAMETOOLONG, None): |
with the vesion wireviz-0.4.1.dev0 it does not work for me I have done everything once again as described in the first comment of @martinrieder |
@ElPi23 you need to checkout from here: |
Thank you many thanks for the fast and awesome support |
@ElPi23 I recommend you install the GitHub CLI, which allows to easily checkout PRs like this in the future:
As I wrote in #392 (comment), I still want to take a closer look at the root cause. Thanks again for reporting and also for confirming the fix! |
The relevant fixes are now merged into the |
Closed after releasing v0.4.1. |
Hello everyone,
I have received the following error and can't figure out what the problem is.
Error:
ERROR: Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "C:\Users\elias.pircher\AppData\Local\Programs\Python\Python312\Scripts\wireviz.exe\__main__.py", line 7, in File "C:\Users\elias.pircher\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1157, in __call__ return self.main(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\elias.pircher\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1078, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "C:\Users\elias.pircher\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 1434, in invoke return ctx.invoke(self.callback, **ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\elias.pircher\AppData\Local\Programs\Python\Python312\Lib\site-packages\click\core.py", line 783, in invoke return __callback(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\elias.pircher\AppData\Local\Programs\Python\Python312\Lib\site-packages\wireviz\wv_cli.py", line 141, in wireviz wv.parse( File "C:\Users\elias.pircher\AppData\Local\Programs\Python\Python312\Lib\site-packages\wireviz\wireviz.py", line 88, in parse yaml_data, yaml_file = _get_yaml_data_and_path(inp) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\elias.pircher\AppData\Local\Programs\Python\Python312\Lib\site-packages\wireviz\wireviz.py", line 416, in _get_yaml_data_and_path raise e File "C:\Users\elias.pircher\AppData\Local\Programs\Python\Python312\Lib\site-packages\wireviz\wireviz.py", line 406, in _get_yaml_data_and_path yaml_path = Path(inp).expanduser().resolve(strict=True) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\elias.pircher\AppData\Local\Programs\Python\Python312\Lib\pathlib.py", line 1240, in resolve s = self._flavour.realpath(self, strict=strict) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 730, in realpath OSError: _getfinalpathname: path too long for Windows
The YML file: YMLFILE.txt
I have already uninstalled and reinstalled wireviz without success
i have also tried to save the file to a location with a shorter path without success
Wireviz version: 4.0
Graphviz version 11.0.0 (20240428.1522)
Python 3.12.3
The text was updated successfully, but these errors were encountered: