user869097
user869097

Reputation: 1362

How to load the Python Parser in Pharo Smalltalk?

What would be the proper way to load the PythonParser project in Pharo 3.0? The current configuration is broken with the following message:

The symbolic version #stable is not defined in ConfigurationOfPythonParser for the current platform. Possible symbolic version values include: #(#bleedingEdge #development)

I'm looking for a Python parser that can be used in Smalltalk and give me access to line and file informations about each artefact of the analysed code.

Upvotes: 1

Views: 215

Answers (2)

Damien Cassou
Damien Cassou

Reputation: 2589

This will probably work (you might need a github account):

Gofer it
    smalltalkhubUser: 'Pharo' project: 'MetaRepoForPharo30/';
    configurationOf: 'PythonParser';
    loadStable

Upvotes: 1

Max Leske
Max Leske

Reputation: 5115

The error you are seeing means that the configuration hasn't been prepared for 3.0 and that the project will very likely not work without errors (though it's possible that it will work more or less). You can force a load with all the latest code by using #bleedingEdge but you have to be aware that loading of dependencies might fail for the same reason (which would require you to hack the configuration; that's something you don't want to do if you're not familiar with configurations). So try this:

(ConfigurationOfPythonParser project version: #bleedingEdge) load.

Upvotes: 2

Related Questions