dwg2dxf converter

504 views
Skip to first unread message

Elon Kim

unread,
Nov 25, 2020, 4:44:23 AM11/25/20
to python-ezdxf
Hi, 

I discovered ezdxf a couple of weeks ago.
First, I tested in Windows os and it works great.

Finally, I have to tested sample in linux server. it didn't work.
I thought that's because our linux server hasn't any display devices.

So, I tried to install xvfb package and try again.
That's finally messages from your addon function.

Traceback (most recent call last):
  File "run_odafileconverter.py", line 4, in <module>
    doc = odafc.readfile('test.dwg')
  File "/usr/local/lib/python3.7/site-packages/ezdxf/addons/odafc.py", line 79, in readfile
    _execute_odafc(args)
  File "/usr/local/lib/python3.7/site-packages/ezdxf/addons/odafc.py", line 238, in _execute_odafc
    raise ODAFCError(msg)
ezdxf.addons.odafc.ODAFCError: ODA File Converter failed: return code = 0.
stdout: 
stderr: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
QVncServer created on port 5900
Quit (core dumped)

It's really hard to figure out what's happening in code anymore. please help us and let us know how could we solve this problem.
I wrote down our environ bellow, if you any further information about our source code then reply to me. Thank's a lot.

- our environments (using docker)
  - ubuntu 18.04
  - python 3.7

Manfred Moitzi

unread,
Nov 25, 2020, 7:17:27 AM11/25/20
to python-ezdxf


---------- Forwarded message ---------
Von: Manfred Moitzi <manfred...@gmail.com>
Date: Mi., 25. Nov. 2020 um 11:35 Uhr
Subject: Re: [python-ezdxf] dwg2dxf converter
To: Elon Kim <el...@archisketch.com>


Hi!

This is not really an ezdxf issue and I can't help you (no experience with that topic), best chances to get help for this topic is to open an issue at github or ask this question on stackoverflow in the kind of: How to use the ODA FileConverter in  conjunction with ezdxf on a linux server?

Best regards,
Manfred

--
You received this message because you are subscribed to the Google Groups "python-ezdxf" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-ezdxf...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python-ezdxf/6362a0da-a836-4503-a0f7-fa845144ca3cn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages