Advanced Feeder bug: Can only insert once

Hello all,

I was playing around with the advanced feeder and noticed the following:

When I import the Feeder for the first time after restarting VC (Professional 4.10), it loads correctly. However, the next time I try to insert an advanced feeder into the simulation world, I get the following trace log:

Reading model from file: C:\Users\Public\Documents\Visual Components\4.10\Models\Components\Visual Components\Feeders\Advanced Feeder.vcmx
Traceback (most recent call last):
File “Advanced Feeder::ConfigureScript”, line 2, in
File “C:\Program Files\Visual Components\Visual Components Professional 4.10\Python 2\Lib\site-packages\openpyxl_init_.py”, line 6, in
from openpyxl.workbook import Workbook
File “C:\Program Files\Visual Components\Visual Components Professional 4.10\Python 2\Lib\site-packages\openpyxl\workbook_init_.py”, line 5, in
from .workbook import Workbook
File “C:\Program Files\Visual Components\Visual Components Professional 4.10\Python 2\Lib\site-packages\openpyxl\workbook\workbook.py”, line 8, in
from openpyxl.worksheet.worksheet import Worksheet
File “C:\Program Files\Visual Components\Visual Components Professional 4.10\Python 2\Lib\site-packages\openpyxl\worksheet\worksheet.py”, line 29, in
from openpyxl.cell import Cell, MergedCell
File “C:\Program Files\Visual Components\Visual Components Professional 4.10\Python 2\Lib\site-packages\openpyxl\cell_init_.py”, line 4, in
from .cell import Cell, WriteOnlyCell, MergedCell
File “C:\Program Files\Visual Components\Visual Components Professional 4.10\Python 2\Lib\site-packages\openpyxl\cell\cell.py”, line 46, in
from openpyxl.utils.inference import (
File “C:\Program Files\Visual Components\Visual Components Professional 4.10\Python 2\Lib\site-packages\openpyxl\utils\inference.py”, line 10, in
from openpyxl.styles import numbers
File “C:\Program Files\Visual Components\Visual Components Professional 4.10\Python 2\Lib\site-packages\openpyxl\styles_init_.py”, line 5, in
from .alignment import Alignment
File “C:\Program Files\Visual Components\Visual Components Professional 4.10\Python 2\Lib\site-packages\openpyxl\styles\alignment.py”, line 6, in
from openpyxl.descriptors import Bool, MinMax, Min, Alias, NoneSet
File “C:\Program Files\Visual Components\Visual Components Professional 4.10\Python 2\Lib\site-packages\openpyxl\descriptors_init_.py”, line 5, in
from .sequence import Sequence
File “C:\Program Files\Visual Components\Visual Components Professional 4.10\Python 2\Lib\site-packages\openpyxl\descriptors\sequence.py”, line 5, in
from openpyxl.xml.functions import Element
File “C:\Program Files\Visual Components\Visual Components Professional 4.10\Python 2\Lib\site-packages\openpyxl\xml\functions.py”, line 103, in
register_namespace(DCTERMS_PREFIX, DCTERMS_NS)
File “C:\Program Files\Visual Components\Visual Components Professional 4.10\Python 2\Lib\xml\etree\ElementTree.py”, line 1025, in register_namespace
if re.match(“ns\d+$”, prefix):
AttributeError: ‘NoneType’ object has no attribute ‘match’

This problem persists, independent on whether or not I have any other objects present in my environment.

I was also able to replicate the issue on a different PC.

Is this problem known?

Hello,
It’s a known issue and has been reported several times. It’s related to importing Python library openpyxl and affects eCat components Advanced Feeder and Excel Reader.
Unfortunately there’s no quick fix. In release 5.0 it’s possible to use Python 3 instead of Python 2, which might or might not solve this problem due to a more robust importing mechanism. Anyhow, there’s no immediate fix available for this.

1 Like