<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>58421</bug_id>
          
          <creation_ts>2026-03-28 13:24:22 +0300</creation_ts>
          <short_desc>python3-module-appengine-standard ломает python3-module-protobuf.</short_desc>
          <delta_ts>2026-03-28 13:24:22 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>python3-module-appengine-standard</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Nikita">nikpan254</reporter>
          <assigned_to name="thatman@altlinux.org">thatman</assigned_to>
          <cc>grenka</cc>
    
    <cc>thatman</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>284721</commentid>
    <comment_count>0</comment_count>
    <who name="Nikita">nikpan254</who>
    <bug_when>2026-03-28 13:24:22 +0300</bug_when>
    <thetext>При установке appengine-standard удаляется lib64 из google.__patch__:

# &quot;python3 -c &quot;import google; print(google.__path__)&quot;
_NamespacePath([&apos;/usr/lib/python3/site-packages/google&apos;])

из за этого возникает ошибка при попытке импорта protobuf:
# python3 -c &quot;import google.protobuf; print(&apos;OK&apos;)&quot;
Traceback (most recent call last):
  File &quot;&lt;string&gt;&quot;, line 1, in &lt;module&gt;
    import google.protobuf; print(&apos;OK&apos;)
    ^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named &apos;google.protobuf&apos;.

можно исправить проблему полностью удалив настройку ns из setup.py:
%prep 
...
sed -i &apos;s/namespace_packages=\[&quot;google&quot;\],//&apos; setup.py

в таком случае пути остаются и импорты protobuf и appengine-standard работают:
python3 -c &quot;import google; print(google.__path__)&quot;
[&apos;/usr/lib64/python3/site-packages/google&apos;, &apos;/usr/lib/python3/site-packages/google&apos;]</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>