<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:19:19 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-28881] MongoDB failed to build due to ImportError: No module named typing</title>
                <link>https://jira.mongodb.org/browse/SERVER-28881</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I tried to build Mongodb with master barnch latest revision on Windows. It failed due to ImportError: No module named typing. This issue can be produced form master branch revision c776e095 (&lt;a href=&quot;https://github.com/mongodb/mongo/commit/c776e095ac25d0426624f4a84c03f0094c3c661f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/c776e095ac25d0426624f4a84c03f0094c3c661f&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Some investigation on my side:&lt;/b&gt;&lt;br/&gt;
It seems that module typing is supported from python 3.5. But SCons does not run under Python version 3.6.1. Python 3 and above are not yet supported. Is there any workaround for this issue?  Thanks!&lt;/p&gt;

&lt;p&gt;&lt;b&gt;You can repro the issue as the steps below:&lt;/b&gt;&lt;br/&gt;
1. git clone -c core.autocrlf=true &lt;a href=&quot;https://github.com/mongodb/mongo&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo&lt;/a&gt; D:\MongoDB\src&lt;br/&gt;
2. Open a VS 2015 x64 command prompt and browse to D:\MongoDB\src&lt;br/&gt;
3. scons all -j4&lt;/p&gt;

&lt;p&gt;Error info:&lt;br/&gt;
C:\tools\Python2\python.exe buildscripts/idl/idlc.py --base_dir build/opt --header build\opt\mongo\idl\unittest_gen.h --output build\opt\mongo\idl\unittest_gen.cpp src\mongo\idl\unittest.idl&lt;br/&gt;
Traceback (most recent call last):&lt;br/&gt;
  File &quot;buildscripts/idl/idlc.py&quot;, line 23, in &amp;lt;module&amp;gt;&lt;br/&gt;
    import idl.compiler&lt;br/&gt;
  File &quot;D:\MongoDB\src\buildscripts\idl\idl\compiler.py&quot;, line 26, in &amp;lt;module&amp;gt;&lt;br/&gt;
    from typing import Any, List&lt;br/&gt;
&lt;font color=&quot;red&quot;&gt;ImportError: No module named typing&lt;/font&gt;&lt;br/&gt;
scons: *** &lt;span class=&quot;error&quot;&gt;&amp;#91;build\opt\mongo\idl\unittest_gen.cpp&amp;#93;&lt;/span&gt; Error 1&lt;/p&gt;</description>
                <environment>Windows Server 2012 R2 + VS2017 RTM + Python 2.7 + SCons 2.5.1</environment>
        <key id="375734">SERVER-28881</key>
            <summary>MongoDB failed to build due to ImportError: No module named typing</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="KarenHuang2017">KarenHuang [X]</reporter>
                        <labels>
                    </labels>
                <created>Thu, 20 Apr 2017 06:05:50 +0000</created>
                <updated>Thu, 20 Apr 2017 14:41:03 +0000</updated>
                            <resolved>Thu, 20 Apr 2017 14:13:46 +0000</resolved>
                                                                    <component>Build</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="1553593" author="stennie" created="Thu, 20 Apr 2017 14:13:46 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;To build MongoDB from source please follow the requirements as documented on the MongoDB GitHub wiki instructions:&lt;br/&gt;
 &lt;a href=&quot;https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/wiki/Build-Mongodb-From-Source&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As you&apos;ve noted SCons does not fully support Python 3 yet, so you will have to use Python 2.7.&lt;/p&gt;

&lt;p&gt;I also noticed you originally filed this question in the MONGOID project, which is for reporting bugs or feature suggestions for the Mongoid ODM.&lt;/p&gt;

&lt;p&gt;For future discussion around building MongoDB or working with the source code please post in the &lt;a href=&quot;https://groups.google.com/group/mongodb-dev&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb-dev&lt;/a&gt; discussion group.&lt;/p&gt;

&lt;p&gt;If you have questions about using MongoDB, the &lt;a href=&quot;https://groups.google.com/forum/#!forum/mongodb-user&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb-user discussion forum&lt;/a&gt; would be a more appropriate starting point.&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Stephen&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="375785">SERVER-28879</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 20 Apr 2017 14:13:46 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 42 weeks, 6 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>kelsey.schubert@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            6 years, 42 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>KarenHuang2017</customfieldvalue>
            <customfieldvalue>stephen.steneker@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht63g7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsyde7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrkw73:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>