This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 257461 - org.netbeans.modules.python.api.PythonException: Could not discover Python Project Info in /home/jenselme/Work/waffle-api
Summary: org.netbeans.modules.python.api.PythonException: Could not discover Python Pr...
Status: STARTED
Alias: None
Product: python
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.1
Hardware: All All
: P4 normal (vote)
Assignee: Jenselme
URL:
Keywords:
Depends on: 181102
Blocks:
  Show dependency tree
 
Reported: 2016-01-07 13:38 UTC by Jenselme
Modified: 2016-10-11 16:05 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 222019


Attachments
stacktrace (3.03 KB, text/plain)
2016-01-07 13:38 UTC, Jenselme
Details
setup.py that throws the exception (609 bytes, text/x-python)
2016-01-08 08:33 UTC, Jenselme
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jenselme 2016-01-07 13:38:20 UTC
This issue was reported manually by Jenselme.
It already has 1 duplicates 


Build: NetBeans IDE 8.1 (Build 201510222201)
VM: OpenJDK 64-Bit Server VM, 25.65-b01, OpenJDK Runtime Environment, 1.8.0_65-b17
OS: Linux

User Comments:
Jenselme: It seems that project2 cannot find problems if the setup.py file contains a non ascii character. If such a character is added after the project is opened, this exception is thrown.




Stacktrace: 
org.netbeans.modules.python.api.PythonException: Could not discover Python Project Info in /home/jenselme/Work/waffle-api
   at org.netbeans.modules.python.project2.PythonProject2.findProjectProperties(PythonProject2.java:242)
   at org.netbeans.modules.python.project2.PythonProject2.access$200(PythonProject2.java:52)
   at org.netbeans.modules.python.project2.PythonProject2$Info$1.run(PythonProject2.java:323)
   at org.netbeans.modules.python.project2.PythonProject2$Info$1.run(PythonProject2.java:318)
   at org.netbeans.modules.openide.util.DefaultMutexImplementation.writeAccess(DefaultMutexImplementation.java:293)
   at org.openide.util.Mutex.writeAccess(Mutex.java:271)
Comment 1 Jenselme 2016-01-07 13:38:22 UTC
Created attachment 158046 [details]
stacktrace
Comment 2 Jenselme 2016-01-08 08:33:40 UTC
Created attachment 158058 [details]
setup.py that throws the exception
Comment 3 Jenselme 2016-01-08 08:35:16 UTC
Adding as the first line of the file:

# -*- encoding: utf-8 -*-

prevents the exception.
Comment 4 Lou Dasaro 2016-01-18 03:26:24 UTC
Once the patch for Bug#181102 is pushed, this will be fixed.
Comment 5 Jenselme 2016-10-11 16:05:53 UTC
changeset:   18436:7e51032433e1
user:        Julien Enselme <jenselme@netbeans.org>
date:        Sun Sep 25 19:46:32 2016 +0200
summary:     #257461: Force UTF-8 encoding in setup.py if getting properties failed