trigger-corp / browser-extensions

Build and run cross-platform browser extensions from one codebase.
Other
312 stars 52 forks source link

ImportError: No module named forge #9

Open shreyasubale opened 10 years ago

shreyasubale commented 10 years ago

I am trying to build browser extension , but the forge module is not found. Perhaps i am doing something wrong here. Can you please help ?

antoinevg commented 10 years ago

Hi shreyasubale,

Difficult to know without knowing a bit more about your setup!

What browser platform are you trying to build for?

What operating system are you running?

Have you followed the setup instructions at https://github.com/trigger-corp/browser-extensions/blob/master/README.md ?

Can you also enable verbose mode for the build command and send the logs, e.g.

forge-extension build -v

Thanks! Antoine

shreyasubale commented 10 years ago

I am trying to build it on Ubuntu 13.10 , I have made sure that i follow all the steps.

Here is my output , its coming while i build the extension

forge-extension create -v test Traceback (most recent call last): File "/home/shreyas/.virtualenvs/ext/bin/forge-extension", line 9, in

load_entry_point('generate==1.0', 'console_scripts', 'forge-extension')() File "/home/shreyas/.virtualenvs/ext/local/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/home/shreyas/.virtualenvs/ext/local/lib/python2.7/site-packages/pkg_resources.py", line 2566, in load_entry_point return ep.load() File "/home/shreyas/.virtualenvs/ext/local/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load entry = **import**(self.module_name, globals(),globals(), ['**name**']) File "/home/shreyas/Downloads/browser-extensions.git/generate/build_tools/main.py", line 21, in from forge import build_config, defaults, ForgeError File "/home/shreyas/Downloads/browser-extensions.git/generate/build_tools/forge/build_config.py", line 7, in import forge ImportError: No module named forge On Mon, Jan 6, 2014 at 7:18 PM, Antoine van Gelder wrote: > > Hi shreyasubale, > > Difficult to know without knowing a bit more about your setup! > > What browser platform are you trying to build for? > > What operating system are you running? > > Have you followed the setup instructions at > https://github.com/trigger-corp/browser-extensions/blob/master/README.md ? > > Can you also enable verbose mode for the build command and send the logs, > e.g. > > forge-extension build -v > > Thanks! > Antoine > > — > Reply to this email directly or view it on GitHubhttps://github.com/trigger-corp/browser-extensions/issues/9#issuecomment-31649072 > . ## Shreyas ubale
jochenonline commented 10 years ago

I have the same problem with

forge-extension create -v

under Windows 8

Traceback (most recent call last):
  File "c:\python27\scripts\forge-extension-script.py", line 9, in <module>
    load_entry_point('generate==1.0', 'console_scripts', 'forge-extension')()
  File "build\bdist.win32\egg\pkg_resources.py", line 351, in load_entry_point
  File "build\bdist.win32\egg\pkg_resources.py", line 2363, in load_entry_point
  File "build\bdist.win32\egg\pkg_resources.py", line 2088, in load
  File "c:\users\jochen\documents\github\browser-extensions.git\generate\build_tools\main.py", line 21, in <module>
    from forge import build_config, defaults, ForgeError
  File "c:\users\jochen\documents\github\browser-extensions.git\generate\build_tools\forge\build_config.py", line 7, in
<module>
    import forge
ImportError: No module named forge
draizada commented 10 years ago

Did anyone solve this issue..i am also stuck over here only.

reicolina commented 9 years ago

I had the exact same problem on an Ubuntu VM running in VirtualBox. I had limited space left in the partition, so when going through the installation steps i kept getting warnings about no disk space left, which seems to corrupt the installation. I built a new VM with 16Gigs of space and the installation steps ran successfully and i was able to start building extensions in no time!. Hopefully this ill help you out.

ChrisGK commented 9 years ago

Python imports aren't my specialty, but here goes. .\browser-extension\generate\build_tools\main.py is trying to import 'forge' and it expects the subdirectory (with the init .py) to satisfy that. The subdirectory is there (on my machine at least) and the init .py is exactly where I would expect it, but forge-extension ain't seeing it.

Adding the full path to the build_tools directory to the environment variable PYTHONPATH seems to have solved this. PYTHONPATH = C:\Users\browser-extensions\generate\build_tools