GithubHelp home page GithubHelp logo

Comments (4)

hhlp avatar hhlp commented on August 23, 2024

@Zlopez I don't get any message normal Workstation here, with the procedure explained below works well here:

python setup.py extract_messages --output-file l10n/fedora/locale/asknot-ng.pot --input-dir=.

running extract_messages                                                                                   
extracting messages from questions/coala.yml                                                               
extracting messages from questions/fedora.yml                                                              
extracting messages from questions/gnome.yml                                                               
extracting messages from questions/includes/fedora/advocacy.yml                                            
extracting messages from questions/includes/fedora/cloud.yml                                               
extracting messages from questions/includes/fedora/coding.yml
extracting messages from questions/includes/fedora/community.yml
extracting messages from questions/includes/fedora/design.yml                                              
extracting messages from questions/includes/fedora/desktop.yml                                             
extracting messages from questions/includes/fedora/i18n.yml                                                
extracting messages from questions/includes/fedora/packaging.yml                                           
extracting messages from questions/includes/fedora/qa.yml                                                  
extracting messages from questions/includes/fedora/server.yml                                              
extracting messages from questions/includes/fedora/translation.yml                                         
extracting messages from questions/includes/fedora/writing.yml                                             
extracting messages from questions/includes/fedora/coding/c++.yml
extracting messages from questions/includes/fedora/coding/c.yml
extracting messages from questions/includes/fedora/coding/haskell.yml
extracting messages from questions/includes/fedora/coding/java.yml
extracting messages from questions/includes/fedora/coding/python.yml
extracting messages from questions/includes/fedora/coding/scala.yml
extracting messages from questions/includes/fedora/coding/web.yml
writing PO template file to l10n/fedora/locale/asknot-ng.pot

python code

from setuptools import setup

line 5 -> setup(

see:

https://stackoverflow.com/questions/57826842/how-to-fix-valueerror-unknown-extraction-method-jinja2-error-in-python-j

-> reinstall babel library manually using pip package manager.

https://stackoverflow.com/questions/12046998/babel-doesnt-recognize-jinja2-extraction-method-for-language-support

-> upgrade setuptools -> sudo pip install --upgrade setuptools

pip list

Babel 2.9.1
setuptools 57.4.0

Regards.,

from asknot-ng.

Zlopez avatar Zlopez commented on August 23, 2024

Are you running python 3.10?

I tried to update the setuptools, but I still have the same issue. Following is the list of packages in virtual environment.

$ pip list
Package    Version
---------- -------
Babel      2.9.1
coverage   6.1.1
Jinja2     3.0.2
Mako       1.1.5
MarkupSafe 2.0.1
nose       1.3.7
nose2      0.10.0
pip        21.2.3
pytz       2021.3
PyYAML     6.0
setuptools 58.5.2
six        1.16.0

from asknot-ng.

hhlp avatar hhlp commented on August 23, 2024

Yes ., Fedora 35

pip show setuptools
Name: setuptools
Version: 57.4.0
Summary: Easily download, build, install, upgrade, and uninstall Python packages
Home-page: https://github.com/pypa/setuptools
Author: Python Packaging Authority
Author-email: [email protected]
License: UNKNOWN
Location: /usr/lib/python3.10/site-packages
Requires: 
Required-by: zope.interface, setools, python-Levenshtein, zope.event, wadllib, spyder, Sphinx, Rtree, python-lsp-server, Paste, nmstate, lazr.uri, lazr.restfulclient, launchpadlib, jsonschema, ipython, google-auth, google-api-core, fs, copr-cli, bodhi, astroid

This is my list in venv, this is all you need to work:

asknot-ng  1.0     /home/hhlp/asknot-ng                                         
Babel      2.9.1                                                                
Mako       1.1.5                                                                
MarkupSafe 2.0.1                                                                
pip        21.2.3                                                               
pytz       2021.3
PyYAML     6.0
setuptools 57.4.0
wheel      0.36.2

setupptools diferent to yours in my case took from system environment.

rpm -qa python3-setuptools  

python3-setuptools-57.4.0-1.fc35.noarch

Regards.,

from asknot-ng.

Zlopez avatar Zlopez commented on August 23, 2024

I found out, I was missing the asknot-ng itself. Thanks for helping me

from asknot-ng.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.