In our support boards we aim to provide support for the B3 core in its current state. Older releases of B3 are NOT supported. Check our front page for the latest version. You may post feature requests in our General Discussion board. Modifications and Hacks of the core B3 code are NOT supported.
Before you ask for support: [ Read the Support Instructions ] - More info: [ Full Support Disclaimer ]

You are here: Big Brother Bot ForumSupport ForumsInstallation Support (Moderator: MordyT)Last version 1.3.4B ERROR!!!
Pages: [1]   Go Down
  Print  
Author Topic: Last version 1.3.4B ERROR!!!  (Read 652 times) Bookmark and Share
Sr. Member
****
OS: Windows
Type: Owner dedicated server(s)
Gameservers: BF3
Posts: 212
Offline Offline
WWW
« on: September 21, 2010, 12:43:03 PM »

1.3.4b-11 not working...
Code:
python b3_run.py -c /home/niko/b3/conf/bfbc2.xml
Traceback (most recent call last):
  File "b3_run.py", line 29, in <module>
    import b3_debug
  File "/home/niko/b3/b3_debug.py", line 61, in <module>
    from functionprofiler import *
  File "b3/tools/functionprofiler.py", line 45, in <module>
    import profile, pstats, sys, os
ImportError: No module named profile
1.3.3-75 version of the normal working
Logged

Very sorry for my English I do not know him enough to be understood.
That is why I use the google translator.

Former Dev. (senate)
*****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: OpenArena
Posts: 258
Offline Offline
« Reply #1 on: September 22, 2010, 05:17:08 AM »

Weird, this issue should be fixed.

Can you please tell me your version of Python ?

/EDIT : ok, you must miss the right libraries :

Quote
There is a module called profile, as well as cProfile. And as Ilias said,
you probably do have to install python-profile (or whatever package your
system places the profiler in).

From http://bytes.com/topic/python/answers/770400-no-module-named-pstats

This is weird, because profile is a standard library. I will make it optional in the next commit.
« Last Edit: September 22, 2010, 05:19:36 AM by grosbedo » Logged
Former Dev. (senate)
*****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: OpenArena
Posts: 258
Offline Offline
« Reply #2 on: September 22, 2010, 05:56:16 AM »

I committed the change, could you please try this version ?

http://github.com/grosbedo/big-brother-bot/zipball/master

This should fix your problem. Let me know please.
Logged
Sr. Member
****
OS: Windows
Type: Owner dedicated server(s)
Gameservers: BF3
Posts: 212
Offline Offline
WWW
« Reply #3 on: September 22, 2010, 06:15:03 AM »

No change....
python version 2.6.5.
Logged

Very sorry for my English I do not know him enough to be understood.
That is why I use the google translator.
Former Dev. (senate)
*****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: OpenArena
Posts: 258
Offline Offline
« Reply #4 on: September 22, 2010, 06:39:33 AM »

No change....
python version 2.6.5.

Did you replace b3/tools/functionprofiler.py by my latest version ?

Here it is attached.

If there is still an error, please verify that the error is still the same.

[attachment deleted by maintenance]
Logged
Sr. Member
****
OS: Windows
Type: Owner dedicated server(s)
Gameservers: BF3
Posts: 212
Offline Offline
WWW
« Reply #5 on: September 22, 2010, 06:53:15 AM »

So I installed the versions http://github.com/grosbedo/big-brother-bot/zipball/master
and the error still occurs.

Code:
Traceback (most recent call last):
  File "b3_run.py", line 29, in <module>
    import b3_debug
  File "/home/niko/b3/b3_debug.py", line 61, in <module>
    from functionprofiler import *
  File "b3/tools/functionprofiler.py", line 45, in <module>
    import profile, pstats, sys, os
ImportError: No module named profile
Logged

Very sorry for my English I do not know him enough to be understood.
That is why I use the google translator.
Former Dev. (senate)
*****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: OpenArena
Posts: 258
Offline Offline
« Reply #6 on: September 22, 2010, 07:04:12 AM »

Sorry if I may sound rude, but you must be mistaking somewhere. The line that throws your error doesn't exist anymore, so it's impossible that the latest code still throw this exact same error. It can produce another error though, but not this exact one.

Please replace your functionprofiler.py file with the one I attached in my previous post.
Logged
Sr. Member
****
OS: Windows
Type: Owner dedicated server(s)
Gameservers: BF3
Posts: 212
Offline Offline
WWW
« Reply #7 on: September 22, 2010, 11:26:30 AM »

Code:
  File "b3_run.py", line 29, in <module>
    import b3_debug
  File "/home/sanken/b3_debug.py", line 61, in <module>
    from functionprofiler import *
  File "b3/tools/functionprofiler.py", line 58, in <module>
    from profilebrowser import *
  File "b3/lib/profilebrowser.py", line 3, in <module>
    from pstats import *
ImportError: No module named pstats
« Last Edit: September 22, 2010, 11:29:35 AM by NIKO » Logged

Very sorry for my English I do not know him enough to be understood.
That is why I use the google translator.
Sr. Member
****
OS: Windows
Type: Owner dedicated server(s)
Gameservers: BF3
Posts: 212
Offline Offline
WWW
« Reply #8 on: September 27, 2010, 12:08:55 PM »

PLZ help!!!
Downloaded versions of the bot master ver md5: courgette-big-brother-bot-44c73ec
At startup, the error is
Code:
xxx@xxx:~$ python b3_run.py -c /home/xxx/b3/conf/b3.xml
Traceback (most recent call last):
  File "b3_run.py", line 29, in <module>
    import b3_debug
  File "/home/sanken/b3_debug.py", line 61, in <module>
    from functionprofiler import *
  File "b3/tools/functionprofiler.py", line 58, in <module>
    from profilebrowser import *
  File "b3/lib/profilebrowser.py", line 3, in <module>
    from pstats import *
ImportError: No module named pstats

OS:Ubuntu 10.04
The older version works normally after copying
« Last Edit: September 27, 2010, 01:27:40 PM by NIKO » Logged

Very sorry for my English I do not know him enough to be understood.
That is why I use the google translator.
Jr. Member
**
OS: --No B3 installed--
Type: --No B3 installed--
Gameservers: UrT
Posts: 20
Offline Offline
« Reply #9 on: September 27, 2010, 12:53:27 PM »

 import b3_debug
  File "/home/sanken/b3_debug.py", line 61, in <module>
    from functionprofiler import *
  File "b3/tools/functionprofiler.py", line 58, in <module>
    from profilebrowser import *
  File "b3/lib/profilebrowser.py", line 3, in <module>
    from pstats import *

I can see here you have all that python files in different folders.Put them all in the main b3 folder- c://program files/b3.So make sure that you have succesfully updated your database because if the b3 cant find the current files it means the databases cant be found.Try remake the database.
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #10 on: September 27, 2010, 02:36:21 PM »

guys, can you provide the following information :

* your operating system name (Windows XP, Debian, Ubuntu, etc)
* the version of python you are using

Also can you try the latest B3 from my repo which might go around your issue : http://github.com/courgette/big-brother-bot/zipball/master
« Last Edit: September 27, 2010, 02:41:13 PM by Courgette » Logged

Sr. Member
****
OS: Windows
Type: Owner dedicated server(s)
Gameservers: BF3
Posts: 212
Offline Offline
WWW
« Reply #11 on: September 27, 2010, 03:33:44 PM »

OS Ubuntu 10.04 lucid
python 2.6.5
downloaded from http://github.com/courgette/big-brother-bot/zipball/master
in the other repos have the same problem
Logged

Very sorry for my English I do not know him enough to be understood.
That is why I use the google translator.
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #12 on: September 27, 2010, 11:43:59 PM »

try to install "python-profiler" and please report if it solves the issue

Code:
sudo apt-get install python-profiler
Logged

Sr. Member
****
OS: Windows
Type: Owner dedicated server(s)
Gameservers: BF3
Posts: 212
Offline Offline
WWW
« Reply #13 on: September 28, 2010, 01:55:27 AM »

it works. Many thanks. Plz add sudo apt-get install python-profiler the README
Logged

Very sorry for my English I do not know him enough to be understood.
That is why I use the google translator.
Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal