Problemas ao usar XPM

30 views
Skip to first unread message

Matheus

unread,
Jun 3, 2025, 9:56:56 AMJun 3
to SciELO XML - SciELO Publishing Schema
Prezados, boa tarde!

Estou enfrentando um problema ao tentar gerar o XPM, já olhei no grupo e não encontrei nenhum problema parecido com esse ou de como resolve-lo, segue o erro abaixo e o arquivo:
c:\SciELO_XPM\xml>python xml_package_maker.py
Processing...
Making package...
......
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Users\Aline\AppData\Local\Programs\Python\Python311\Lib\tkinter\__init__.py", line 1948, in __call__
    return self.func(*args)
           ^^^^^^^^^^^^^^^^
  File "c:\SciELO_XPM\xml\app_modules\app\interface.py", line 116, in run_xml_package_maker
    msg, color = self.function(self.selected_folder, self.generate_pmc_package)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\SciELO_XPM\xml\app_modules\app\xpm.py", line 130, in call_make_package
    normalized_pkgfiles, outputs = pkg_processors.normalize_xml_packages(xml_list, 'remote', self.proc.stage)
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\SciELO_XPM\xml\app_modules\app\pkg_processors\pkg_processors.py", line 93, in normalize_xml_packages
    xmlcontent = sps_pkgmaker.SPSXMLContent(fs_utils.read_file(src.filename))
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\SciELO_XPM\xml\app_modules\app\pkg_processors\sps_pkgmaker.py", line 15, in __init__
    xml_utils.XMLContent.__init__(self, content)
  File "c:\SciELO_XPM\xml\app_modules\generics\xml_utils.py", line 70, in __init__
    xml = xml.strip()
          ^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'strip'

1804-9460-spmj-143-4-e2023261.xml

Publicação SciELO

unread,
Jun 3, 2025, 10:22:49 AMJun 3
to sciel...@googlegroups.com, tecnologia
Prezado Matheus, bom dia! 

Sua pergunta será respondida por nossa equipe de tecnologia. Por favor, aguarde o contato.

Atenciosamente,

Anderson Santos
Unidade de Produção - Núcleo de Publicação
SciELO - Scientific Electronic Library Online
CAPES - CNPq - FAPESP - BIREME - FapUNIFESP
www.scielo.org | www.scielo.br
____________________________________________


--
SciELO - Scientific Electronic Library Online
FAPESP - CAPES - CNPq - BIREME - FAP UNIFESP
www.scielo.org | www.scielo.br
---
You received this message because you are subscribed to the Google Groups "SciELO XML - SciELO Publishing Schema" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scielo-xml+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/scielo-xml/212db318-29b2-4762-8763-08f768bf574bn%40googlegroups.com.

Esta mensagem pode conter informação confidencial, sendo seu sigilo protegido por lei. Se você não for o destinatário ou a pessoa autorizada a receber esta mensagem, não pode usar, copiar ou divulgar as informações nela contidas ou tomar qualquer ação baseada nessas informações. Se você recebeu esta mensagem por engano, por favor, avise imediatamente ao remetente, respondendo o e-mail e em seguida apague-a. Agradecemos sua cooperação.


This message may contain confidential information and its confidentiality is protected by law. If you are not the addressed or authorized person to receive this message, you must not use, copy, disclose or take any action based on it or any information herein. If you have received this message by mistake, please advise the sender immediately by replying the e-mail and then deleting it. Thank you for your cooperation.

Roberta Takenaka

unread,
Jun 3, 2025, 3:03:23 PMJun 3
to sciel...@googlegroups.com
Prezado Matheus

O comando python xml_package_maker.py deveria abrir um formulário para receber um arquivo ou funcionaria com 

python xml_package_maker.py caminho do xml

Supeito que a versão de python não está compatível. Como não temos atualizado as ferramentas, a versão está parada no python 2.

O XPM funcionava e parou de funcionar? É uma instalação nova?
Você é usuário iniciante do XPM? Já usa faz tempo?
Isso ocorre só com este arquivo? Ou acontece com todos?


É possível que esteja usando python 3 (não funciona) no lugar do indicado que é python 2?
Para confirmar, execute no terminal:
python -V 

Roberta Takenaka (she/her)
Coordinator | Coordinadora | Coordenadora
Systems Development 
Desarrollo de Sistemas
Desenvolvimentos de Sistemas
SciELO - Scientific Electronic Library Online
CAPES - CNPq - FAPESP - BIREME - FapUNIFESP
______________________________
Rua Dr. Diogo de Faria, 1087 – 9º andar – Vila Clementino 04037-003 São Paulo/SP - Brasil




--
SciELO - Scientific Electronic Library Online
FAPESP - CAPES - CNPq - BIREME - FAP UNIFESP
www.scielo.org | www.scielo.br
---
You received this message because you are subscribed to the Google Groups "SciELO XML - SciELO Publishing Schema" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scielo-xml+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/scielo-xml/212db318-29b2-4762-8763-08f768bf574bn%40googlegroups.com.

Matheus

unread,
Jun 3, 2025, 4:10:16 PMJun 3
to SciELO XML - SciELO Publishing Schema
Prezados, boa tarde!

O problema estava na versão do python mesmo, eu estava utilizando uma versão mais recente dele mas não tinha dado problema ainda usando ela, desinstalei a versão mais recente e instalei a recomendada e funcionou agora. Muito obrigado pela ajuda.

Reply all
Reply to author
Forward
0 new messages